Mercurial > repos > iuc > stringtie
comparison stringtie.xml @ 21:f4e465352f50 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stringtie commit a834a41c94d184df80e45ffa2339723826a075b1
| author | iuc |
|---|---|
| date | Tue, 24 Jul 2018 10:23:19 -0400 |
| parents | 48258a274be2 |
| children | ed3da12f8c37 |
comparison
equal
deleted
inserted
replaced
| 20:48258a274be2 | 21:f4e465352f50 |
|---|---|
| 1 <tool id="stringtie" name="StringTie" version="1.3.3.2"> | 1 <tool id="stringtie" name="StringTie" version="@TOOL_VERSION@"> |
| 2 <description>transcript assembly and quantification</description> | 2 <description>transcript assembly and quantification</description> |
| 3 <macros> | 3 <macros> |
| 4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
| 5 </macros> | 5 </macros> |
| 6 <expand macro="requirements" /> | 6 <expand macro="requirements" /> |
| 93 #end if | 93 #end if |
| 94 | 94 |
| 95 ## Replace commas with tabs | 95 ## Replace commas with tabs |
| 96 && | 96 && |
| 97 sed -i.bak -e "s/,/\${TAB}/g" -e "s/\${CR}//g" gene_counts.csv transcript_counts.csv | 97 sed -i.bak -e "s/,/\${TAB}/g" -e "s/\${CR}//g" gene_counts.csv transcript_counts.csv |
| 98 #if $guide.special_outputs.keep_header: | 98 ## Output header |
| 99 && | 99 && |
| 100 head -n 1 gene_counts.csv | sed -e 's/sample1/$escaped_element_identifier/' > '$gene_counts' | 100 head -n 1 gene_counts.csv | sed -e 's/sample1/$escaped_element_identifier/' > '$gene_counts' |
| 101 && | 101 && |
| 102 head -n 1 transcript_counts.csv | sed -e 's/sample1/$escaped_element_identifier/' > '$transcript_counts' | 102 head -n 1 transcript_counts.csv | sed -e 's/sample1/$escaped_element_identifier/' > '$transcript_counts' |
| 103 #end if | |
| 104 ## Sort count files on the first column | 103 ## Sort count files on the first column |
| 105 && | 104 && |
| 106 tail -n +2 gene_counts.csv | sort -t"\${TAB}" -k1,1 >> '$gene_counts' | 105 tail -n +2 gene_counts.csv | sort -t"\${TAB}" -k1,1 >> '$gene_counts' |
| 107 && | 106 && |
| 108 tail -n +2 transcript_counts.csv | sort -t"\${TAB}" -k1,1 >> '$transcript_counts' | 107 tail -n +2 transcript_counts.csv | sort -t"\${TAB}" -k1,1 >> '$transcript_counts' |
| 143 </conditional> | 142 </conditional> |
| 144 <param name="input_estimation" argument="-e" type="boolean" truevalue="-e" falsevalue="" checked="False" label="Use Reference transcripts only?" help="Limit the processing of read alignments to only estimate and output the assembled transcripts matching the reference transcripts given with the -G option. With this option, read bundles with no reference transcripts (novel transcripts) will be entirely skipped, which may provide a considerable speed boost when the given set of reference transcripts is limited to a set of target genes, for example. Default: No"/> | 143 <param name="input_estimation" argument="-e" type="boolean" truevalue="-e" falsevalue="" checked="False" label="Use Reference transcripts only?" help="Limit the processing of read alignments to only estimate and output the assembled transcripts matching the reference transcripts given with the -G option. With this option, read bundles with no reference transcripts (novel transcripts) will be entirely skipped, which may provide a considerable speed boost when the given set of reference transcripts is limited to a set of target genes, for example. Default: No"/> |
| 145 <conditional name="special_outputs"> | 144 <conditional name="special_outputs"> |
| 146 <param name="special_outputs_select" type="select" label="Output files for differential expression?" help="Select to output additional files that can be used with Ballgown or DESeq2/edgeR. See Help section below for more information"> | 145 <param name="special_outputs_select" type="select" label="Output files for differential expression?" help="Select to output additional files that can be used with Ballgown or DESeq2/edgeR. See Help section below for more information"> |
| 147 <option value="ballgown">Ballgown</option> | 146 <option value="ballgown">Ballgown</option> |
| 148 <option value="deseq2">DESeq2/edgeR</option> | 147 <option value="deseq2">DESeq2/edgeR/limma-voom</option> |
| 149 <option value="no" selected="True">No additional output</option> | 148 <option value="no" selected="True">No additional output</option> |
| 150 </param> | 149 </param> |
| 151 <when value="ballgown" /> | 150 <when value="ballgown" /> |
| 152 <when value="deseq2"> | 151 <when value="deseq2"> |
| 153 <param name="read_length" argument="--length" type="integer" min="0" value="75" label="Specify the average read length" help="Default: 75" /> | 152 <param name="read_length" argument="--length" type="integer" min="0" value="75" label="Specify the average read length" help="Default: 75" /> |
| 160 <param argument="--key" type="text" label="Prefix for clustering" help="If clustering, what prefix to use for geneIDs assigned by this script. Only letters and numbers will be retained in this field. Default: prepG"> | 159 <param argument="--key" type="text" label="Prefix for clustering" help="If clustering, what prefix to use for geneIDs assigned by this script. Only letters and numbers will be retained in this field. Default: prepG"> |
| 161 <sanitizer> | 160 <sanitizer> |
| 162 <valid initial="string.letters,string.digits"></valid> | 161 <valid initial="string.letters,string.digits"></valid> |
| 163 </sanitizer> | 162 </sanitizer> |
| 164 </param> | 163 </param> |
| 165 <param name="keep_header" type="boolean" checked="true" label="Output header line?" help="Keep the header line for edgeR, remove it for DESeq2" /> | |
| 166 </when> | 164 </when> |
| 167 <when value="no" /> | 165 <when value="no" /> |
| 168 </conditional> | 166 </conditional> |
| 169 <param name="coverage_file" argument="-C" type="boolean" truevalue="-C" falsevalue="" checked="False" label="Output coverage file?" help="If StringTie is run with this option (requires -G), it returns a file with all the transcripts in the reference annotation that are fully covered, end to end, by reads. The output format is a GTF file as described below. Each line of the GTF is corresponds to a gene or transcript in the reference annotation. Default: No"/> | 167 <param name="coverage_file" argument="-C" type="boolean" truevalue="-C" falsevalue="" checked="False" label="Output coverage file?" help="If StringTie is run with this option (requires -G), it returns a file with all the transcripts in the reference annotation that are fully covered, end to end, by reads. The output format is a GTF file as described below. Each line of the GTF is corresponds to a gene or transcript in the reference annotation. Default: No"/> |
| 170 </when> | 168 </when> |
| 228 </outputs> | 226 </outputs> |
| 229 <tests> | 227 <tests> |
| 230 <!--Ensure default GTF output works --> | 228 <!--Ensure default GTF output works --> |
| 231 <test expect_num_outputs="1"> | 229 <test expect_num_outputs="1"> |
| 232 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> | 230 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> |
| 233 <output name="output_gtf" file="stringtie_out1.gtf" ftype="gtf" lines_diff="2" /> | 231 <output name="output_gtf" file="stringtie_out1.gtf" ftype="gtf" lines_diff="4" /> |
| 234 </test> | 232 </test> |
| 235 <!--Ensure fraction option works --> | 233 <!--Ensure fraction option works --> |
| 236 <test expect_num_outputs="1"> | 234 <test expect_num_outputs="1"> |
| 237 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> | 235 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> |
| 238 <param name="fraction" value="0.17" /> | 236 <param name="fraction" value="0.17" /> |
| 239 <output name="output_gtf" file="stringtie_out2.gtf" ftype="gtf" lines_diff="2" /> | 237 <output name="output_gtf" file="stringtie_out2.gtf" ftype="gtf" lines_diff="4" /> |
| 240 </test> | 238 </test> |
| 241 <!--Ensure guide option works --> | 239 <!--Ensure guide option works --> |
| 242 <test expect_num_outputs="1"> | 240 <test expect_num_outputs="1"> |
| 243 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> | 241 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> |
| 244 <param name="use_guide" value="yes" /> | 242 <param name="use_guide" value="yes" /> |
| 245 <param name="guide_gff_select" value="history" /> | 243 <param name="guide_gff_select" value="history" /> |
| 246 <param name="ref_hist" ftype="gtf" value="stringtie_in.gtf" /> | 244 <param name="ref_hist" ftype="gtf" value="stringtie_in.gtf" /> |
| 247 <output name="output_gtf" file="stringtie_out3.gtf" ftype="gtf" lines_diff="2" /> | 245 <output name="output_gtf" file="stringtie_out3.gtf" ftype="gtf" lines_diff="4" /> |
| 248 </test> | 246 </test> |
| 249 <!--Ensure guide with fraction works --> | 247 <!--Ensure guide with fraction works --> |
| 250 <test expect_num_outputs="1"> | 248 <test expect_num_outputs="1"> |
| 251 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> | 249 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> |
| 252 <param name="use_guide" value="yes" /> | 250 <param name="use_guide" value="yes" /> |
| 253 <param name="guide_gff_select" value="history" /> | 251 <param name="guide_gff_select" value="history" /> |
| 254 <param name="ref_hist" ftype="gtf" value="stringtie_in.gtf" /> | 252 <param name="ref_hist" ftype="gtf" value="stringtie_in.gtf" /> |
| 255 <param name="fraction" value="0.17" /> | 253 <param name="fraction" value="0.17" /> |
| 256 <output name="output_gtf" file="stringtie_out4.gtf" ftype="gtf" lines_diff="2" /> | 254 <output name="output_gtf" file="stringtie_out4.gtf" ftype="gtf" lines_diff="4" /> |
| 257 </test> | 255 </test> |
| 258 <!--Ensure coverage and output for Ballgown works --> | 256 <!--Ensure coverage and output for Ballgown works --> |
| 259 <test expect_num_outputs="7"> | 257 <test expect_num_outputs="7"> |
| 260 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> | 258 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> |
| 261 <param name="use_guide" value="yes" /> | 259 <param name="use_guide" value="yes" /> |
| 266 <output name="exon_expression" file="./ballgown/e_data.ctab" ftype="tabular" /> | 264 <output name="exon_expression" file="./ballgown/e_data.ctab" ftype="tabular" /> |
| 267 <output name="intron_expression" file="./ballgown/i_data.ctab" ftype="tabular" /> | 265 <output name="intron_expression" file="./ballgown/i_data.ctab" ftype="tabular" /> |
| 268 <output name="transcript_expression" file="./ballgown/t_data.ctab" ftype="tabular" /> | 266 <output name="transcript_expression" file="./ballgown/t_data.ctab" ftype="tabular" /> |
| 269 <output name="exon_transcript_mapping" file="./ballgown/e2t.ctab" ftype="tabular" /> | 267 <output name="exon_transcript_mapping" file="./ballgown/e2t.ctab" ftype="tabular" /> |
| 270 <output name="intron_transcript_mapping" file="./ballgown/i2t.ctab" ftype="tabular" /> | 268 <output name="intron_transcript_mapping" file="./ballgown/i2t.ctab" ftype="tabular" /> |
| 271 <output name="output_gtf" file="stringtie_out5.gtf" ftype="gtf" lines_diff="2" /> | 269 <output name="output_gtf" file="stringtie_out5.gtf" ftype="gtf" lines_diff="4" /> |
| 272 <output name="coverage" file="stringtie_out_coverage.gtf" ftype="gtf" /> | 270 <output name="coverage" file="stringtie_out_coverage.gtf" ftype="gtf" /> |
| 273 </test> | 271 </test> |
| 274 <!--Ensure output for edgeR works --> | 272 <!--Ensure output for edgeR works --> |
| 275 <test expect_num_outputs="5"> | 273 <test expect_num_outputs="5"> |
| 276 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> | 274 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> |
| 282 <param name="coverage_file" value="True" /> | 280 <param name="coverage_file" value="True" /> |
| 283 <param name="clustering" value="True" /> | 281 <param name="clustering" value="True" /> |
| 284 <output name="gene_counts" file="gene_counts_edger.tsv" ftype="tabular" /> | 282 <output name="gene_counts" file="gene_counts_edger.tsv" ftype="tabular" /> |
| 285 <output name="transcript_counts" file="transcript_counts_edger.tsv" ftype="tabular" /> | 283 <output name="transcript_counts" file="transcript_counts_edger.tsv" ftype="tabular" /> |
| 286 <output name="legend" file="legend.tsv" ftype="tabular" /> | 284 <output name="legend" file="legend.tsv" ftype="tabular" /> |
| 287 <output name="output_gtf" file="stringtie_out6.gtf" ftype="gtf" lines_diff="2" /> | 285 <output name="output_gtf" file="stringtie_out6.gtf" ftype="gtf" lines_diff="4" /> |
| 288 <output name="coverage" file="stringtie_out_coverage.gtf" ftype="gtf" /> | |
| 289 </test> | |
| 290 <!--Ensure output for DESeq2 works --> | |
| 291 <test expect_num_outputs="5"> | |
| 292 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> | |
| 293 <param name="use_guide" value="yes" /> | |
| 294 <param name="special_outputs_select" value="deseq2" /> | |
| 295 <param name="keep_header" value="False" /> | |
| 296 <param name="input_estimation" value="True" /> | |
| 297 <param name="guide_gff_select" value="history" /> | |
| 298 <param name="ref_hist" ftype="gtf" value="stringtie_in.gtf" /> | |
| 299 <param name="coverage_file" value="True" /> | |
| 300 <param name="clustering" value="True" /> | |
| 301 <output name="gene_counts" file="gene_counts_deseq2.tsv" ftype="tabular" /> | |
| 302 <output name="transcript_counts" file="transcript_counts_deseq2.tsv" ftype="tabular" /> | |
| 303 <output name="legend" file="legend.tsv" ftype="tabular" /> | |
| 304 <output name="output_gtf" file="stringtie_out6.gtf" ftype="gtf" lines_diff="2" /> | |
| 305 <output name="coverage" file="stringtie_out_coverage.gtf" ftype="gtf" /> | 286 <output name="coverage" file="stringtie_out_coverage.gtf" ftype="gtf" /> |
| 306 </test> | 287 </test> |
| 307 <!--Ensure gene abundances output works --> | 288 <!--Ensure gene abundances output works --> |
| 308 <test expect_num_outputs="2"> | 289 <test expect_num_outputs="2"> |
| 309 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> | 290 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> |
| 310 <param name="use_guide" value="yes" /> | 291 <param name="use_guide" value="yes" /> |
| 311 <param name="guide_gff_select" value="history" /> | 292 <param name="guide_gff_select" value="history" /> |
| 312 <param name="ref_hist" ftype="gtf" value="stringtie_in.gtf" /> | 293 <param name="ref_hist" ftype="gtf" value="stringtie_in.gtf" /> |
| 313 <param name="fraction" value="0.17" /> | 294 <param name="fraction" value="0.17" /> |
| 314 <param name="abundance_estimation" value="True" /> | 295 <param name="abundance_estimation" value="True" /> |
| 315 <output name="output_gtf" file="stringtie_out4.gtf" ftype="gtf" lines_diff="2" /> | 296 <output name="output_gtf" file="stringtie_out4.gtf" ftype="gtf" lines_diff="4" /> |
| 316 <output name="gene_abundance_estimation" file="stringtie_out7.gtf" ftype="gtf" lines_diff="2" /> | 297 <output name="gene_abundance_estimation" file="stringtie_out7.gtf" ftype="gtf" lines_diff="2" /> |
| 317 </test> | 298 </test> |
| 318 <!--Ensure another fraction value works --> | 299 <!--Ensure another fraction value works --> |
| 319 <test expect_num_outputs="1"> | 300 <test expect_num_outputs="1"> |
| 320 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> | 301 <param name="input_bam" ftype="bam" value="stringtie_in1.bam" /> |
| 321 <param name="use_guide" value="yes" /> | 302 <param name="use_guide" value="yes" /> |
| 322 <param name="guide_gff_select" value="history" /> | 303 <param name="guide_gff_select" value="history" /> |
| 323 <param name="ref_hist" ftype="gtf" value="stringtie_in.gtf" /> | 304 <param name="ref_hist" ftype="gtf" value="stringtie_in.gtf" /> |
| 324 <param name="fraction" value="0.15" /> | 305 <param name="fraction" value="0.15" /> |
| 325 <output name="output_gtf" file="stringtie_out8.gtf" ftype="gtf" lines_diff="2" /> | 306 <output name="output_gtf" file="stringtie_out8.gtf" ftype="gtf" lines_diff="4" /> |
| 326 </test> | 307 </test> |
| 327 <!--Ensure built-in GTFs work --> | 308 <!--Ensure built-in GTFs work --> |
| 328 <test expect_num_outputs="1"> | 309 <test expect_num_outputs="1"> |
| 329 <param name="input_bam" ftype="bam" dbkey="hg38" value="stringtie_in1.bam" /> | 310 <param name="input_bam" ftype="bam" dbkey="hg38" value="stringtie_in1.bam" /> |
| 330 <param name="use_guide" value="yes" /> | 311 <param name="use_guide" value="yes" /> |
| 331 <param name="guide_gff_select" value="cached" /> | 312 <param name="guide_gff_select" value="cached" /> |
| 332 <param name="fraction" value="0.15" /> | 313 <param name="fraction" value="0.15" /> |
| 333 <output name="output_gtf" file="stringtie_out8.gtf" ftype="gtf" lines_diff="2" /> | 314 <output name="output_gtf" file="stringtie_out8.gtf" ftype="gtf" lines_diff="4" /> |
| 334 </test> | 315 </test> |
| 335 </tests> | 316 </tests> |
| 336 <help><