comparison macros.xml @ 19:accd772edf70 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 363aead8810baedaff299537616cebdab36a8664
author bgruening
date Wed, 07 Dec 2022 19:30:24 +0000
parents c6c81a918ae1
children d7346aaf11f4
comparison
equal deleted inserted replaced
18:c6c81a918ae1 19:accd772edf70
1 <macros> 1 <macros>
2 <token name="@VERSION@">1.5.1</token> 2 <token name="@TOOL_VERSION@">1.9.0</token>
3 <token name="@GALAXY_VERSION@">galaxy0</token> 3 <token name="@VERSION_SUFFIX@">2</token>
4 <token name="@IDX_VERSION@">q7</token> 4 <token name="@IDX_VERSION@">q7</token>
5 <token name="@PROFILE_VERSION@">20.01</token> 5 <token name="@PROFILE_VERSION@">20.01</token>
6 <xml name="requirements"> 6 <xml name="requirements">
7 <requirements> 7 <requirements>
8 <requirement type="package" version="@VERSION@">salmon</requirement> 8 <requirement type="package" version="@TOOL_VERSION@">salmon</requirement>
9 <requirement type="package" version="1.3">seqtk</requirement> 9 <requirement type="package" version="1.3">seqtk</requirement>
10 <requirement type="package" version="1.12">samtools</requirement> 10 <requirement type="package" version="1.16.1">samtools</requirement>
11 <requirement type="package" version="0.2.0">vpolo</requirement> 11 <requirement type="package" version="0.2.0">vpolo</requirement>
12 <requirement type="package" version="1.3.0">pandas</requirement> 12 <requirement type="package" version="1.5.2">pandas</requirement>
13 <requirement type="package" version="1.7.0">scipy</requirement> 13 <requirement type="package" version="3.0.0">graphviz</requirement>
14 <requirement type="package" version="1.9.3">scipy</requirement>
14 </requirements> 15 </requirements>
15 </xml> 16 </xml>
16 <xml name="orient"> 17 <xml name="orient">
17 <param name="orientation" type="select" label="Relative orientation of reads within a pair"> 18 <param name="orientation" type="select" label="Relative orientation of reads within a pair">
18 <option value="M">Mates are oriented in the same direction (M = matching)</option> 19 <option value="M">Mates are oriented in the same direction (M = matching)</option>
70 </options> 71 </options>
71 </param> 72 </param>
72 </when> <!-- build-in --> 73 </when> <!-- build-in -->
73 <when value="history"> 74 <when value="history">
74 <section name="s_index" title="Salmon index" expanded="true"> 75 <section name="s_index" title="Salmon index" expanded="true">
75 <param name="fasta" type="data" format="fasta" label="Transcripts fasta file"/> 76 <param name="fasta" type="data" format="fasta" label="Transcripts FASTA file"/>
77 <param name="genome" type="data" format="fasta" optional="true" label="Reference genome"
78 help="The reference genome is required for generating a decoy-away index. The decoy sequences are regions of the target genome
79 that are sequence similar to annotated transcripts. These are the regions of the genome most likely to cause mismapping." />
76 <param name="kmer" type="integer" value="31" label="Kmer length"/> 80 <param name="kmer" type="integer" value="31" label="Kmer length"/>
77 <param name="phash" type="boolean" label="Perfect Hash" truevalue="--perfectHash" falsevalue="" checked="false" 81 <param name="phash" type="boolean" label="Perfect Hash" truevalue="--perfectHash" falsevalue="" checked="false"
78 help="Build the index using a perfect hash rather than a dense hash. This will require less memory (especially during quantification), but will take longer to construct"/> 82 help="Build the index using a perfect hash rather than a dense hash. This will require less memory (especially during quantification),
83 but will take longer to construct"/>
79 </section> 84 </section>
80 </when> 85 </when>
81 </conditional> 86 </conditional>
82 </xml> 87 </xml>
83 <xml name="reads"> 88 <xml name="reads">
153 label="Consensus Slack" 158 label="Consensus Slack"
154 help="The amount of slack allowed in the quasi-mapping consensus mechanism. Normally, a transcript must cover all hits to be considered for mapping. If this is set to a value, X, greater than 0, then a transcript can fail to cover up to X hits before it is discounted as a mapping candidate. The default value of this option is 1 if --validateMappings is given and 0 otherwise."/> 159 help="The amount of slack allowed in the quasi-mapping consensus mechanism. Normally, a transcript must cover all hits to be considered for mapping. If this is set to a value, X, greater than 0, then a transcript can fail to cover up to X hits before it is discounted as a mapping candidate. The default value of this option is 1 if --validateMappings is given and 0 otherwise."/>
155 <param name="dovetail" label="Allow Dovetail" type="boolean" truevalue="--allowDovetail" falsevalue="" checked="False" help="Allow dovetail mappings"/> 160 <param name="dovetail" label="Allow Dovetail" type="boolean" truevalue="--allowDovetail" falsevalue="" checked="False" help="Allow dovetail mappings"/>
156 <param name="recoverOrphans" label="Recover Orphans" type="boolean" truevalue="--recoverOrphans" falsevalue="" checked="False" 161 <param name="recoverOrphans" label="Recover Orphans" type="boolean" truevalue="--recoverOrphans" falsevalue="" checked="False"
157 help="Attempt to recover the mates of orphaned reads. This uses edlib for orphan recovery, and so introduces some computational overhead, but it can improve sensitivity."/> 162 help="Attempt to recover the mates of orphaned reads. This uses edlib for orphan recovery, and so introduces some computational overhead, but it can improve sensitivity."/>
158 <param name="writeMappings" type="boolean" truevalue="--writeMappings=./output/samout.sam" falsevalue="" checked="False" 163 <conditional name="bam_options">
159 label="Write Mappings to Bam File" 164 <param argument="--writeMappings" type="select" label="Write Mappings to BAM File" help="If this option is provided, then the quasi-mapping results will be written out in SAM-compatible format. By default, output will be directed to stdout, but an alternative file name can be provided instead">
160 help="If this option is provided, then the quasi-mapping results will be written out in SAM-compatible format. By default, output will be directed to stdout, but an alternative file name can be provided instead"/> 165 <option value="--writeMappings=./output/samout.sam">Enabled</option>
161 <param name="consistentHits" type="boolean" truevalue="--consistentHits" falsevalue="" checked="False" 166 <option value="" selected="true">Disabled</option>
167 </param>
168 <when value="--writeMappings=./output/samout.sam">
169 <param argument="--writeQualities" type="boolean" truevalue="--writeQualities" falsevalue="" checked="false" label="Write qualities" help="If this flag is
170 provided, then the output SAM file will contain quality strings as well as read sequences." />
171 </when>
172 <when value=""/>
173 </conditional>
174 <param name="consistentHits" type="boolean" truevalue="--consistentHits" falsevalue="" checked="False"
162 label="Consistent Hits" 175 label="Consistent Hits"
163 help="Force hits gathered during quasi-mapping to be 'consistent' (i.e. co-linear and approximately the right distance apart)."/> 176 help="Force hits gathered during quasi-mapping to be 'consistent' (i.e. co-linear and approximately the right distance apart)."/>
164 <param name="quasiCoverage" type="integer" optional="True" label="Quasi Coverage" 177 <param name="quasiCoverage" type="integer" optional="True" label="Quasi Coverage"
165 help="[Experimental]: The fraction of the read that must be covered by MMPs (of length >= 31) if this read is to be considered as 'mapped'. This may help to avoid 'spurious' mappings. A value of 0 (the default) denotes no coverage threshold (a single 31-mer can yield a mapping). Since coverage by exact matching, large, MMPs is a rather strict condition, this value should likely be set to something low, if used."/> 178 help="[Experimental]: The fraction of the read that must be covered by MMPs (of length >= 31) if this read is to be considered as 'mapped'. This may help to avoid 'spurious' mappings. A value of 0 (the default) denotes no coverage threshold (a single 31-mer can yield a mapping). Since coverage by exact matching, large, MMPs is a rather strict condition, this value should likely be set to something low, if used."/>
166 </xml> 179 </xml>
313 <token name="@bam_sort@"><![CDATA[samtools sort -@ \${GALAXY_SLOTS} --output-fmt=BAM -o ./output/bamout.bam]]></token> 326 <token name="@bam_sort@"><![CDATA[samtools sort -@ \${GALAXY_SLOTS} --output-fmt=BAM -o ./output/bamout.bam]]></token>
314 <token name="@indexing@"><![CDATA[ 327 <token name="@indexing@"><![CDATA[
315 mkdir ./index && 328 mkdir ./index &&
316 mkdir ./output && 329 mkdir ./output &&
317 #if $quant_type.refTranscriptSource.TranscriptSource != "indexed": 330 #if $quant_type.refTranscriptSource.TranscriptSource != "indexed":
331 #if $quant_type.refTranscriptSource.s_index.genome
332 cat '${quant_type.refTranscriptSource.s_index.genome}' | grep "^>" | cut -d " " -f 1 > 'decoys.txt' &&
333 sed -i.bak -e 's/>//g' 'decoys.txt' &&
334 cat '${quant_type.refTranscriptSource.s_index.fasta}' '${quant_type.refTranscriptSource.s_index.genome}' > 'input_index.fasta' &&
335 #else
336 ln -s '${quant_type.refTranscriptSource.s_index.fasta}' 'input_index.fasta' &&
337 #end if
318 salmon index -i ./index 338 salmon index -i ./index
319 --kmerLen '${quant_type.refTranscriptSource.s_index.kmer}' 339 --kmerLen '${quant_type.refTranscriptSource.s_index.kmer}'
320 --gencode 340 --gencode
321 --transcripts '${quant_type.refTranscriptSource.s_index.fasta}' 341 --threads "\${GALAXY_SLOTS:-4}"
342 --transcripts 'input_index.fasta'
343 #if $quant_type.refTranscriptSource.s_index.genome
344 --decoy 'decoys.txt'
345 #end if
322 && 346 &&
323 #set $index_path = './index' 347 #set $index_path = './index'
324 #else 348 #else
325 #set $index_path = $quant_type.refTranscriptSource.index.fields.path 349 #set $index_path = $quant_type.refTranscriptSource.index.fields.path
326 #end if 350 #end if
451 #if $quant_type.consensusSlack: 475 #if $quant_type.consensusSlack:
452 --consensusSlack '${quant_type.consensusSlack}' 476 --consensusSlack '${quant_type.consensusSlack}'
453 #end if 477 #end if
454 ${quant_type.dovetail} 478 ${quant_type.dovetail}
455 ${quant_type.recoverOrphans} 479 ${quant_type.recoverOrphans}
456 ${quant_type.writeMappings} 480 ${quant_type.bam_options.writeMappings}
481 #if $quant_type.bam_options.writeMappings:
482 ${quant_type.bam_options.writeQualities}
483 #end if
457 ${quant_type.consistentHits} 484 ${quant_type.consistentHits}
458 #if $quant_type.quasiCoverage: 485 #if $quant_type.quasiCoverage:
459 --quasiCoverage '${quant_type.quasiCoverage}' 486 --quasiCoverage '${quant_type.quasiCoverage}'
460 #end if 487 #end if
461 ]]> 488 ]]>