view qiime2/qiime_cutadapt_demux-single.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_cutadapt_demux-single" name="qiime cutadapt demux-single" version="2018.4">
	<description> - Demultiplex single-end sequence data with barcodes in- sequence.</description>
	<requirements>
		<requirement type="package" version="2018.4">qiime2</requirement>
	</requirements>
	<command><![CDATA[
  
  qiime cutadapt demux-single

  #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-barcodes-file=$list_dict_to_string($input_files_mbarcodesfile) --i-seqs=$iseqs --m-barcodes-column="$mbarcodescolumn"
  
  #if str($cmdconfig) != 'None':
   --cmd-config=$cmdconfig
  #end if
 
   --o-per-sample-sequences=opersamplesequences --o-untrimmed-sequences=ountrimmedsequences

  #if $perrorrate:
   --p-error-rate=$perrorrate
  #end if
  ;
  cp opersamplesequences.qza $opersamplesequences;
  cp ountrimmedsequences.qza $ountrimmedsequences;
  ]]></command>
	<inputs>
		<param format="qza,no_unzip.zip" label="--i-seqs: MultiplexedSingleEndBarcodeInSequence The single-end sequences to be demultiplexed.  [required]" name="iseqs" optional="False" type="data"/>

		<repeat name="input_files_mbarcodesfile" optional="False" title="--m-barcodes-file">
			<param label="--m-barcodes-file: Metadata file or artifact viewable as metadata. This option may be supplied multiple times to merge metadata. [required]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
		</repeat>
		<param label="--m-barcodes-column: MetadataColumn[Categorical] Column from metadata file or artifact viewable as metadata. The sample metadata column listing the per-sample barcodes. [required]" name="mbarcodescolumn" optional="False" type="text"/>

		<param label="--p-error-rate: The level of error tolerance, specified as the maximum allowable error rate. The default value specified by cutadapt is 0.1 (=10%), which is greater than `demux emp-*`, which is 0.0 (=0%).  [default: 0.1]" name="perrorrate" optional="True" type="float" value="0.1"/>

		<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}: per-sample-sequences.qza" name="opersamplesequences"/>
		<data format="qza" label="${tool.name} on ${on_string}: untrimmed-sequences.qza" name="ountrimmedsequences"/>
	</outputs>
	<help><![CDATA[
Demultiplex single-end sequence data with barcodes in-sequence.
----------------------------------------------------------------

Demultiplex sequence data (i.e., map barcode reads to sample ids). Barcodes
are expected to be located within the sequence data (versus the header, or
a separate barcode file).

Parameters
----------
seqs : MultiplexedSingleEndBarcodeInSequence
    The single-end sequences to be demultiplexed.
barcodes : MetadataColumn[Categorical]
    The sample metadata column listing the per-sample barcodes.
error_rate : Float % Range(0, 1, inclusive_end=True), optional
    The level of error tolerance, specified as the maximum allowable error
    rate. The default value specified by cutadapt is 0.1 (=10%), which is
    greater than `demux emp-*`, which is 0.0 (=0%).

Returns
-------
per_sample_sequences : SampleData[SequencesWithQuality]
    The resulting demultiplexed sequences.
untrimmed_sequences : MultiplexedSingleEndBarcodeInSequence
    The sequences that were unmatched to barcodes.
    ]]>
</help>
<macros>
	<import>qiime_citation.xml</import>
</macros>
<expand macro="qiime_citation" />
</tool>