Mercurial > repos > davidvanzessen > complete_immunerepertoire_igg
comparison imgt_loader.sh @ 12:70c8234acaf3 draft default tip
Uploaded
author | davidvanzessen |
---|---|
date | Tue, 23 Jun 2015 07:52:44 -0400 |
parents | 3287f7b9c47d |
children |
comparison
equal
deleted
inserted
replaced
11:1b356cbde361 | 12:70c8234acaf3 |
---|---|
9 tarType="tar archive" | 9 tarType="tar archive" |
10 bzip2Type="bzip2 compressed" | 10 bzip2Type="bzip2 compressed" |
11 gzipType="gzip compressed" | 11 gzipType="gzip compressed" |
12 zipType="Zip archive" | 12 zipType="Zip archive" |
13 rarType="RAR archive" | 13 rarType="RAR archive" |
14 zxType="XZ compressed data" | |
14 | 15 |
15 if [[ "$f" == *"$zip7Type"* ]]; then | 16 if [[ "$f" == *"$zip7Type"* ]]; then |
16 echo "7-zip" | 17 echo "7-zip" |
17 echo "Trying: 7za e $input -o$PWD/files/" | 18 echo "Trying: 7za e $input -o$PWD/files/" |
18 7za e $input -o$PWD/$name/files | 19 7za e $input -o$PWD/$name/files |
19 fi | 20 fi |
20 | 21 |
21 if [[ "$f" == *"$tarType"* ]] | 22 if [[ "$f" == *"$tarType"* ]] |
22 then | 23 then |
23 echo "tar archive" | 24 echo "tar archive" |
24 echo "Trying: tar xvf $input -C $PWD/files/" | 25 echo "Trying: tar -xvf $input -C $PWD/files/" |
25 tar xvf $input -C $PWD/$name/files | 26 tar -xvf $input -C $PWD/$name/files |
26 fi | 27 fi |
27 | 28 |
28 if [[ "$f" == *"$bzip2Type"* ]] | 29 if [[ "$f" == *"$bzip2Type"* ]] |
29 then | 30 then |
30 echo "bzip2 compressed data" | 31 echo "bzip2 compressed data" |
31 echo "Trying: tar jxf $input -C $PWD/files/" | 32 echo "Trying: tar -jxf $input -C $PWD/files/" |
32 tar jxf $input -C $PWD/$name/files | 33 tar -jxf $input -C $PWD/$name/files |
33 fi | 34 fi |
34 | 35 |
35 if [[ "$f" == *"$gzipType"* ]] | 36 if [[ "$f" == *"$gzipType"* ]] |
36 then | 37 then |
37 echo "gzip compressed data" | 38 echo "gzip compressed data" |
50 then | 51 then |
51 echo "RAR archive" | 52 echo "RAR archive" |
52 echo "Trying: unrar e $input $PWD/files/" | 53 echo "Trying: unrar e $input $PWD/files/" |
53 unrar e $input $PWD/$name/files | 54 unrar e $input $PWD/$name/files |
54 fi | 55 fi |
56 | |
57 if [[ "$f" == *"$zxType"* ]] | |
58 then | |
59 echo "ZX archive" | |
60 echo "Trying: tar -xJf $input -C $PWD/$name/files/" | |
61 tar -xJf $input -C $PWD/$name/files/ | |
62 fi | |
63 | |
64 | |
55 find $PWD/$name/files -iname "1_*" -exec cat {} + > $PWD/$name/summ.txt | 65 find $PWD/$name/files -iname "1_*" -exec cat {} + > $PWD/$name/summ.txt |
56 find $PWD/$name/files -iname "5_*" -exec cat {} + > $PWD/$name/aa.txt | 66 find $PWD/$name/files -iname "5_*" -exec cat {} + > $PWD/$name/aa.txt |
57 find $PWD/$name/files -iname "6_*" -exec cat {} + > $PWD/$name/junction.txt | 67 find $PWD/$name/files -iname "6_*" -exec cat {} + > $PWD/$name/junction.txt |
58 | 68 |
59 python $dir/imgt_loader.py --summ $PWD/$name/summ.txt --aa $PWD/$name/aa.txt --junction $PWD/$name/junction.txt --output $output | 69 python $dir/imgt_loader.py --summ $PWD/$name/summ.txt --aa $PWD/$name/aa.txt --junction $PWD/$name/junction.txt --output $output |