Mercurial > repos > mingchen0919 > aurora_htseq
annotate build-and-run-job-scripts.sh @ 18:0489a2fd17d6 draft
planemo upload commit 389e632f9395db700c789034d9872c6b45a70b21-dirty
author | mingchen0919 |
---|---|
date | Thu, 29 Nov 2018 15:01:19 -0500 |
parents | ce76fb2791e5 |
children |
rev | line source |
---|---|
11
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
1 # run job scripts within the tool outputs directory |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
2 cd ${REPORT_FILES_PATH} |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
3 |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
4 #========== build and run job 1 script ============ |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
5 cat >htseq-count.sh <<EOF |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
6 htseq-count \\ |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
7 $(echo ${X_A} | sed 's/,/ /g') \\ |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
8 ${X_G} \\ |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
9 -f ${X_f} \\ |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
10 -r ${X_r} \\ |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
11 -s ${X_S} \\ |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
12 -a ${X_a} \\ |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
13 -t ${X_T} \\ |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
14 -i ${X_i} \\ |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
15 -m ${X_m} > htseq-counts-raw.txt |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
16 |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
17 grep -v '__no_feature\|__ambiguous\|__too_low_aQual\|__not_aligned\|__alignment_not_unique' htseq-counts-raw.txt > counts.txt |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
18 |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
19 EOF |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
20 |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
21 # run job 1 script |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
22 sh htseq-count.sh |
ce76fb2791e5
planemo upload commit d28f1764ef50ca42f996cada585cfcea9ec04e5a
mingchen0919
parents:
diff
changeset
|
23 |