view qiime2/qiime_diversity_core-metrics-phylogenetic.xml @ 0:51b9b6b57732 draft

Uploaded
author florianbegusch
date Thu, 24 May 2018 05:21:07 -0400
parents
children
line wrap: on
line source

<?xml version="1.0" ?>
<tool id="qiime_diversity_core-metrics-phylogenetic" name="qiime diversity core-metrics-phylogenetic" version="2018.4">
	<description> - Core diversity metrics (phylogenetic and non- phylogenetic)</description>
	<requirements>
		<requirement type="package" version="2018.4">qiime2</requirement>
	</requirements>
	<command><![CDATA[
  qiime diversity core-metrics-phylogenetic --i-table=$itable
  
  #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 + ',' + d['additional_input'].__getattr__('file_name')
  	#end for
  	#return $file_list
  #end def
  
   --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile) --i-phylogeny=$iphylogeny --p-sampling-depth="$psamplingdepth"
   
  #if str($cmdconfig) != 'None':
   --cmd-config=$cmdconfig
  #end if
  
   --o-unweighted-unifrac-emperor=ounweightedunifracemperor --o-weighted-unifrac-distance-matrix=oweightedunifracdistancematrix --o-unweighted-unifrac-distance-matrix=ounweightedunifracdistancematrix --o-bray-curtis-pcoa-results=obraycurtispcoaresults --o-observed-otus-vector=oobservedotusvector --o-faith-pd-vector=ofaithpdvector --o-jaccard-pcoa-results=ojaccardpcoaresults --o-weighted-unifrac-pcoa-results=oweightedunifracpcoaresults --o-jaccard-emperor=ojaccardemperor --o-shannon-vector=oshannonvector --o-bray-curtis-distance-matrix=obraycurtisdistancematrix --o-bray-curtis-emperor=obraycurtisemperor --o-rarefied-table=orarefiedtable --o-jaccard-distance-matrix=ojaccarddistancematrix
   
  #set $pnjobs = '${GALAXY_SLOTS:-4}'
  
  #if str($pnjobs):
   --p-n-jobs="$pnjobs"
  #end if
  
   --o-weighted-unifrac-emperor=oweightedunifracemperor --o-evenness-vector=oevennessvector --o-unweighted-unifrac-pcoa-results=ounweightedunifracpcoaresults;
   
   
 qiime tools export ounweightedunifracemperor.qzv --output-dir out   && mkdir -p '$ounweightedunifracemperor.files_path'
  && cp -r out/* '$ounweightedunifracemperor.files_path'
  && mv '$ounweightedunifracemperor.files_path/index.html' '$ounweightedunifracemperor'; 
  
 cp oweightedunifracdistancematrix.qza $oweightedunifracdistancematrix;
 cp ounweightedunifracdistancematrix.qza $ounweightedunifracdistancematrix;
 cp obraycurtispcoaresults.qza $obraycurtispcoaresults;
 cp oobservedotusvector.qza $oobservedotusvector;
 cp ofaithpdvector.qza $ofaithpdvector;
 cp ojaccardpcoaresults.qza $ojaccardpcoaresults;
 cp oweightedunifracpcoaresults.qza $oweightedunifracpcoaresults;
 

  qiime tools export ojaccardemperor.qzv --output-dir out   && mkdir -p '$ojaccardemperor.files_path'
  && cp -r out/* '$ojaccardemperor.files_path'
  && mv '$ojaccardemperor.files_path/index.html' '$ojaccardemperor';
  
  cp oshannonvector.qza $oshannonvector;
  cp obraycurtisdistancematrix.qza $obraycurtisdistancematrix;  
  
  qiime tools export obraycurtisemperor.qzv --output-dir out   && mkdir -p '$obraycurtisemperor.files_path'
  && cp -r out/* '$obraycurtisemperor.files_path'
  && mv '$obraycurtisemperor.files_path/index.html' '$obraycurtisemperor';
  
  cp orarefiedtable.qza $orarefiedtable;
  cp ojaccarddistancematrix.qza $ojaccarddistancematrix;  
  
  qiime tools export oweightedunifracemperor.qzv --output-dir out   && mkdir -p '$oweightedunifracemperor.files_path'
  && cp -r out/* '$oweightedunifracemperor.files_path'
  && mv '$oweightedunifracemperor.files_path/index.html' '$oweightedunifracemperor';
  
  cp oevennessvector.qza $oevennessvector;
  cp ounweightedunifracpcoaresults.qza $ounweightedunifracpcoaresults;
  ]]></command>
	<inputs>
		<param format="qza,no_unzip.zip" label="--i-table: FeatureTable[Frequency] The feature table containing the samples over which diversity metrics should be computed.  [required]" name="itable" optional="False" type="data"/>
		<param format="qza,no_unzip.zip" label="--i-phylogeny: Phylogeny[Rooted] Phylogenetic tree containing tip identifiers that correspond to the feature identifiers in the table. This tree can contain tip ids that are not present in the table, but all feature ids in the table must be present in this tree.  [required]" name="iphylogeny" optional="False" type="data"/>
		<param label="--p-sampling-depth: The total frequency that each sample should be rarefied to prior to computing diversity metrics.  [required]" name="psamplingdepth" optional="False" type="text"/>
		<repeat name="input_files_mmetadatafile" optional="False" 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. The sample metadata to use in the emperor plots. [required]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
		</repeat>
		<param label="--cmd-config: Use config file for command options" name="cmdconfig" optional="True" type="data"/>
	</inputs>
	<outputs>
		<data format="qza" label="${tool.name} on ${on_string}: rarefied-table.qza" name="orarefiedtable"/>
		<data format="qza" label="${tool.name} on ${on_string}: faith-pd-vector.qza" name="ofaithpdvector"/>
		<data format="qza" label="${tool.name} on ${on_string}: observed-otus-vector.qza" name="oobservedotusvector"/>
		<data format="qza" label="${tool.name} on ${on_string}: shannon-vector.qza" name="oshannonvector"/>
		<data format="qza" label="${tool.name} on ${on_string}: evenness-vector.qza" name="oevennessvector"/>
		<data format="qza" label="${tool.name} on ${on_string}: unweighted-unifrac-distance-matrix.qza" name="ounweightedunifracdistancematrix"/>
		<data format="qza" label="${tool.name} on ${on_string}: weighted-unifrac-distance-matrix.qza" name="oweightedunifracdistancematrix"/>
		<data format="qza" label="${tool.name} on ${on_string}: jaccard-distance-matrix.qza" name="ojaccarddistancematrix"/>
		<data format="qza" label="${tool.name} on ${on_string}: bray-curtis-distance-matrix.qza" name="obraycurtisdistancematrix"/>
		<data format="qza" label="${tool.name} on ${on_string}: unweighted-unifrac-pcoa-results.qza" name="ounweightedunifracpcoaresults"/>
		<data format="qza" label="${tool.name} on ${on_string}: weighted-unifrac-pcoa-results.qza" name="oweightedunifracpcoaresults"/>
		<data format="qza" label="${tool.name} on ${on_string}: jaccard-pcoa-results.qza" name="ojaccardpcoaresults"/>
		<data format="qza" label="${tool.name} on ${on_string}: bray-curtis-pcoa-results.qza" name="obraycurtispcoaresults"/>
		<data format="html" label="${tool.name} on ${on_string}: unweighted-unifrac-emperor.qzv" name="ounweightedunifracemperor"/>
		<data format="html" label="${tool.name} on ${on_string}: weighted-unifrac-emperor.qzv" name="oweightedunifracemperor"/>
		<data format="html" label="${tool.name} on ${on_string}: jaccard-emperor.qzv" name="ojaccardemperor"/>
		<data format="html" label="${tool.name} on ${on_string}: bray-curtis-emperor.qzv" name="obraycurtisemperor"/>
	</outputs>
	<help><![CDATA[
Core diversity metrics (phylogenetic and non-phylogenetic)
----------------------------------------------------------

Applies a collection of diversity metrics (both phylogenetic and non-
phylogenetic) to a feature table.

Parameters
----------
table : FeatureTable[Frequency]
    The feature table containing the samples over which diversity metrics
    should be computed.
phylogeny : Phylogeny[Rooted]
    Phylogenetic tree containing tip identifiers that correspond to the
    feature identifiers in the table. This tree can contain tip ids that
    are not present in the table, but all feature ids in the table must be
    present in this tree.
sampling_depth : Int % Range(1, None)
    The total frequency that each sample should be rarefied to prior to
    computing diversity metrics.
metadata : Metadata
    The sample metadata to use in the emperor plots.

Returns
-------
rarefied_table : FeatureTable[Frequency]
    The resulting rarefied feature table.
faith_pd_vector : SampleData[AlphaDiversity]
    Vector of Faith PD values by sample.
observed_otus_vector : SampleData[AlphaDiversity]
    Vector of Observed OTUs values by sample.
shannon_vector : SampleData[AlphaDiversity]
    Vector of Shannon diversity values by sample.
evenness_vector : SampleData[AlphaDiversity]
    Vector of Pielou's evenness values by sample.
unweighted_unifrac_distance_matrix : DistanceMatrix
    Matrix of unweighted UniFrac distances between pairs of samples.
weighted_unifrac_distance_matrix : DistanceMatrix
    Matrix of weighted UniFrac distances between pairs of samples.
jaccard_distance_matrix : DistanceMatrix
    Matrix of Jaccard distances between pairs of samples.
bray_curtis_distance_matrix : DistanceMatrix
    Matrix of Bray-Curtis distances between pairs of samples.
unweighted_unifrac_pcoa_results : PCoAResults
    PCoA matrix computed from unweighted UniFrac distances between samples.
weighted_unifrac_pcoa_results : PCoAResults
    PCoA matrix computed from weighted UniFrac distances between samples.
jaccard_pcoa_results : PCoAResults
    PCoA matrix computed from Jaccard distances between samples.
bray_curtis_pcoa_results : PCoAResults
    PCoA matrix computed from Bray-Curtis distances between samples.
unweighted_unifrac_emperor : Visualization
    Emperor plot of the PCoA matrix computed from unweighted UniFrac.
weighted_unifrac_emperor : Visualization
    Emperor plot of the PCoA matrix computed from weighted UniFrac.
jaccard_emperor : Visualization
    Emperor plot of the PCoA matrix computed from Jaccard.
bray_curtis_emperor : Visualization
    Emperor plot of the PCoA matrix computed from Bray-Curtis.
    ]]>
	</help>
<macros>
	<import>qiime_citation.xml</import>
</macros>
<expand macro="qiime_citation" />
</tool>