File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version 1.0
22
3+ ##########
4+ # Align RNAseq fastq files with STAR
5+ ##########
36task STAR {
47 input {
58 #### REQUIRED
69 File ? fastq1_trimmed
710 File ? fastq2_trimmed
811 File ? fastq_trimmed_single
9- Directory star_index
12+ File star_index
1013 String sample_name
1114 Boolean paired
1215 ####
@@ -26,6 +29,10 @@ task STAR {
2629
2730 }
2831 command {
32+
33+ mkdir star_index
34+ tar -xzf ~{star_index_tar } -C star_index
35+
2936 if [[ "~{paired}" == "true" ]]; then
3037 STAR \
3138 --runThreadN ${STAR_cpu } \
@@ -65,3 +72,30 @@ task STAR {
6572 mem : "${STAR_mem }"
6673 }
6774}
75+
76+ ##########
77+ # Zip STAR index files for easy localization
78+ ##########
79+ task prep_star_index
80+ {
81+ input
82+ {
83+ String star_index_dir
84+ }
85+ command
86+ {
87+ tar -czf ${star_index_dir }
88+ }
89+ output
90+ {
91+ File index_tar = "star_index.tar.gz"
92+ }
93+ runtime
94+ {
95+ docker : "ubuntu:20.04"
96+ cpu : 1
97+ memory : "4G"
98+ }
99+ }
100+
101+
You can’t perform that action at this time.
0 commit comments