comparison macros.xml @ 13:18d6b8c65512 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
author bgruening
date Wed, 29 Oct 2025 10:45:57 +0000
parents b127e728b650
children b3458e0f1931
comparison
equal deleted inserted replaced
12:b127e728b650 13:18d6b8c65512
1 <macros> 1 <macros>
2 <token name="@TOOL_VERSION@">1.10.1</token> 2 <token name="@TOOL_VERSION@">1.10.1</token>
3 <token name="@VERSION_SUFFIX@">0</token> 3 <token name="@VERSION_SUFFIX@">3</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@">24.1</token>
6 <xml name="xrefs">
7 <xrefs>
8 <xref type="bio.tools">salmon</xref>
9 </xrefs>
10 </xml>
6 <xml name="requirements"> 11 <xml name="requirements">
7 <requirements> 12 <requirements>
8 <requirement type="package" version="@TOOL_VERSION@">salmon</requirement> 13 <requirement type="package" version="@TOOL_VERSION@">salmon</requirement>
9 <requirement type="package" version="1.3">seqtk</requirement> 14 <requirement type="package" version="1.3">seqtk</requirement>
10 <requirement type="package" version="1.16.1">samtools</requirement> 15 <requirement type="package" version="1.16.1">samtools</requirement>
12 <requirement type="package" version="1.5.2">pandas</requirement> 17 <requirement type="package" version="1.5.2">pandas</requirement>
13 <requirement type="package" version="3.0.0">graphviz</requirement> 18 <requirement type="package" version="3.0.0">graphviz</requirement>
14 <requirement type="package" version="1.9.3">scipy</requirement> 19 <requirement type="package" version="1.9.3">scipy</requirement>
15 </requirements> 20 </requirements>
16 </xml> 21 </xml>
22 <xml name="version_command">
23 <version_command><![CDATA[salmon --no-version-check --version | cut -d" " -f2]]></version_command>
24 </xml>
17 <xml name="orient"> 25 <xml name="orient">
18 <param name="orientation" type="select" label="Relative orientation of reads within a pair"> 26 <param argument="--libType" name="orientation" type="select" label="Relative orientation of reads within a pair">
19 <option value="M">Mates are oriented in the same direction (M = matching)</option> 27 <option value="M">Mates are oriented in the same direction (M = matching)</option>
20 <option value="O">Mates are oriented away from each other (O = outward)</option> 28 <option value="O">Mates are oriented away from each other (O = outward)</option>
21 <option value="I" selected="True">Mates are oriented toward each other (I = inward)</option> 29 <option value="I" selected="True">Mates are oriented toward each other (I = inward)</option>
22 </param> 30 </param>
23 </xml> 31 </xml>
24 <xml name="stranded"> 32 <xml name="stranded">
25 <conditional name="libtype" > 33 <conditional name="libtype" >
26 <param name="strandedness" type="select" label="Specify the strandedness of the reads" help="--libtype"> 34 <param argument="--libType" name="strandedness" type="select" label="Specify the strandedness of the reads" help="--libtype">
27 <option value="A" selected="true">Infer automatically (A)</option> 35 <option value="A" selected="true">Infer automatically (A)</option>
28 <option value="U">Not stranded (U)</option> 36 <option value="U">Not stranded (U)</option>
29 <option value="SF">read comes from the forward strand (SF)</option> 37 <option value="SF">read comes from the forward strand (SF)</option>
30 <option value="SR">read comes from the reverse strand (SR)</option> 38 <option value="SR">read comes from the reverse strand (SR)</option>
31 </param> 39 </param>
61 help="Built-ins were indexed using default options"> 69 help="Built-ins were indexed using default options">
62 <option value="indexed">Use a built-in index</option> 70 <option value="indexed">Use a built-in index</option>
63 <option value="history" selected="True">Use one from the history</option> 71 <option value="history" selected="True">Use one from the history</option>
64 </param> 72 </param>
65 <when value="indexed"> 73 <when value="indexed">
66 <param name="index" type="select" label="Select a reference transcriptome" help="If your transcriptome of interest is not listed, contact your Galaxy admin"> 74 <param argument="--index" type="select" label="Select a reference transcriptome" help="If your transcriptome of interest is not listed, contact your Galaxy admin">
67 <options from_data_table="salmon_indexes_versioned"> 75 <options from_data_table="salmon_indexes_versioned">
68 <filter type="sort_by" column="2"/> 76 <filter type="sort_by" column="2"/>
69 <filter type="static_value" column="4" value="@IDX_VERSION@" /> 77 <filter type="static_value" column="4" value="@IDX_VERSION@" />
70 <validator type="no_options" message="No indexes are available for the selected input dataset"/> 78 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
71 </options> 79 </options>
72 </param> 80 </param>
73 </when> <!-- build-in --> 81 </when> <!-- build-in -->
74 <when value="history"> 82 <when value="history">
75 <section name="s_index" title="Salmon index" expanded="true"> 83 <section name="s_index" title="Salmon index" expanded="true">
76 <param name="fasta" type="data" format="fasta" label="Transcripts FASTA file"/> 84 <param argument="--transcripts" name="fasta" type="data" format="fasta" label="Transcripts FASTA file"/>
77 <param name="genome" type="data" format="fasta" optional="true" label="Reference genome" 85 <param argument="--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 86 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." /> 87 that are sequence similar to annotated transcripts. These are the regions of the genome most likely to cause mismapping." />
80 <param name="kmer" type="integer" value="31" label="Kmer length"/> 88 <param argument="--kmerLen" name="kmer" type="integer" value="31" label="Kmer length"/>
81 <param name="phash" type="boolean" label="Perfect Hash" truevalue="--perfectHash" falsevalue="" checked="false"
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"/>
84 </section> 89 </section>
85 </when> 90 </when>
86 </conditional> 91 </conditional>
87 </xml> 92 </xml>
88 <xml name="reads"> 93 <xml name="reads">
89 <section name="input" title="Data input" expanded="True"> 94 <section name="input" title="Data input" expanded="True">
90 <conditional name="single_or_paired"> 95 <conditional name="single_or_paired">
91 <param name="single_or_paired_opts" type="select" label="Is this library mate-paired?"> 96 <param name="single_or_paired_opts" type="select" label="Is this library mate-paired?">
92 <option value="single">Single-end</option> 97 <option value="single">Single-end</option>
93 <option value="paired">Paired-end</option>
94 <option value="paired_collection">Paired-end Dataset Collection</option> 98 <option value="paired_collection">Paired-end Dataset Collection</option>
95 <option value="paired_interleaved">Paired-end data from single interleaved dataset</option>
96 </param> 99 </param>
97 <when value="single"> 100 <when value="single">
98 <param name="input_singles" type="data" format="fastq,fasta,fastq.gz,fastq.bz2" label="FASTQ/FASTA file" help="FASTQ file." /> 101 <param argument="--unmatedReads" name="input_singles" type="data" format="fasta,fastqsanger,fastqsanger.gz,fastqsanger.bz2" label="FASTQ/FASTA file" help="FASTQ file." />
99 <expand macro="stranded_se"/> 102 <expand macro="stranded_se"/>
100 </when> 103 </when>
101 <when value="paired"> 104 <when value="paired_collection">
102 <param name="input_mate1" type="data" format="fastq,fasta,fastq.gz,fastq.bz2,fastqsanger,fastqsanger.gz,fastqsanger.bz2" label="Mate pair 1" help="FASTQ file." /> 105 <param name="input_1" format="fasta,fastqsanger,fastqsanger.gz,fastqsanger.bz2" type="data_collection" collection_type="paired" label="FASTQ Paired Dataset" help="(--mates1,--mates2)" />
103 <param name="input_mate2" type="data" format="fastq,fasta,fastq.gz,fastq.bz2,fastqsanger,fastqsanger.gz,fastqsanger.bz2" label="Mate pair 2" help="FASTQ file." />
104 <expand macro="stranded_pe"/> 106 <expand macro="stranded_pe"/>
105 </when>
106 <when value="paired_collection">
107 <param name="input_1" format="fastq,fasta,fastq.gz,fastq.bz2,fastqsanger,fastqsanger.gz,fastqsanger.bz2" type="data_collection" collection_type="paired" label="FASTQ Paired Dataset" help="Must be of datatype &quot;fastqsanger&quot; or &quot;fasta&quot;" />
108 <expand macro="stranded_pe"/>
109 </when>
110 <when value="paired_interleaved">
111 <param name="input_1" format="fastq,fasta,fastq.gz,fastq.bz2,fastqsanger,fastqsanger.gz,fastqsanger.bz2" type="data" label="Interleaved FASTQ file" help="Must be of datatype &quot;fastqsanger&quot; or &quot;fasta&quot;. --interleaved"/>
112 <expand macro="stranded_pe"/>
113 </when> 107 </when>
114 </conditional> 108 </conditional>
115 </section> 109 </section>
116 <param argument="--type" type="select" label="Type of index" help="When using quasi, orphaned reads will be considered when performing lightweight-alignment.">
117 <option value="quasi" selected="True">quasi</option>
118 </param>
119 <!--Salmon quant type select: reads-based or alignment-based--> 110 <!--Salmon quant type select: reads-based or alignment-based-->
120 <param name="discardOrphansQuasi" type="boolean" truevalue="--discardOrphansQuasi" falsevalue="" checked="False" 111 <param argument="--discardOrphansQuasi" type="boolean" truevalue="--discardOrphansQuasi" falsevalue="" checked="False"
121 label="Discard orphan quasi" 112 label="Discard orphan quasi"
122 help="Discard orphan mappings in quasi-mapping mode. If this flag is passed then only paired mappings will be considered toward quantification estimates. The default behavior is to consider orphan mappings if no valid paired mappings exist."/> 113 help="Discard orphan mappings in quasi-mapping mode. If this flag is passed then only paired mappings will be considered toward quantification estimates. The default behavior is to consider orphan mappings if no valid paired mappings exist."/>
123 <conditional name="validmap"> 114 <conditional name="validmap">
124 <param name="validateMappings" type="boolean" truevalue="--validateMappings" falsevalue="" checked="False" 115 <param name="validateMappings" type="select" label="Validate mappings" help="Validate mappings using alignment-based verifcation. If this flag is passed, quasi-mappings will be validated to ensure that they could give rise to a reasonable alignment before they are further used for quantification.">
125 label="Validate mappings" 116 <option value="--validateMappings">True</option>
126 help="Validate mappings using alignment-based verifcation. If this flag is passed, quasi-mappings will be validated to ensure that they could give rise to a reasonable alignment before they are further used for quantification."/> 117 <option value="" selected="true">False</option>
118 </param>
127 <when value="--validateMappings"> 119 <when value="--validateMappings">
128 <param name="minScoreFraction" type="float" value="0.65" min="0.0" max="0.99" 120 <param argument="--minScoreFraction" type="float" value="0.65" min="0.0" max="0.99"
129 label="Min Score Fraction" 121 label="Min Score Fraction"
130 help="The fraction of the optimal possible alignment score that a mapping must achieve in order to be considered valid. Should be in (0,1]."/> 122 help="The fraction of the optimal possible alignment score that a mapping must achieve in order to be considered valid. Should be in (0,1]."/>
131 <param name="maxMMPExtension" type="integer" optional="True" 123 <param argument="--maxMMPExtension" type="integer" optional="True"
132 label="Sets the maximum allowable MMP extension when collecting suffix array intervals to be used in chaining. This prevents MMPs from becoming too long, and potentially masking intervals that would uncover other good quasi-mappings for the read. This heuristic mimics the idea of the maximum mappable safe prefix (MMSP) in selective alignment. Setting a smaller value will potentially allow for more sensitive, but slower, mapping."/> 124 label="Sets the maximum allowable MMP extension when collecting suffix array intervals to be used in chaining. This prevents MMPs from becoming too long, and potentially masking intervals that would uncover other good quasi-mappings for the read. This heuristic mimics the idea of the maximum mappable safe prefix (MMSP) in selective alignment. Setting a smaller value will potentially allow for more sensitive, but slower, mapping."/>
133 <param name="matchScore" argument="--ma" type="integer" value="2" 125 <param argument="--ma" name="matchScore" type="integer" value="2"
134 label="Match Score" 126 label="Match Score"
135 help="The value given to a match between read and reference nucleotides in an alignment."/> 127 help="The value given to a match between read and reference nucleotides in an alignment."/>
136 <param name="mismatchPenalty" argument="--mp" type="integer" value="4" 128 <param argument="--mp" name="mismatchPenalty" type="integer" value="4"
137 label="Mismatch Penalty" 129 label="Mismatch Penalty"
138 help="The value given to a mis-match between read and reference nucleotides in an alignment. This will be cast to a negative value."/> 130 help="The value given to a mis-match between read and reference nucleotides in an alignment. This will be cast to a negative value."/>
139 <param name="gapOpenPenalty" argument="--go" type="integer" value="5" 131 <param argument="--go" name="gapOpenPenalty" type="integer" value="5"
140 label="Gap Open Penalty" 132 label="Gap Open Penalty"
141 help="The value given to a gap opening in an alignment."/> 133 help="The value given to a gap opening in an alignment."/>
142 <param name="gapExtensionPenalty" argument="--ge" type="integer" value="3" 134 <param argument="--ge" name="gapExtensionPenalty" type="integer" value="3"
143 label="Gap Extension Penalty" 135 label="Gap Extension Penalty"
144 help="The value given to a gap extension in an alignment."/> 136 help="The value given to a gap extension in an alignment."/>
145 <param name="mimicBT2" type="boolean" truevalue="--mimicBT2" falsevalue="" checked="False" 137 <param argument="--mimicBT2" type="boolean" truevalue="--mimicBT2" falsevalue="" checked="False"
146 label="Mimic Bowtie 2" 138 label="Mimic Bowtie 2"
147 help=" Set flags to mimic parameters similar to Bowtie2 with --no-discordant and --no-mixed flags. This increases disallows dovetailing reads, and discards orphans. Note, this does not impose the very strict parameters assumed by RSEM+Bowtie2, like gapless alignments. For that behavior, use the --mimiStrictBT2 flag "/> 139 help=" Set flags to mimic parameters similar to Bowtie2 with --no-discordant and --no-mixed flags. This increases disallows dovetailing reads, and discards orphans. Note, this does not impose the very strict parameters assumed by RSEM+Bowtie2, like gapless alignments. For that behavior, use the --mimiStrictBT2 flag "/>
148 <param name="mimicStrictBT2" type="boolean" truevalue="--mimicStrictBT2" falsevalue="" checked="False" 140 <param argument="--mimicStrictBT2" type="boolean" truevalue="--mimicStrictBT2" falsevalue="" checked="False"
149 label="Mimic Strict Bowtie 2" 141 label="Mimic Strict Bowtie 2"
150 help="Set flags to mimic the very strict parameters used by RSEM+Bowtie2. This increases --minScoreFraction to 0.8, disallows dovetailing reads, discards orphans, and disallows gaps in alignments."/> 142 help="Set flags to mimic the very strict parameters used by RSEM+Bowtie2. This increases --minScoreFraction to 0.8, disallows dovetailing reads, discards orphans, and disallows gaps in alignments."/>
151 <param name="hardFilter" type="boolean" truevalue="--hardFilter" falsevalue="" checked="False" 143 <param argument="--hardFilter" type="boolean" truevalue="--hardFilter" falsevalue="" checked="False"
152 label="Hard Filter" 144 label="Hard Filter"
153 help="Instead of weighting mappings by their alignment score, this flag will discard any mappings with sub-optimal alignment score. The default option of soft-filtering (i.e. weighting mappings by their alignment score) usually yields slightly more accurate abundance estimates but this flag may be desirable if you want more accurate 'naive' equivalence classes, rather than range factorized equivalence classes."/> 145 help="Instead of weighting mappings by their alignment score, this flag will discard any mappings with sub-optimal alignment score. The default option of soft-filtering (i.e. weighting mappings by their alignment score) usually yields slightly more accurate abundance estimates but this flag may be desirable if you want more accurate 'naive' equivalence classes, rather than range factorized equivalence classes."/>
154 </when> 146 </when>
155 <when value=""/> 147 <when value=""/>
156 </conditional> 148 </conditional>
157 <param name="consensusSlack" type="integer" optional="True" value="0" 149 <param argument="--consensusSlack" type="integer" optional="True" value="0"
158 label="Consensus Slack" 150 label="Consensus Slack"
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."/> 151 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."/>
160 <param name="dovetail" label="Allow Dovetail" type="boolean" truevalue="--allowDovetail" falsevalue="" checked="False" help="Allow dovetail mappings"/> 152 <param argument="--dovetail" label="Allow Dovetail" type="boolean" truevalue="--allowDovetail" falsevalue="" checked="False" help="Allow dovetail mappings"/>
161 <param name="recoverOrphans" label="Recover Orphans" type="boolean" truevalue="--recoverOrphans" falsevalue="" checked="False" 153 <param argument="--recoverOrphans" label="Recover Orphans" type="boolean" truevalue="--recoverOrphans" falsevalue="" checked="False"
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."/> 154 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."/>
163 <conditional name="bam_options"> 155 <conditional name="bam_options">
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"> 156 <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">
165 <option value="--writeMappings=./output/samout.sam">Enabled</option> 157 <option value="--writeMappings=./output/samout.sam">Enabled</option>
166 <option value="" selected="true">Disabled</option> 158 <option value="" selected="true">Disabled</option>
169 <param argument="--writeQualities" type="boolean" truevalue="--writeQualities" falsevalue="" checked="false" label="Write qualities" help="If this flag is 161 <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." /> 162 provided, then the output SAM file will contain quality strings as well as read sequences." />
171 </when> 163 </when>
172 <when value=""/> 164 <when value=""/>
173 </conditional> 165 </conditional>
174 <param name="consistentHits" type="boolean" truevalue="--consistentHits" falsevalue="" checked="False" 166 <param argument="--consistentHits" type="boolean" truevalue="--consistentHits" falsevalue="" checked="False"
175 label="Consistent Hits" 167 label="Consistent Hits"
176 help="Force hits gathered during quasi-mapping to be 'consistent' (i.e. co-linear and approximately the right distance apart)."/> 168 help="Force hits gathered during quasi-mapping to be 'consistent' (i.e. co-linear and approximately the right distance apart)."/>
177 <param name="quasiCoverage" type="integer" optional="True" label="Quasi Coverage" 169 <param argument="--quasiCoverage" type="integer" optional="True" label="Quasi Coverage"
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."/> 170 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."/>
179 </xml> 171 </xml>
180 <xml name="align"> 172 <xml name="align">
181 <param name="afile" type="data" format="qname_input_sorted.bam,qname_sorted.bam" label="Alignment file"/> 173 <param argument="--alignments" name="afile" type="data" format="qname_input_sorted.bam,qname_sorted.bam" label="Alignment file"/>
182 <param argument="--ont" type="boolean" truevalue="--ont" falsevalue="" label="Is this Alignment file a Oxford Nanopore Technologies (ONT) dataset ?" help="Select this for both cDNA and direct RNA ONT datasets. Enables an alignment error model designed to work with long-read alignments and disables the length effect in the generative model when computing the conditional probability of observing a fragment given that it arises from a specific transcript. This is because in long-read sequencing, we do not expect to observe (i.e. sequence) multiple fragments from the same molecule, and thus we do not expect the transcript length to directly affect the observed fragment count directly"/> 174 <param argument="--ont" type="boolean" truevalue="--ont" falsevalue="" label="Is this Alignment file a Oxford Nanopore Technologies (ONT) dataset ?" help="Select this for both cDNA and direct RNA ONT datasets. Enables an alignment error model designed to work with long-read alignments and disables the length effect in the generative model when computing the conditional probability of observing a fragment given that it arises from a specific transcript. This is because in long-read sequencing, we do not expect to observe (i.e. sequence) multiple fragments from the same molecule, and thus we do not expect the transcript length to directly affect the observed fragment count directly"/>
183 <param name="transcript" type="data" format="fasta,fa" label="Transcript file"/> 175 <param argument="--targets" name="transcript" type="data" format="fasta,fasta.gz" label="Transcript file"/>
184 <expand macro="stranded_se"/> 176 <expand macro="stranded_se"/>
185 <param name="discardOrphans" type="boolean" truevalue="--discardOrphans" falsevalue="" checked="False" 177 <param argument="--discardOrphans" type="boolean" truevalue="--discardOrphans" falsevalue="" checked="False"
186 label="Discard orphans" 178 label="Discard orphans"
187 help="Discard orphan alignments in the input. If this flag is passed, then only paired alignments will be considered toward quantification estimates. The default behavior is to consider orphan alignments if no valid paired mappings exist."/> 179 help="Discard orphan alignments in the input. If this flag is passed, then only paired alignments will be considered toward quantification estimates. The default behavior is to consider orphan alignments if no valid paired mappings exist."/>
188 <param name="noErrorModel" type="boolean" truevalue="--noErrorModel" falsevalue="" checked="False" 180 <param argument="--noErrorModel" type="boolean" truevalue="--noErrorModel" falsevalue="" checked="False"
189 label="No Error Model" 181 label="No Error Model"
190 help="Turn off the alignment error model, which takes into account the the observed frequency of different types of mismatches / indels when computing the likelihood of a given alignment. Turning this off can speed up alignment-based salmon, but can harm quantification accuracy."/> 182 help="Turn off the alignment error model, which takes into account the the observed frequency of different types of mismatches / indels when computing the likelihood of a given alignment. Turning this off can speed up alignment-based salmon, but can harm quantification accuracy."/>
191 <param name="numErrorBins" type="integer" optional="True" value="6" 183 <param argument="--numErrorBins" type="integer" optional="True" value="6"
192 label="Number of Error Bins" 184 label="Number of Error Bins"
193 help="The number of bins into which to divideeach read when learning and applying the error model. For example, a value of 10 would mean that effectively, a separate error model is learned and applied to each 10th of the read, whilea value of 3 would mean that a separate error model is applied to the read beginning (first third), middle (second third) and end (final third)."/> 185 help="The number of bins into which to divideeach read when learning and applying the error model. For example, a value of 10 would mean that effectively, a separate error model is learned and applied to each 10th of the read, whilea value of 3 would mean that a separate error model is applied to the read beginning (first third), middle (second third) and end (final third)."/>
194 <param name="sampleOut" type="boolean" truevalue="--sampleOut" falsevalue="" checked="False" 186 <param argument="--sampleOut" type="boolean" truevalue="--sampleOut" falsevalue="" checked="False"
195 label="Sample out" 187 label="Sample out"
196 help="Write a 'postSample.bam' file in the output directory that will sample the input alignments according to the estimated transcript abundances. If you're going to perform downstream analysis of the alignments with tools which don't, themselves, take fragment assignment ambiguity into account, you should use this output"/> 188 help="Write a 'postSample.bam' file in the output directory that will sample the input alignments according to the estimated transcript abundances. If you're going to perform downstream analysis of the alignments with tools which don't, themselves, take fragment assignment ambiguity into account, you should use this output"/>
197 <param name="sampleUnaligned" type="boolean" truevalue="--sampleUnaligned" falsevalue="" checked="False" 189 <param argument="--sampleUnaligned" type="boolean" truevalue="--sampleUnaligned" falsevalue="" checked="False"
198 label="Sample unaligned" 190 label="Sample unaligned"
199 help="In addition to sampling the aligned reads, also write the un-aligned reads to 'postSample.bam'."/> 191 help="In addition to sampling the aligned reads, also write the un-aligned reads to 'postSample.bam'."/>
200 <param name="gencode" type="boolean" truevalue="--gencode" falsevalue="" checked="False" 192 <param argument="--gencode" type="boolean" truevalue="--gencode" falsevalue="" checked="False"
201 label="Gencode" 193 label="Gencode"
202 help="This flag will expect the input transcript fasta to be in GENCODE format, and will split the transcript name at the first '|' character. These reduced names will be used in the output and when looking for these transcripts in a gene to transcript GTF."/> 194 help="This flag will expect the input transcript fasta to be in GENCODE format, and will split the transcript name at the first '|' character. These reduced names will be used in the output and when looking for these transcripts in a gene to transcript GTF."/>
203 </xml> 195 </xml>
204 <xml name="quantboth"> 196 <xml name="quantboth">
205 <param name="geneMap" type="data" format="tabular,gff,gtf" optional="True" 197 <param argument="--geneMap" type="data" format="tabular,gff,gtf" optional="True"
206 label="File containing a mapping of transcripts to genes" 198 label="File containing a mapping of transcripts to genes"
207 help="If this file is provided Salmon will output both quant.sf and quant.genes.sf files, where the latter contains aggregated gene-level abundance estimates. The transcript to gene mapping should be provided as either a GTF file, or a in a simple tab-delimited format where each line contains the name of a transcript and the gene to which it belongs separated by a tab."/> 199 help="If this file is provided Salmon will output both quant.sf and quant.genes.sf files, where the latter contains aggregated gene-level abundance estimates. The transcript to gene mapping should be provided as either a GTF file, or a in a simple tab-delimited format where each line contains the name of a transcript and the gene to which it belongs separated by a tab."/>
208 <param name="seqBias" type="boolean" truevalue="--seqBias" falsevalue="" checked="False" 200 <param argument="--seqBias" type="boolean" truevalue="--seqBias" falsevalue="" checked="False"
209 label="Perform sequence-specific bias correction"/> 201 label="Perform sequence-specific bias correction"/>
210 <param name="gcBias" type="boolean" truevalue="--gcBias" falsevalue="" checked="False" 202 <param argument="--gcBias" type="boolean" truevalue="--gcBias" falsevalue="" checked="False"
211 label="Perform fragment GC bias correction"/> 203 label="Perform fragment GC bias correction"/>
212 <param name="incompatPrior" type="float" optional="True" min="0.0" max="1" value="0" 204 <param argument="--incompatPrior" type="float" optional="True" min="0.0" max="1" value="0"
213 help="Sets the prior probability that an alignment that disagrees with the specified library type (orientation and strandedness) results from the true fragment origin. Setting this to 0 specifies that alignments that disagree with the library type should be 'impossible', while setting it to 1 says that alignments that disagree with the library type are no less likely than those that do"/> 205 help="Sets the prior probability that an alignment that disagrees with the specified library type (orientation and strandedness) results from the true fragment origin. Setting this to 0 specifies that alignments that disagree with the library type should be 'impossible', while setting it to 1 says that alignments that disagree with the library type are no less likely than those that do"/>
214 <param name="meta" type="boolean" truevalue="--meta" falsevalue="" checked="False" 206 <param argument="--meta" type="boolean" truevalue="--meta" falsevalue="" checked="False"
215 label="Meta" 207 label="Meta"
216 help="If you're using Salmon on a metagenomic dataset, consider setting this flag to disable parts of the abundance estimation model that make less sense for metagenomic data."/> 208 help="If you're using Salmon on a metagenomic dataset, consider setting this flag to disable parts of the abundance estimation model that make less sense for metagenomic data."/>
217 <!--Salmon quant advanced options: available to both kinds of quant--> 209 <!--Salmon quant advanced options: available to both kinds of quant-->
218 <section name="adv" title="Additional Options"> 210 <section name="adv" title="Additional Options">
219 <param name="skipQuant" type="boolean" truevalue="--skipQuant" falsevalue="" checked="False" 211 <param argument="--skipQuant" type="boolean" truevalue="--skipQuant" falsevalue="" checked="False"
220 label="skipQuant" help="Skip performing the actual transcript quantification (including any Gibbs sampling or bootstrapping)."/> 212 label="skipQuant" help="Skip performing the actual transcript quantification (including any Gibbs sampling or bootstrapping)."/>
221 <param name="dumpEq" type="boolean" truevalue="--dumpEq" falsevalue="" checked="False" 213 <param argument="--dumpEq" type="boolean" truevalue="--dumpEq" falsevalue="" checked="False"
222 label="Dump equivalence class counts" 214 label="Dump equivalence class counts"
223 help="Dump the equivalence class counts that were computed during quasi-mapping."/> 215 help="Dump the equivalence class counts that were computed during quasi-mapping."/>
224 <param name="dumpEqWeights" type="boolean" truevalue="--dumpEqWeights" falsevalue="" checked="False" 216 <param argument="--dumpEqWeights" type="boolean" truevalue="--dumpEqWeights" falsevalue="" checked="False"
225 label="Dump equivalence class counts including rich weights" 217 label="Dump equivalence class counts including rich weights"
226 help="Includes 'rich' equivlance class weights in the output when equivalence class information is being dumped to file."/> 218 help="Includes 'rich' equivlance class weights in the output when equivalence class information is being dumped to file."/>
227 <param name="minAssignedFrags" type="integer" optional="True" label="Minimum assigned fragments" 219 <param argument="--minAssignedFrags" type="integer" optional="True" label="Minimum assigned fragments"
228 help="The minimum number of fragments that must be assigned to the transcriptome for quantification to proceed."/> 220 help="The minimum number of fragments that must be assigned to the transcriptome for quantification to proceed."/>
229 <param name="biasSpeedSamp" type="integer" value="5" optional="True" 221 <param argument="--biasSpeedSamp" type="integer" value="5" optional="True"
230 label="The value at which the fragment length PMF is down-sampled when evaluating GC fragment bias." help="Larger values speed up effective length correction, but may decrease the fidelity of bias modeling results."/> 222 label="The value at which the fragment length PMF is down-sampled when evaluating GC fragment bias." help="Larger values speed up effective length correction, but may decrease the fidelity of bias modeling results."/>
231 <param name="fldMax" type="integer" value="1000" optional="True" 223 <param argument="--fldMax" type="integer" value="1000" optional="True"
232 label="The maximum fragment length to consider when building the empirical distribution."/> 224 label="The maximum fragment length to consider when building the empirical distribution."/>
233 <param name="fldMean" type="integer" value="250" optional="True" 225 <param argument="--fldMean" type="integer" value="250" optional="True"
234 label="The mean used in the fragment length distribution prior" 226 label="The mean used in the fragment length distribution prior"
235 help="If single end reads are being used for quantification, or there are an insufficient number of uniquely mapping reads when performing paired-end quantification to estimate the empirical fragment length distribution, then use this value to calculate effective lengths."/> 227 help="If single end reads are being used for quantification, or there are an insufficient number of uniquely mapping reads when performing paired-end quantification to estimate the empirical fragment length distribution, then use this value to calculate effective lengths."/>
236 <param name="fldSD" type="integer" value="25" optional="True" 228 <param argument="--fldSD" type="integer" value="25" optional="True"
237 label="Standard deviation" 229 label="Standard deviation"
238 help="The standard deviation used in the fragment length distribution prior."/> 230 help="The standard deviation used in the fragment length distribution prior."/>
239 <param name="forgettingFactor" type="float" value="0.65000000000000002" optional="True" 231 <param argument="--forgettingFactor" type="float" value="0.65000000000000002" optional="True"
240 label="The forgetting factor used in the online learning schedule." 232 label="The forgetting factor used in the online learning schedule."
241 help=" A smaller value results in quicker learning, but higher variance and may be unstable. A larger value results in slower learning but may be more stable. Value should be in the interval (0.5, 1.0]." /> 233 help=" A smaller value results in quicker learning, but higher variance and may be unstable. A larger value results in slower learning but may be more stable. Value should be in the interval (0.5, 1.0]." />
242 <param name="initUniform" type="boolean" truevalue="--initUniform" falsevalue="" checked="False" 234 <param argument="--initUniform" type="boolean" truevalue="--initUniform" falsevalue="" checked="False"
243 label="Initialization with uniform parameters" 235 label="Initialization with uniform parameters"
244 help="initialize the offline inference with uniform parameters, rather than seeding with online parameters." /> 236 help="initialize the offline inference with uniform parameters, rather than seeding with online parameters." />
245 <param name="maxReadOcc" type="integer" value="100" optional="True" 237 <param argument="--maxReadOcc" type="integer" value="100" optional="True"
246 label="Maximal read mapping occurence" 238 label="Maximal read mapping occurence"
247 help="Reads mapping to more than this many places won't be considered."/> 239 help="Reads mapping to more than this many places won't be considered."/>
248 <param name="noLengthCorrection" type="boolean" truevalue="--noLengthCorrection" falsevalue="" 240 <param argument="--noLengthCorrection" type="boolean" truevalue="--noLengthCorrection" falsevalue=""
249 label="No length correction" 241 label="No length correction"
250 help="[experimental] : Entirely disables length correction when estimating the abundance of transcripts. This option can be used with protocols where one expects that fragments derive from their underlying targets without regard to that target's length (e.g. QuantSeq)"/> 242 help="[experimental] : Entirely disables length correction when estimating the abundance of transcripts. This option can be used with protocols where one expects that fragments derive from their underlying targets without regard to that target's length (e.g. QuantSeq)"/>
251 <param name="noEffectiveLengthCorrection" type="boolean" truevalue="--noEffectiveLengthCorrection" falsevalue="" checked="False" 243 <param argument="--noEffectiveLengthCorrection" type="boolean" truevalue="--noEffectiveLengthCorrection" falsevalue="" checked="False"
252 label="Disable effective length correction" 244 label="Disable effective length correction"
253 help="Disables effective length correction when computing the probability that a fragment was generated from a transcript. If this flag is passed in, the fragment length distribution is not taken into account when computing this probability."/> 245 help="Disables effective length correction when computing the probability that a fragment was generated from a transcript. If this flag is passed in, the fragment length distribution is not taken into account when computing this probability."/>
254 <param name="noFragLengthDist" type="boolean" truevalue="--noFragLengthDist" falsevalue="" checked="False" 246 <param argument="--noFragLengthDist" type="boolean" truevalue="--noFragLengthDist" falsevalue="" checked="False"
255 label="Ignore fragment length distribution" 247 label="Ignore fragment length distribution"
256 help="[experimental] : Don't consider concordance with the learned fragment length distribution when trying to determine the probability that a fragment has originated from a specified location. Normally, Fragments with unlikely lengths will be assigned a smaller relative probability than those with more likely lengths. When this flag is passed in, the observed fragment length has no effect on that fragment's a priori probability." /> 248 help="[experimental] : Don't consider concordance with the learned fragment length distribution when trying to determine the probability that a fragment has originated from a specified location. Normally, Fragments with unlikely lengths will be assigned a smaller relative probability than those with more likely lengths. When this flag is passed in, the observed fragment length has no effect on that fragment's a priori probability." />
257 <param name="noBiasLengthThreshold" type="boolean" truevalue="--noBiasLengthThreshold" falsevalue="" checked="False" 249 <param argument="--noBiasLengthThreshold" type="boolean" truevalue="--noBiasLengthThreshold" falsevalue="" checked="False"
258 label="[experimental] : If this option is enabled, then no (lower) threshold will be set on how short bias correction can make effecctive lengths." 250 label="[experimental] : If this option is enabled, then no (lower) threshold will be set on how short bias correction can make effecctive lengths."
259 help="This can increase the precision of bias correction, but harm robustness. The default correction applies a threshold." /> 251 help="This can increase the precision of bias correction, but harm robustness. The default correction applies a threshold." />
260 <param name="numBiasSamples" type="integer" value="2000000" optional="True" 252 <param argument="--numBiasSamples" type="integer" value="2000000" optional="True"
261 label="Number of fragment mappings to use when learning the sequence-specific bias model."/> 253 label="Number of fragment mappings to use when learning the sequence-specific bias model."/>
262 <param name="numAuxModelSamples" type="integer" value="5000000" optional="True" 254 <param argument="--numAuxModelSamples" type="integer" value="5000000" optional="True"
263 label="The first numAuxModelSamples are used to train the auxiliary model parameters." 255 label="The first numAuxModelSamples are used to train the auxiliary model parameters."
264 help="(e.g. fragment length distribution, bias, etc.). After ther first numAuxModelSamples observations the auxiliary model parameters will be assumed to have converged and will be fixed." /> 256 help="(e.g. fragment length distribution, bias, etc.). After ther first numAuxModelSamples observations the auxiliary model parameters will be assumed to have converged and will be fixed." />
265 <param name="numPreAuxModelSamples" type="integer" value="5000" optional="True" 257 <param argument="--numPreAuxModelSamples" type="integer" value="5000" optional="True"
266 label="The first numPreAuxModelSamples will have their assignment likelihoods and contributions to the transcript abundances computed without applying any auxiliary models." 258 label="The first numPreAuxModelSamples will have their assignment likelihoods and contributions to the transcript abundances computed without applying any auxiliary models."
267 help=" The purpose of ignoring the auxiliary models for the first numPreAuxModelSamples observations is to avoid applying these models before thier parameters have been learned sufficiently well." /> 259 help=" The purpose of ignoring the auxiliary models for the first numPreAuxModelSamples observations is to avoid applying these models before thier parameters have been learned sufficiently well." />
268 <param name="useEM" type="boolean" truevalue="--useEM" falsevalue="" checked="False" 260 <param argument="--useEM" type="boolean" truevalue="--useEM" falsevalue="" checked="False"
269 label="Use the traditional EM algorithm for optimization in the batch passes." 261 label="Use the traditional EM algorithm for optimization in the batch passes."
270 help=""/> 262 help=""/>
271 <param name="rangeFactorizationBins" type="integer" value="0" label="Range of factorization bins" 263 <param argument="--rangeFactorizationBins" type="integer" value="0" label="Range of factorization bins"
272 help="Factorizes the likelihood used in quantification by adopting a new notion of equivalence classes based on the conditional probabilities with which fragments are generated from different transcripts. This is a more fine-grained factorization than the normal rich equivalence classes. The default value (0) corresponds to the standard rich equivalence classes, and larger values imply a more fine-grained factorization. If range factorization is enabled, a common value to select for this parameter is 4."/> 264 help="Factorizes the likelihood used in quantification by adopting a new notion of equivalence classes based on the conditional probabilities with which fragments are generated from different transcripts. This is a more fine-grained factorization than the normal rich equivalence classes. The default value (0) corresponds to the standard rich equivalence classes, and larger values imply a more fine-grained factorization. If range factorization is enabled, a common value to select for this parameter is 4."/>
273 <param name="numGibbsSamples" type="integer" value="0" optional="True" 265 <param argument="--numGibbsSamples" type="integer" value="0" optional="True"
274 label="Number of Gibbs sampling rounds to perform." 266 label="Number of Gibbs sampling rounds to perform."
275 help="" /> 267 help="" />
276 <param name="noGammaDraw" type="boolean" truevalue="--noGammaDraw" falsevalue="" checked="False" 268 <param argument="--noGammaDraw" type="boolean" truevalue="--noGammaDraw" falsevalue="" checked="False"
277 label="No gamma draw" 269 label="No gamma draw"
278 help="This switch will disable drawing transcript fractions from a Gamma distribution during Gibbs sampling. In this case the sampler does not account for shot-noise, but only assignment ambiguity"/> 270 help="This switch will disable drawing transcript fractions from a Gamma distribution during Gibbs sampling. In this case the sampler does not account for shot-noise, but only assignment ambiguity"/>
279 <param name="numBootstraps" type="integer" value="0" optional="True" 271 <param argument="--numBootstraps" type="integer" value="0" optional="True"
280 label="Number of bootstrap samples to generate. Note: This is mutually exclusive with Gibbs sampling." 272 label="Number of bootstrap samples to generate. Note: This is mutually exclusive with Gibbs sampling."
281 help="" /> 273 help="" />
282 <param name="bootstrapReproject" type="boolean" truevalue="--bootstrapReproject" falsevalue="" checked="False" 274 <param argument="--bootstrapReproject" type="boolean" truevalue="--bootstrapReproject" falsevalue="" checked="False"
283 label="Bootstrap reproject" 275 label="Bootstrap reproject"
284 help="This switch will learn the parameter distribution from the bootstrapped counts for each sample, but will reproject those parameters onto the original equivalence class counts."/> 276 help="This switch will learn the parameter distribution from the bootstrapped counts for each sample, but will reproject those parameters onto the original equivalence class counts."/>
285 <param name="thinningFactor" type="integer" value="16" optional="true" label="Thinning factor" 277 <param argument="--thinningFactor" type="integer" value="16" optional="true" label="Thinning factor"
286 help="Number of steps to discard for every sample kept from the Gibbs chain. The larger this number, the less chance that subsequent samples are auto-correlated, but the slower sampling becomes."/> 278 help="Number of steps to discard for every sample kept from the Gibbs chain. The larger this number, the less chance that subsequent samples are auto-correlated, but the slower sampling becomes."/>
287 <param name="perTranscriptPrior" type="boolean" truevalue="--perTranscriptPrior" falsevalue="" checked="False" 279 <param argument="--perTranscriptPrior" type="boolean" truevalue="--perTranscriptPrior" falsevalue="" checked="False"
288 label="The prior will be interpreted as a transcript-level prior." 280 label="The prior will be interpreted as a transcript-level prior."
289 help="either the default or the argument provided via --vbPrior" /> 281 help="either the default or the argument provided via --vbPrior" />
290 <param name="sigDigits" type="integer" value="3" 282 <param argument="--sigDigits" type="integer" value="3"
291 label="Significant Digits" 283 label="Significant Digits"
292 help="The number of significant digits to write when outputting the EffectiveLength and NumReads columns."/> 284 help="The number of significant digits to write when outputting the EffectiveLength and NumReads columns."/>
293 <param name="vbPrior" type="float" value="1.0000000000000001e-05" optional="True" 285 <param argument="--vbPrior" type="float" value="1.0000000000000001e-05" optional="True"
294 label="The prior that will be used in the VBEM algorithm." 286 label="The prior that will be used in the VBEM algorithm."
295 help="This is interpreted as a per-nucleotide prior, unless the --perTranscriptPrior flag is also given, in which case this is used as a transcript-level prior." /> 287 help="This is interpreted as a per-nucleotide prior, unless the --perTranscriptPrior flag is also given, in which case this is used as a transcript-level prior." />
296 <param name="writeOrphanLinks" type="boolean" truevalue="--writeOrphanLinks" falsevalue="" checked="False" label="Write orphan links" 288 <param argument="--writeOrphanLinks" type="boolean" truevalue="--writeOrphanLinks" falsevalue="" checked="False" label="Write orphan links"
297 help="Write the transcripts that are linked by orphaned reads."/> 289 help="Write the transcripts that are linked by orphaned reads."/>
298 <param name="writeUnmappedNames" type="boolean" truevalue="--writeUnmappedNames" falsevalue="" checked="False" 290 <param argument="--writeUnmappedNames" type="boolean" truevalue="--writeUnmappedNames" falsevalue="" checked="False"
299 label="Write the names of un-mapped reads to the file unmapped_names.txt." 291 label="Write the names of un-mapped reads to the file unmapped_names.txt."
300 help=""/> 292 help=""/>
301 </section> 293 </section>
302 </xml>
303 <xml name="quantmerge">
304 <repeat name="quantfiles" title="Quant file and names">
305 <param name="quants" type="data" format="tsv,tabular"
306 label="Salmon quant tabular output files"/>
307 <param name="names" type="text" label="One-word sample names" optional="True"/>
308 </repeat>
309 <param name="column" type="select" label="Columns"
310 help="Name of columns that will be merged in the output file">
311 <option value="len" selected="True">Length</option>
312 <option value="elen">Effective Length</option>
313 <option value="tpm">Transcripts per Million</option>
314 <option value="numreads">NumReads</option>
315 </param>
316 <param name="genes" type="boolean" truevalue="--genes" falsevalue="" checked="False"
317 label="Genes" help="Use gene quantifications instead of transcript"/>
318 <param name="missing" type="integer" label="Missing" optional="True" help="The value of missing values"/>
319 </xml> 294 </xml>
320 <xml name="citations"> 295 <xml name="citations">
321 <citations> 296 <citations>
322 <citation type="doi">10.1186/s13059-019-1670-y</citation> 297 <citation type="doi">10.1186/s13059-019-1670-y</citation>
323 <citation type="doi">10.1038/nmeth.4197</citation> 298 <citation type="doi">10.1038/nmeth.4197</citation>
325 </xml> 300 </xml>
326 <token name="@bam_sort@"><![CDATA[samtools sort -@ \${GALAXY_SLOTS} --output-fmt=BAM -o ./output/bamout.bam]]></token> 301 <token name="@bam_sort@"><![CDATA[samtools sort -@ \${GALAXY_SLOTS} --output-fmt=BAM -o ./output/bamout.bam]]></token>
327 <token name="@indexing@"><![CDATA[ 302 <token name="@indexing@"><![CDATA[
328 mkdir ./index && 303 mkdir ./index &&
329 mkdir ./output && 304 mkdir ./output &&
330 #if $quant_type.refTranscriptSource.TranscriptSource != "indexed": 305 #if $TRANSCRIPTSOURCE_CONDITIONAL.TranscriptSource != "indexed":
331 #if $quant_type.refTranscriptSource.s_index.genome 306 #if $TRANSCRIPTSOURCE_CONDITIONAL.s_index.genome
332 cat '${quant_type.refTranscriptSource.s_index.genome}' | grep "^>" | cut -d " " -f 1 > 'decoys.txt' && 307 cat '${TRANSCRIPTSOURCE_CONDITIONAL.s_index.genome}' | grep "^>" | cut -d " " -f 1 > 'decoys.txt' &&
333 sed -i.bak -e 's/>//g' 'decoys.txt' && 308 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' && 309 cat '${TRANSCRIPTSOURCE_CONDITIONAL.s_index.fasta}' '${TRANSCRIPTSOURCE_CONDITIONAL.s_index.genome}' > 'input_index.fasta' &&
335 #else 310 #else
336 ln -s '${quant_type.refTranscriptSource.s_index.fasta}' 'input_index.fasta' && 311 ln -s '${TRANSCRIPTSOURCE_CONDITIONAL.s_index.fasta}' 'input_index.fasta' &&
337 #end if 312 #end if
338 salmon index -i ./index 313 salmon --no-version-check index -i ./index
339 --kmerLen '${quant_type.refTranscriptSource.s_index.kmer}' 314 --kmerLen '${TRANSCRIPTSOURCE_CONDITIONAL.s_index.kmer}'
340 --gencode 315 --gencode
341 --threads "\${GALAXY_SLOTS:-4}" 316 --threads "\$SLOTS"
342 --transcripts 'input_index.fasta' 317 --transcripts 'input_index.fasta'
343 #if $quant_type.refTranscriptSource.s_index.genome 318 #if $TRANSCRIPTSOURCE_CONDITIONAL.s_index.genome
344 --decoy 'decoys.txt' 319 --decoy 'decoys.txt'
345 #end if 320 #end if
346 && 321 &&
347 #set $index_path = './index' 322 #set $index_path = './index'
348 #else 323 #else
349 #set $index_path = $quant_type.refTranscriptSource.index.fields.path 324 #set $index_path = $TRANSCRIPTSOURCE_CONDITIONAL.index.fields.path
350 #end if 325 #end if
351 ]]> 326 ]]>
352 </token> 327 </token>
353 <token name="@salreads@"><![CDATA[ 328 <token name="@salreads@"><![CDATA[
354 #set compressed = 'no' 329 #set compressed = 'no'
355 #if $quant_type.input.single_or_paired.single_or_paired_opts == 'single': 330 #if $quant_type.input.single_or_paired.single_or_paired_opts == 'single':
356 #if $quant_type.input.single_or_paired.input_singles.ext == 'fasta': 331 #if $quant_type.input.single_or_paired.input_singles.ext == 'fasta':
357 #set $ext = 'fasta' 332 #set $ext = 'fasta'
358 #else: 333 #else:
359 #if $quant_type.input.single_or_paired.input_singles.is_of_type("fastq.gz", "fastqsanger.gz"): 334 #if $quant_type.input.single_or_paired.input_singles.is_of_type("fastqsanger.gz"):
360 #set compressed = 'GZ' 335 #set compressed = 'GZ'
361 #else if $quant_type.input.single_or_paired.input_singles.is_of_type("fastq.bz2", "fastqsanger.bz2"): 336 #else if $quant_type.input.single_or_paired.input_singles.is_of_type("fastqsanger.bz2"):
362 #set compressed = 'BZ2' 337 #set compressed = 'BZ2'
363 #end if 338 #end if
364 #set $ext = 'fastq' 339 #set $ext = 'fastq'
365 #end if 340 #end if
366 ln -s $quant_type.input.single_or_paired.input_singles ./single.$ext && 341 ln -s $quant_type.input.single_or_paired.input_singles ./single.$ext &&
367 #else if $quant_type.input.single_or_paired.single_or_paired_opts == 'paired':
368 #if $quant_type.input.single_or_paired.input_mate1.ext == 'fasta':
369 #set $ext = 'fasta'
370 #else:
371 #if $quant_type.input.single_or_paired.input_mate1.is_of_type("fastq.gz", "fastqsanger.gz"):
372 #set compressed = 'GZ'
373 #else if $quant_type.input.single_or_paired.input_mate1.is_of_type("fastq.bz2", "fastqsanger.bz2"):
374 #set compressed = 'BZ2'
375 #end if
376 #set $ext = 'fastq'
377 #end if
378 ln -s $quant_type.input.single_or_paired.input_mate1 ./mate1.$ext &&
379 ln -s $quant_type.input.single_or_paired.input_mate2 ./mate2.$ext &&
380 #else if $quant_type.input.single_or_paired.single_or_paired_opts == 'paired_collection': 342 #else if $quant_type.input.single_or_paired.single_or_paired_opts == 'paired_collection':
381 #if $quant_type.input.single_or_paired.input_1.forward.ext == 'fasta': 343 #if $quant_type.input.single_or_paired.input_1.forward.ext == 'fasta':
382 #set $ext = 'fasta' 344 #set $ext = 'fasta'
383 #else: 345 #else:
384 #if $quant_type.input.single_or_paired.input_1.forward.is_of_type("fastq.gz", "fastqsanger.gz"): 346 #if $quant_type.input.single_or_paired.input_1.forward.is_of_type("fastqsanger.gz"):
385 #set compressed = 'GZ' 347 #set compressed = 'GZ'
386 #else if $quant_type.input.single_or_paired.input_1.forward.is_of_type("fastq.bz2", "fastqsanger.bz2"): 348 #else if $quant_type.input.single_or_paired.input_1.forward.is_of_type("fastqsanger.bz2"):
387 #set compressed = 'BZ2' 349 #set compressed = 'BZ2'
388 #end if 350 #end if
389 #set $ext = 'fastq' 351 #set $ext = 'fastq'
390 #end if 352 #end if
391 ln -s '${quant_type.input.single_or_paired.input_1.forward}' ./mate1.$ext && 353 ln -s '${quant_type.input.single_or_paired.input_1.forward}' ./mate1.$ext &&
392 ln -s '${quant_type.input.single_or_paired.input_1.reverse}' ./mate2.$ext && 354 ln -s '${quant_type.input.single_or_paired.input_1.reverse}' ./mate2.$ext &&
393 #else if '$quant_type.input.single_or_paired.single_or_paired_opts' == 'paired_interleaved':
394 #if $quant_type.input.single_or_paired.input_1.ext == 'fasta':
395 #set $ext = 'fasta'
396 #else:
397 #if $quant_type.input.single_or_paired.input_1.is_of_type("fastq.gz", "fastqsanger.gz"):
398 #set compressed = 'GZ'
399 #else if $quant_type.input.single_or_paired.input_1.is_of_type("fastq.bz2", "fastqsanger.bz2"):
400 #set compressed = 'BZ2'
401 #end if
402 #set $ext = 'fastq'
403 #end if
404 ln -s '$quant_type.input.single_or_paired.input_1' ./mate1.$ext &&
405 #end if 355 #end if
406 #if $geneMap: 356 #if $geneMap:
407 ln -s '$geneMap' ./geneMap.${geneMap.ext} && 357 ln -s '$geneMap' ./geneMap.${geneMap.ext} &&
408 #end if 358 #end if
409 359
410 salmon quant 360 salmon --no-version-check quant
411 --index '$index_path' 361 --index '$index_path'
412 #if $quant_type.input.single_or_paired.single_or_paired_opts == 'single': 362 #if $quant_type.input.single_or_paired.single_or_paired_opts == 'single':
413 --libType ${quant_type.input.single_or_paired.libtype.strandedness} 363 --libType ${quant_type.input.single_or_paired.libtype.strandedness}
414 #if $compressed == 'GZ': 364 #if $compressed == 'GZ':
415 --unmatedReads <(zcat < ./single.$ext) 365 --unmatedReads <(zcat < ./single.$ext)
423 #if $quant_type.input.single_or_paired.libtype.strandedness == 'A' 373 #if $quant_type.input.single_or_paired.libtype.strandedness == 'A'
424 A 374 A
425 #else 375 #else
426 ${quant_type.input.single_or_paired.libtype.orientation}${quant_type.input.single_or_paired.libtype.strandedness} 376 ${quant_type.input.single_or_paired.libtype.orientation}${quant_type.input.single_or_paired.libtype.strandedness}
427 #end if 377 #end if
428 #if $quant_type.input.single_or_paired.single_or_paired_opts == 'paired_interleaved': 378 #if $compressed == 'GZ':
429 #if $compressed == 'BZ2': 379 --mates1 <(zcat < ./mate1.$ext)
430 --mates1 <(bzcat < ./mate1.$ext | seqtk seq -1) 380 --mates2 <(zcat < ./mate2.$ext)
431 --mates2 <(bzcat < ./mate1.$ext | seqtk seq -2) 381 #else if $compressed == 'BZ2':
432 #else: 382 --mates1 <(bzcat < ./mate1.$ext)
433 --mates1 <(seqtk seq -1 ./mate1.$ext) 383 --mates2 <(bzcat < ./mate2.$ext)
434 --mates2 <(seqtk seq -2 ./mate1.$ext)
435 #end if
436 #else: 384 #else:
437 #if $compressed == 'GZ': 385 --mates1 ./mate1.$ext
438 --mates1 <(zcat < ./mate1.$ext) 386 --mates2 ./mate2.$ext
439 --mates2 <(zcat < ./mate2.$ext) 387 #end if
440 #else if $compressed == 'BZ2': 388 #end if
441 --mates1 <(bzcat < ./mate1.$ext) 389 --threads "\$SLOTS"
442 --mates2 <(bzcat < ./mate2.$ext)
443 #else:
444 --mates1 ./mate1.$ext
445 --mates2 ./mate2.$ext
446 #end if
447 #end if
448 #end if
449 --threads "\${GALAXY_SLOTS:-4}"
450 ${quant_type.discardOrphansQuasi} 390 ${quant_type.discardOrphansQuasi}
451 ${quant_type.validmap.validateMappings} 391 ${quant_type.validmap.validateMappings}
452 #if $quant_type.validmap.validateMappings: 392 #if $quant_type.validmap.validateMappings:
453 #if $quant_type.validmap.minScoreFraction: 393 #if $quant_type.validmap.minScoreFraction:
454 --minScoreFraction '${quant_type.validmap.minScoreFraction}' 394 --minScoreFraction '${quant_type.validmap.minScoreFraction}'
489 </token> 429 </token>
490 <token name="@salalign@"><![CDATA[ 430 <token name="@salalign@"><![CDATA[
491 #if $geneMap: 431 #if $geneMap:
492 ln -s "$geneMap" ./geneMap.${geneMap.ext} && 432 ln -s "$geneMap" ./geneMap.${geneMap.ext} &&
493 #end if 433 #end if
494 salmon quant 434 salmon --no-version-check quant
495 -t '${quant_type.transcript}' 435 --targets '${quant_type.transcript}'
496 -l '${quant_type.libtype.strandedness}' 436 --libType '${quant_type.libtype.strandedness}'
497 -a '${quant_type.afile}' 437 --alignments '${quant_type.afile}'
498 $quant_type.ont 438 $quant_type.ont
499 --threads "\${GALAXY_SLOTS:-4}" 439 --threads "\$SLOTS"
500 ${quant_type.discardOrphans} 440 ${quant_type.discardOrphans}
501 ${quant_type.noErrorModel} 441 ${quant_type.noErrorModel}
502 #if $quant_type.numErrorBins: 442 #if $quant_type.numErrorBins:
503 --numErrorBins '${quant_type.numErrorBins}' 443 --numErrorBins '${quant_type.numErrorBins}'
504 #end if 444 #end if
582 ${adv.writeOrphanLinks} 522 ${adv.writeOrphanLinks}
583 ${adv.writeUnmappedNames} 523 ${adv.writeUnmappedNames}
584 -o ./output 524 -o ./output
585 ]]> 525 ]]>
586 </token> 526 </token>
587 <token name="@qmerge@"><![CDATA[ 527
588 #import re
589
590 #for $counter, $input_data in enumerate($quantfiles):
591 rank_of_series=$counter
592 mkdir ${counter}.quantmerge &&
593 ln -s $input_data.quants ${counter}.quantmerge/quant.sf &&
594 #end for
595 salmon quantmerge
596 --quants *.quantmerge
597 --names
598 #for $counter, $input_data in enumerate($quantfiles):
599 #if $input_data.names and re.sub(' ', '', '$input_data.names') != '':
600 '${input_data.names}'
601 #else:
602 #set $identifier=re.sub('[^\w\-\s]', '_', str($input_data.quants.element_identifier))
603 "$identifier"
604 #end if
605 #end for
606 --column '${column}'
607 ${genes}
608 #if $missing:
609 --missing '${missing}'
610 #end if
611 -o qmergeout.tab
612 ]]>
613 </token>
614 <token name="@salmonhelp@"><![CDATA[ 528 <token name="@salmonhelp@"><![CDATA[
615 Salmon is a lightweight method for quantifying transcript abundance from RNA–seq reads, combining a dual-phase parallel inference algorithm and feature-rich bias models with an ultra-fast read mapping procedure. 529 Salmon is a lightweight method for quantifying transcript abundance from RNA–seq reads, combining a dual-phase parallel inference algorithm and feature-rich bias models with an ultra-fast read mapping procedure.
616 530
617 The salmon package contains 4 tools: 531 The salmon package contains 4 tools:
618 532