@@ -8,14 +8,17 @@ requirements:
88 - class: SubworkflowFeatureRequirement
99 - class: ScatterFeatureRequirement
1010 - class: StepInputExpressionRequirement
11+ - class: SchemaDefRequirement
12+ types :
13+ - $import: ../types/sequence_data.yml
1114inputs :
1215 reference:
1316 type :
1417 - string
1518 - File
1619 secondaryFiles : [.fai, ^.dict]
17- instrument_data_bams :
18- type : File []
20+ unaligned :
21+ type : ../types/sequence_data.yml #sequence_data []
1922 outsam_attrrg_line:
2023 type : string []
2124 graft_star_genome_dir:
@@ -63,6 +66,9 @@ inputs:
6366 type : File
6467 sample_name:
6568 type : string
69+ unzip_fastqs:
70+ type : boolean ?
71+ default : true
6672outputs :
6773 final_bam:
6874 type : File
@@ -114,17 +120,18 @@ outputs:
114120 type : File
115121 outputSource : cgpbigwig_bamcoverage/outfile
116122steps :
117- bam_to_trimmed_fastq :
118- run : ../subworkflows/bam_to_trimmed_fastq .cwl
119- scatter : [bam ]
123+ sequence_to_trimmed_fastq :
124+ run : ../subworkflows/sequence_to_trimmed_fastq .cwl
125+ scatter : [unaligned ]
120126 scatterMethod : dotproduct
121127 in :
122- bam: instrument_data_bams
128+ unaligned: unaligned
123129 adapters: trimming_adapters
124130 adapter_trim_end: trimming_adapter_trim_end
125131 adapter_min_overlap: trimming_adapter_min_overlap
126132 max_uncalled: trimming_max_uncalled
127133 min_readlength: trimming_min_readlength
134+ unzip_fastqs: unzip_fastqs
128135 out :
129136 [fastqs, fastq1, fastq2]
130137 graft_star_align_fusion:
@@ -135,10 +142,10 @@ steps:
135142 outfile_name_prefix: graft_outfile_name_prefix
136143 gtf_file: graft_gtf_file
137144 fastq:
138- source : bam_to_trimmed_fastq /fastq1
145+ source : sequence_to_trimmed_fastq /fastq1
139146 linkMerge : merge_flattened
140147 fastq2:
141- source : bam_to_trimmed_fastq /fastq2
148+ source : sequence_to_trimmed_fastq /fastq2
142149 linkMerge : merge_flattened
143150 out :
144151 [aligned_bam, chim_junc, splice_junction_out,log_final]
@@ -150,10 +157,10 @@ steps:
150157 outfile_name_prefix: host_outfile_name_prefix
151158 gtf_file: host_gtf_file
152159 fastq:
153- source : bam_to_trimmed_fastq /fastq1
160+ source : sequence_to_trimmed_fastq /fastq1
154161 linkMerge : merge_flattened
155162 fastq2:
156- source : bam_to_trimmed_fastq /fastq2
163+ source : sequence_to_trimmed_fastq /fastq2
157164 linkMerge : merge_flattened
158165 out :
159166 [aligned_bam, chim_junc, splice_junction_out,log_final]
@@ -165,9 +172,14 @@ steps:
165172 out :
166173 [graft_bam, xenosplit_statistics]
167174 graftbam_to_fastq:
168- run : ../subworkflows/bam_to_trimmed_fastq .cwl
175+ run : ../subworkflows/sequence_to_trimmed_fastq .cwl
169176 in :
170- bam: xenosplit/graft_bam
177+ unaligned:
178+ source : xenosplit/graft_bam
179+ valueFrom : |
180+ ${
181+ return {'sequence' : {'bam' : self} };
182+ }
171183 adapters: trimming_adapters
172184 adapter_trim_end: trimming_adapter_trim_end
173185 adapter_min_overlap: trimming_adapter_min_overlap
0 commit comments