Mercurial > repos > florianbegusch > qiime2_suite
diff qiime2/qiime_gneiss_balance-taxonomy.xml @ 0:370e0b6e9826 draft
Uploaded
author | florianbegusch |
---|---|
date | Wed, 17 Jul 2019 03:05:17 -0400 |
parents | |
children | de4c22a52df4 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qiime2/qiime_gneiss_balance-taxonomy.xml Wed Jul 17 03:05:17 2019 -0400 @@ -0,0 +1,111 @@ +<?xml version="1.0" ?> +<tool id="qiime_gneiss_balance-taxonomy" name="qiime gneiss balance-taxonomy" version="2019.4"> + <description> - Balance Summary</description> + <requirements> + <requirement type="package" version="2019.4">qiime2</requirement> + </requirements> + <command><![CDATA[ +qiime gneiss balance-taxonomy + +--i-table=$itable +--i-tree=$itree +--i-taxonomy=$itaxonomy +--p-balance-name="$pbalancename" + + +#if $input_files_mmetadatafile: +#def list_dict_to_string(list_dict): + #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name') + #for d in list_dict[1:]: + #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name') + #end for + #return $file_list +#end def + --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile) +#end if + + +#if $ppseudocount: + --p-pseudocount=$ppseudocount +#end if + +#if $ptaxalevel: + --p-taxa-level=$ptaxalevel +#end if + +#if $pnfeatures: + --p-n-features=$pnfeatures +#end if + +#if str($pthreshold): + --p-threshold="$pthreshold" +#end if +#if str($mmetadatacolumn): + --m-metadata-column="$mmetadatacolumn" +#end if + +--o-visualization=ovisualization +; +qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path' +&& cp -r out/* '$ovisualization.files_path' +&& mv '$ovisualization.files_path/index.html' '$ovisualization' + ]]></command> + <inputs> + <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] A table of abundances. [required]" name="itable" optional="False" type="data"/> + <param format="qza,no_unzip.zip" label="--i-tree: ARTIFACT The tree used to calculate the balances. Hierarchy [required]" name="itree" optional="False" type="data"/> + <param format="qza,no_unzip.zip" label="--i-taxonomy: ARTIFACT FeatureData[Taxonomy] Taxonomy information for the OTUs. [required]" name="itaxonomy" optional="False" type="data"/> + <param label="--p-balance-name: TEXT Name of the balance to summarize. [required]" name="pbalancename" optional="False" type="text"/> + <param label="--p-pseudocount: NUMBER The pseudocount to add to avoid division by zero. [default: 0.5]" name="ppseudocount" optional="True" type="float" value="0.5"/> + <param label="--p-taxa-level: INTEGER Level of taxonomy to summarize. [default: 0]" name="ptaxalevel" optional="True" type="integer" value="0"/> + <param label="--p-n-features: INTEGER The number of features to plot in the proportion plot. [default: 10]" name="pnfeatures" optional="True" type="integer" value="10"/> + <param label="--p-threshold: NUMBER A threshold to designate discrete categories for a numerical metadata column. This will split the numerical column values into two categories, values below the threshold, and values above the threshold. If not specified, this threshold will default to the mean. [optional]" name="pthreshold" optional="True" type="float"/> + <param label="--m-metadata-column: COLUMN MetadataColumn[Categorical | Numeric] Metadata column for plotting the balance (optional). [optional]" name="mmetadatacolumn" optional="True" type="text"/> + + <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file"> + <param label="--m-metadata-file: Metadata file or artifact viewable as metadata. This option may be supplied multiple times to merge metadata. [optional]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" /> + </repeat> + + </inputs> + <outputs> + <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/> + </outputs> + <help><![CDATA[ +Balance Summary +############### + +Visualize the distribution of a single balance and summarize its numerator +and denominator components. + +Parameters +---------- +table : FeatureTable[Frequency] + A table of abundances. +tree : Hierarchy + The tree used to calculate the balances. +taxonomy : FeatureData[Taxonomy] + Taxonomy information for the OTUs. +balance_name : Str + Name of the balance to summarize. +pseudocount : Float, optional + The pseudocount to add to avoid division by zero. +taxa_level : Int, optional + Level of taxonomy to summarize. +n_features : Int, optional + The number of features to plot in the proportion plot. +threshold : Float, optional + A threshold to designate discrete categories for a numerical metadata + column. This will split the numerical column values into two + categories, values below the threshold, and values above the threshold. + If not specified, this threshold will default to the mean. +metadata : MetadataColumn[Categorical | Numeric], optional + Metadata column for plotting the balance (optional). + +Returns +------- +visualization : Visualization + ]]></help> +<macros> + <import>qiime_citation.xml</import> +</macros> +<expand macro="qiime_citation"/> +</tool>