From 16061b5a505657cb2c8055091df582c4a75137f5 Mon Sep 17 00:00:00 2001
From: Brandi Cantarel <brandi.cantarel@utsouthwestern.edu>
Date: Tue, 23 Jun 2020 14:36:16 -0500
Subject: [PATCH] skip script without results

---
 genect_rnaseq/statanal.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/genect_rnaseq/statanal.sh b/genect_rnaseq/statanal.sh
index fd36f0f..23efcf1 100644
--- a/genect_rnaseq/statanal.sh
+++ b/genect_rnaseq/statanal.sh
@@ -41,7 +41,8 @@ else
     module load R/3.2.1-intel
     Rscript  $baseDir/dea.R
     Rscript $baseDir/build_ballgown.R *_stringtie
-    if [[ -n `ls *.edgeR.txt` ]]
+    edgeR=`find ./ -name *.edgeR.txt`
+    if [[ -n $edgeR ]]
     then
 	perl $baseDir/concat_edgeR.pl *.edgeR.txt
     fi
-- 
GitLab