annotate FLASH.sh @ 2:6889442b27dc draft default tip

Uploaded
author aaronpetkau
date Sat, 04 Jul 2015 08:58:21 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
1 #/bin/bash
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
2
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
3 #grab output files
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
4 merged_reads=$1
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
5 shift
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
6 not_combined_1=$1
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
7 shift
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
8 not_combined_2=$1
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
9 shift
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
10 inter_not_combined=$1
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
11 shift
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
12 reads_and_pairs=$1
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
13 shift
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
14 log_file=$1
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
15 shift
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
16
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
17 flash $@ > $log_file
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
18 sleep 5 #sleep because phil says so
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
19
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
20 if [ -f out.notCombined_2.fastq ];
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
21 then
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
22 mv out.notCombined_2.fastq $not_combined_2
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
23 fi
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
24 if [ -f out.notCombined_1.fastq ];
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
25 then
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
26 mv out.notCombined_1.fastq $not_combined_1
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
27 fi
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
28 if [ -f out.notCombined.fastq ];
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
29 then
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
30 mv out.notCombined.fastq $inter_not_combined
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
31 fi
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
32 if [ -f out.readsAndPairs.tab ];
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
33 then
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
34 mv out.readsAndPairs.tab $reads_and_pairs
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
35 fi
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
36 if [ -f out.extendedFrags.fastq ];
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
37 then
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
38 mv out.extendedFrags.fastq $merged_reads
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
39 fi
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
40
6889442b27dc Uploaded
aaronpetkau
parents:
diff changeset
41 exit 0