annotate build-and-run-job-scripts.sh @ 10:5286f3b1c9c2 draft default tip

planemo upload commit 363ef0a73d874c67326a67f51a78328906951248-dirty
author mingchen0919
date Fri, 30 Nov 2018 22:15:50 -0500
parents 94762f1cb779
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
1 # run SHELL_SCRIPT within tool outputs directory
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
2 cd ${REPORT_FILES_PATH}
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
3
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
4 # build job-script.sh
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
5 cat >temp.sh <<EOF
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
6
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
7 cp ${X_r} read_1.fq
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
8 cp ${X_R} read_2.fq
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
9
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
10 fastqc \\
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
11 -q \\
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
12 -c ${X_c} \\
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
13 -l ${X_l} \\
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
14 ${X_d}/read_1.fq > read_1.log.txt 2>&1
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
15
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
16 fastqc \\
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
17 -q \\
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
18 -c ${X_c} \\
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
19 -l ${X_l} \\
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
20 ${X_d}/read_2.fq > read_2.log.txt 2>&1
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
21
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
22 EOF
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
23
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
24 grep -v None temp.sh > job-1-script.sh
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
25 rm temp.sh
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
26
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
27 # run SHELL_SCRIPT
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
28 sh job-1-script.sh
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
29
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
30 # unzip outputs
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
31 unzip -q read_1_fastqc.zip
94762f1cb779 planemo upload commit 76f9ca75d5b1c0c0fad6c10876d9dfeba7d5ecff-dirty
mingchen0919
parents:
diff changeset
32 unzip -q read_2_fastqc.zip