Mercurial > repos > davidvanzessen > mutation_analysis
diff wrapper.sh @ 35:8dba36531e6e draft
Uploaded
author | davidvanzessen |
---|---|
date | Tue, 23 Jun 2015 10:54:05 -0400 |
parents | d436daae9d68 |
children | 7377bf7e632d |
line wrap: on
line diff
--- a/wrapper.sh Thu Jun 18 03:10:11 2015 -0400 +++ b/wrapper.sh Tue Jun 23 10:54:05 2015 -0400 @@ -11,7 +11,18 @@ unique=$8 mkdir $outdir -unzip $input -d $PWD/files/ > $PWD/unziplog.log +type="`file $input`" +if [[ "$type" == *"Zip archive"* ]] ; then + echo "Zip archive" + echo "unzip $input -d $PWD/files/" + unzip $input -d $PWD/files/ +elif [[ "$type" == *"XZ compressed data"* ]] ; then + echo "ZX archive" + echo "tar -xJf $input -C $PWD/files/" + mkdir -p $PWD/files/$title + tar -xJf $input -C $PWD/files/$title +fi + cat $PWD/files/*/1_* > $PWD/summary.txt cat $PWD/files/*/7_* > $PWD/mutationanalysis.txt cat $PWD/files/*/8_* > $PWD/mutationstats.txt