Skip to content

Commit

Permalink
fix unused inputs
Browse files Browse the repository at this point in the history
kmerfilter: barcode_encoding in inputs but unused
populations: fastphase present in inputs but unused
shortreads: add_log used in test but absent from inputs

xref galaxyproject#4095
  • Loading branch information
bernt-matthias committed Nov 22, 2021
1 parent 4e4b319 commit cb274f3
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 26 deletions.
8 changes: 4 additions & 4 deletions tools/stacks2/macros.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</xml>

<token name="@STACKS_VERSION@">2.55</token>
<token name="@WRAPPER_VERSION@">1</token>
<token name="@WRAPPER_VERSION@">2</token>
<token name="@PROFILE@">20.05</token>

<xml name="citation">
Expand Down Expand Up @@ -222,17 +222,17 @@ Stacks was developed by Julian Catchen with contributions from Angel Amores, Pau
- se_option: wording for "single end" option (for tsv2bam this is the
reverse reads for the others its the forward reads)
- help: help text -->
<xml name="fastq_input" token_fastq_optional="false" token_se_option="single end or forward reads" token_help="">
<xml name="fastq_input" token_fastq_optional="false" token_se_option="single end or forward reads" token_help="" token_multiple="false" token_listtype="paired">
<conditional name="input_type">
<param name="input_type_select" type="select" label="Short read data from individuals" help="@HELP@">
<option value="single" selected="true">@SE_OPTION@</option>
<option value="paired">(paired) dataset list</option>
</param>
<when value="single">
<param name="fqinputs" argument="-f" format="fastqsanger,fastqsanger.gz,fasta,fasta.gz" type="data" label="Reads" multiple="true" optional="@FASTQ_OPTIONAL@"/>
<param name="fqinputs" argument="-f" format="fastqsanger,fastqsanger.gz,fasta,fasta.gz" type="data" label="Reads" multiple="@MULTIPLE@" optional="@FASTQ_OPTIONAL@"/>
</when>
<when value="paired">
<param name="fqinputs" argument="-f" type="data_collection" collection_type="list:paired" format="fastqsanger,fastqsanger.gz,fasta,fasta.gz" label="List for forward reads or read pairs" optional="@FASTQ_OPTIONAL@"/>
<param name="fqinputs" argument="-f" type="data_collection" collection_type="@LISTTYPE@" format="fastqsanger,fastqsanger.gz,fasta,fasta.gz" label="List for forward reads or read pairs" optional="@FASTQ_OPTIONAL@"/>
</when>
</conditional>
</xml>
Expand Down
2 changes: 1 addition & 1 deletion tools/stacks2/stacks_denovomap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $pe_options.rm_pcr_duplicates
]]></command>

<inputs>
<expand macro="fastq_input"/>
<expand macro="fastq_input" multiple="true" listtype="list:paired"/>
<param argument="--popmap" type="data" optional="true" format="tabular,txt" label="Population map"/>
<section name="assembly_options" title="Assembly options" expanded="true">
<param name="M" argument="-M" type="integer" value="2" label="Number of mismatches allowed between loci when processing a single individual" help="used in ustacks"/>
Expand Down
2 changes: 1 addition & 1 deletion tools/stacks2/stacks_kmerfilter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ $options_kmer_char.k_dist
#end if
]]></command>
<inputs>
<expand macro="fastq_input_bc"/>
<expand macro="fastq_input"/>
<param name="capture" type="boolean" checked="false" truevalue="-D" falsevalue="" argument="-D" label="Capture discarded reads to a file"/>
<section name="options_filtering" title="Filtering options" expanded="False">
<param argument="--rare" type="boolean" checked="false" truevalue="--rare" falsevalue="" label="Turn on filtering based on rare k-mers"/>
Expand Down
32 changes: 14 additions & 18 deletions tools/stacks2/stacks_populations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ $populations_output.vcf
$populations_output.genepop
$populations_output.structure
$populations_output.radpainter
##$populations_output.phase
##$populations_output.fastphase
$populations_output.plink
$populations_output.hzar
$populations_output.phylip
Expand Down Expand Up @@ -235,8 +233,6 @@ $advanced_options.log_fst_comp
<param argument="--genepop" truevalue="--genepop" falsevalue="" type="boolean" checked="false" label="Output results in GenePop Format"/>
<param argument="--structure" truevalue="--structure" falsevalue="" type="boolean" checked="false" label="Output results in Structure Format"/>
<param argument="--radpainter" truevalue="--radpainter" falsevalue="" type="boolean" checked="false" label="Output results in fineRADstructure/RADpainter format"/>
<!--<param argument="\-\-phase" truevalue="\-\-phase" falsevalue="" type="boolean" checked="false" label="Output genotypes in PHASE format"/>-->
<param argument="--fastphase" truevalue="--fastphase" falsevalue="" type="boolean" checked="false" label="Output genotypes in fastPHASE format"/>
<param argument="--plink" truevalue="--plink" falsevalue="" type="boolean" checked="false" label="Output genotypes in PLINK format"/>
<param argument="--hzar" truevalue="--hzar" falsevalue="" type="boolean" checked="false" label="Output genotypes in Hybrid Zone Analysis using R (HZAR) format."/>
<param argument="--phylip" truevalue="--phylip" falsevalue="" type="boolean" checked="false" label="Output nucleotides that are fixed-within, and variant among populations in Phylip format for phylogenetic tree construction"/>
Expand Down Expand Up @@ -360,21 +356,21 @@ $advanced_options.log_fst_comp
</param>
<param name="popmap" ftype="tabular" value="denovo_map/popmap_cstacks.tsv"/>
<param name="add_log" value="yes"/>
<param name="advanced_options|log_fst_comp" value="yes"/>
<param name="advanced_options|log_fst_comp" value="true"/>
<param name="fstats_conditional|fstats" value="yes"/>
<param name="populations_output|fasta_loci" value="yes"/>
<param name="populations_output|fasta_samples" value="yes"/>
<param name="populations_output|fasta_samples_raw" value="yes"/>
<param name="populations_output|phylip" value="yes"/>
<param name="populations_output|phylip_var" value="yes"/>
<param name="populations_output|genepop" value="yes"/>
<param name="populations_output|vcf" value="yes"/>
<param name="populations_output|hzar" value="yes"/>
<param name="populations_output|plink" value="yes"/>
<param name="populations_output|structure" value="yes"/>
<param name="populations_output|radpainter" value="yes"/>
<param name="populations_output|treemix" value="yes"/>
<param name="populations_output|gtf" value="yes"/>
<param name="populations_output|fasta_loci" value="true"/>
<param name="populations_output|fasta_samples" value="true"/>
<param name="populations_output|fasta_samples_raw" value="true"/>
<param name="populations_output|phylip" value="true"/>
<param name="populations_output|phylip_var" value="true"/>
<param name="populations_output|genepop" value="true"/>
<param name="populations_output|vcf" value="true"/>
<param name="populations_output|hzar" value="true"/>
<param name="populations_output|plink" value="true"/>
<param name="populations_output|structure" value="true"/>
<param name="populations_output|radpainter" value="true"/>
<param name="populations_output|treemix" value="true"/>
<param name="populations_output|gtf" value="true"/>
<assert_command>
<has_text text="--log-fst-comp"/>
</assert_command>
Expand Down
1 change: 1 addition & 0 deletions tools/stacks2/stacks_shortreads.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ $options_advanced.no_overhang
</section>
<expand macro="process_filter"/>
<expand macro="process_output_types"/>
<expand macro="in_log"/>
</inputs>

<outputs>
Expand Down
2 changes: 1 addition & 1 deletion tools/stacks2/stacks_tsv2bam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ tsv2bam
<expand macro="input_cat_macro"/>
<expand macro="input_matches_macro"/>
<!-- TODO add BAM? -->
<expand macro="fastq_input" fastq_optional="true" se_option="reverse reads" help="Paired end data or reverse reads. If a paired list is provided only the reverse reads are used in tsv2bam. Leave selection empty if you analyse single end data."/>
<expand macro="fastq_input" fastq_optional="true" multiple="true" listtype="list:paired" se_option="reverse reads" help="Paired end data or reverse reads. If a paired list is provided only the reverse reads are used in tsv2bam. Leave selection empty if you analyse single end data."/>
<param name="popmap" type="data" format="tabular,txt" label="Population map" help="If set, matching will be done only for samples listed in this file" optional="true" argument="-M"/>
<expand macro="in_log"/>
</inputs>
Expand Down
2 changes: 1 addition & 1 deletion tools/stacks2/stacks_ustacks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ true
]]></command>

<inputs>
<expand macro="fastq_input" help="Single end data or forward reads. If a paired list is provided only the forward reads are used in ustacks"/>
<expand macro="fastq_input" multiple="true" listtype="list:paired" help="Single end data or forward reads. If a paired list is provided only the forward reads are used in ustacks"/>

<param argument="-m" type="integer" value="3" label="Minimum depth of coverage required to create a stack"/>
<param argument="-M" type="integer" value="2" label="Maximum distance (in nucleotides) allowed between stacks"/>
Expand Down

0 comments on commit cb274f3

Please sign in to comment.