From 9c1da674a880bbba4bb0266035a85323ddfdc6e8 Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Fri, 26 Oct 2018 09:35:23 -0500
Subject: [PATCH] Allow LinkData to create sub dir

---
 bash.scripts/sc_LinkData.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bash.scripts/sc_LinkData.sh b/bash.scripts/sc_LinkData.sh
index c6b0fb8..9e068d3 100755
--- a/bash.scripts/sc_LinkData.sh
+++ b/bash.scripts/sc_LinkData.sh
@@ -1,4 +1,9 @@
 #!/bin/bash
 mkdir ../analysis
 mkdir ../analysis/DATA
-ln -s /work/urology/ghenry/RNA-Seq/SingleCell/PIPELINE/DATA/"$1"/* ../analysis/DATA/
\ No newline at end of file
+if [ -z $2 ];then
+  ln -s /work/urology/ghenry/RNA-Seq/SingleCell/PIPELINE/DATA/"$1"/* ../analysis/DATA/
+else
+  mkdir ../analysis/DATA/$2
+  ln -s /work/urology/ghenry/RNA-Seq/SingleCell/PIPELINE/DATA/"$1"/* ../analysis/DATA/"$2"/
+fi
-- 
GitLab