Mercurial > repos > matnguyen > pathogist
diff galaxy/tools/config_builder/config_builder.xml @ 2:baf1e89b42eb draft
Added config builder
author | matnguyen |
---|---|
date | Tue, 05 Mar 2019 02:36:40 -0500 |
parents | |
children | 56f1b7f06222 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/galaxy/tools/config_builder/config_builder.xml Tue Mar 05 02:36:40 2019 -0500 @@ -0,0 +1,243 @@ +<tool id="config_builder" name="PathOGiST - Config Builder" version="1.0.0"> + <description>: Creates and populates the config file to run PathOGiST</description> + <requirements> + <requirement type="package" version="0.2.3">pathogist</requirement> + </requirements> + + <command><![CDATA[ + PATHOGIST all config.yaml --new_config + + $__tool_directory__/config_builder + + #if snippy.snippy_checkbox + --snippy + --reference $snippy.reference + #if snippy.snippy_adv.snippy_adv_checkbox + --mapqual $snippy.mapqual + --basequal $snippy.basequal + --mincov $snippy.mincov + --minfrac $snippy.minfrac + #endif + $snippy.snp_fine + --snp_thresh $snippy.snp_threshold + #endif + + #if mentalist.mentalist_checkbox + --mentalist + #if mentalist.db_loc.db_selector == "local_file" + --local_file + --local_db $mentalist.mlst_database + #endif + #if mentalist.db_loc.db_selector == "build_db" + --build_db + --kmer $mentalist.k + --fasta_files $mentalist.fasta_files + --profile $mentalist.profile + #endif + #if mentalist.db_loc.db_selector == "download_pubmlst" + --download_pubmlst + --kmer $mentalist.k + --scheme $mentalist.scheme + #endif + #if mentalist.db_loc.db_selector == "download_cgmlst" + --download_cgmlst + --kmer $mentalist.k + --scheme $mentalist.scheme + #endif + #if mentalist.db_loc.db_selector == "download_enterobase" + --download_enterobase $mentalist.k + --entero_scheme $mentalist.scheme + --entero_type $mentalist.type + #endif + #if mentalist.mentalist_adv.mentalist_adv_checkbox + --mutation_threshold $mentalist.mutation_thresh + --kt $mentalist.kt + #endif + $mentalist.mlst_fine + --mlst_thresh $mentalist.mlst_threshold + #endif + + #if prince.prince_checkbox + --prince + $prince.cnv_fine + --cnv_thresh $prince.cnv_threshold + #endif + + #if kwip.kwip_checkbox + --kwip + #if kwip.kwip_adv.kwip_adv_checkbox + --N $kwip.N + --x $kwip.x + --ksize $kwip.ksize + --unique_kmers $kwip.unique_kmers + #endif + $kwip.kwip_fine + --kwip_thresh $kwip.kwip_threshold + #endif + + #if spotyping.spotyping_checkbox + --spotyping + $spotyping.spoligo_fine + --spoligo_thresh $spotyping.spoligo_threshold + #endif + + #if adv_clustering.adv_clustering_checkbox + $adv_clustering.all_constraints + --method $adv_clustering.method + $adv_clustering.presolve + $adv_clustering.visualize + #endif + ]]></command> + + + <inputs> + <!--<conditional name="task">--> + <!--<param name="task_selector" type="select" label="Create Blank Config or Populate Config File">--> + <!--<option value="create">Create Blank Config File</option>--> + <!--<option value="populate">Populate Config File</option>--> + <!--</param>--> + <!--<when value="create">--> + + <!--</when>--> + <!--<when value="populate">--> + <conditional name="snippy"> + <param name="snippy_checkbox" type="boolean" label="Run Snippy"/> + <when value="true"> + <param name="reference" type="data" format="fasta,fa,fasta.gz,fa.gz" label="Reference Genome"/> + <conditional name="snippy_adv"> + <param name="snippy_adv_checkbox" type="boolean" label="Advanced Snippy Parameters"/> + <when value="true"> + <param name="mapqual" type="integer" value="60" min="0" label="Minimum read mapping + quality to consider"/> + <param name="basequal" type="integer" value="20" min="0" label="Minimum base quality + to consider"/> + <param name="mincov" type="integer" value="10" min="0" label="Minimum coverage of + variant site"/> + <param name="minfrac" type="float" value="0.9" min="0" label="Minimum proportion of + variant evidence"/> + </when> + </conditional> + <param name="snp_fine" type="boolean" label="Consider SNP as a fine datatype"/> + <param name="snp_threshold" type="integer" value="2500" min="0" + label="Correlation clustering threshold for MLST"/> + </when> + </conditional> + + <conditional name="mentalist"> + <param name="mentalist_checkbox" type="boolean" label="Run MentaLiST"/> + <when value="true"> + <conditional name="db_loc"> + <param name="db_selector" type="select" label="Option for obtaining MLST database"> + <option value="local_file">Local File</option> + <option value="build_db">Build DB</option> + <option value="download_pubmlst">Download PubMLST Scheme</option> + <option value="download_cgmlst">Download cgMLST Scheme</option> + <option value="download_enterobase">Download Enterobase Scheme</option> + </param> + <when value="local_file"> + <param name="mlst_database" format="db" type="data" label="MLST database file"/> + </when> + <when value="build_db"> + <param name="k" type="integer" value="31" min="1" label="kmer size"/> + <param name="fasta_files" type="data" format="txt,tabular" label="List of FASTA files"/> + <param name="profile" type="data" format="txt" label="Profile file for known + genotypes"/> + </when> + <when value="download_pubmlst"> + <param name="k" type="integer" value="31" min="1" label="kmer size"/> + <param name="scheme" type="text" label="Species name or scheme ID"/> + </when> + <when value="download_cgmlst"> + <param name="k" type="integer" value="31" min="1" label="kmer size"/> + <param name="scheme" type="text" label="Species name or scheme ID"/> + </when> + <when value="download_enterobase"> + <param name="k" type="integer" value="31" min="1" label="kmer size"/> + <param name="scheme" type="text" label="(S)almonella, (Y)ersinia, or + (E)scherichia/Shigella"/> + <param name="type" type="text" label="'cg' or 'wg' for cgMLST or wgMLST, respectively"/> + </when> + </conditional> + + <conditional name="mentalist_adv"> + <param name="mentalist_adv_checkbox" type="boolean" label="Advanced MentaLiST Parameters"/> + <when value="true"> + <param name="mutation_thresh" type="integer" min="1" value="6" label="Maximum number of + mutations when looking for novel alleles"/> + <param name="kt" type="integer" value="10" min="1" label="Minimum number of times a + kmer is seen to be considered present in the sample"/> + </when> + </conditional> + <param name="mlst_fine" type="boolean" label="Consider MLST as a fine datatype"/> + <param name="mlst_threshold" type="integer" value="300" min="0" + label="Correlation clustering threshold for MLST"/> + </when> + </conditional> + + <conditional name="prince"> + <param name="prince_checkbox" type="boolean" label="Run PRINCE"/> + <when value="true"> + <param name="cnv_fine" type="boolean" label="Consider CNV as a fine datatype"/> + <param name="cnv_threshold" type="integer" value="100" min="0" + label="Correlation clustering threshold for CNV"/> + </when> + </conditional> + + <conditional name="kwip"> + <param name="kwip_checkbox" type="boolean" label="Run kWIP"/> + <when value="true"> + <conditional name="kwip_adv"> + <param name="kwip_adv_checkbox" type="boolean" label="Advance kWIP Parameters"/> + <when value="true"> + <param name="N" type="integer" value="1" min="1" label="Number of tables"/> + <param name="x" type="float" value="1e9" min="1" label="Maximum table size"/> + <param name="ksize" type="integer" value="31" min="1" label="kmer size"/> + <param name="unique_kmers" type="integer" value="0" min="0" label="Approximate number + of unique kmers in the input set"/> + </when> + </conditional> + <param name="kwip_fine" type="boolean" label="Consider kWIP as a fine datatype"/> + <param name="kwip_threshold" type="float" value="0.4" min="0" + label="Correlation clustering threshold for kWIP"/> + </when> + </conditional> + + <conditional name="spotyping"> + <param name="spotyping_checkbox" type="boolean" label="Run SpoTyping"/> + <when value="true"> + <param name="spoligo_fine" type="boolean" label="Consider spoligotype as a fine datatype"/> + <param name="spoligo_threshold" type="integer" value="8" min="0" + label="Correlation clustering threshold for Spoligotyping"/> + </when> + </conditional> + + <conditional name="adv_clustering"> + <param name="adv_clustering_checkbox" type="boolean" + label="Advanced settings for correlation and consensus clustering"/> + <when value="true"> + <param name="all_constraints" type="boolean" checked="true" falsevalue="--less_constraints" + truevalue="" label="Use all constraints when performing clustering"/> + <param name="method" type="text" value="C4" size="3" + label="`C4` or `ILP` method for clustering algorithm"/> + <param name="presolve" type="boolean" checked="true" falsevalue="--no_presolve" truevalue="" + label="Perform presolving for clustering"/> + <param name="visualize" type="boolean" checked="false" falsevalue="" truevalue="--visualize" + label="Visualize clusters"/> + </when> + </conditional> + <!--</when>--> + <!--</conditional>--> + </inputs> + + <outputs> + <data name="output" label="PathOGiST Config File" format="yaml" from_work_dir="config.yaml"/> + </outputs> + + <help> + + </help> + + <citations> + + </citations> +</tool>