Skip to content

Instantly share code, notes, and snippets.

@gabrielbenavidez
Created January 15, 2020 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielbenavidez/a873930c11fd46c979770bad16286fb9 to your computer and use it in GitHub Desktop.
Save gabrielbenavidez/a873930c11fd46c979770bad16286fb9 to your computer and use it in GitHub Desktop.
<?xml version="1.0" ?>
<tool id="qiime_demux_summarize" name="qiime demux summarize">
<description> - Summarize counts per sample.</description>
<requirements>
<container type="docker">qiime2/core</container>
</requirements>
<command ><![CDATA[
qiime demux summarize --i-data=$idata
#if str($pn):
--p-n=$pn
#end if
--o-visualization=output.qzv
;
qiime tools export --input-path output.qzv --output-path out
&& mkdir -p '$output.files_path'
&& cp -r out/* '$output.files_path'
&& mv '$output.files_path/index.html' '$output'
]]></command>
<inputs>
<param format="qza,no_unzip.zip" label="--i-data: ARTIFACT SampleData[SequencesWithQuality | PairedEndSequencesWithQuality | JoinedSequencesWithQuality] The demultiplexed sequences to be summarized. [required]" name="idata" optional="False" type="data"/>
<param label="--p-n: INTEGER The number of sequences that should be selected at random for quality score plots. The quality plots will present the average positional qualities across all of the sequences selected. If input sequences are paired end, plots will be generated for both forward and reverse reads for the same `n` sequences. [default: 10000]" name="pn" optional="True" type="integer" value="10000"/>
</inputs>
<outputs>
<data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="output"/>
</outputs>
<help><![CDATA[
Summarize counts per sample.
############################
Summarize counts per sample for all samples, and generate interactive
positional quality plots based on `n` randomly selected sequences.
Parameters
----------
data : SampleData[SequencesWithQuality | PairedEndSequencesWithQuality | JoinedSequencesWithQuality]
The demultiplexed sequences to be summarized.
n : Int, optional
The number of sequences that should be selected at random for quality
score plots. The quality plots will present the average positional
qualities across all of the sequences selected. If input sequences are
paired end, plots will be generated for both forward and reverse reads
for the same `n` sequences.
Returns
-------
visualization : Visualization
]]></help>
<macros>
<import>qiime_citation.xml</import>
</macros>
<expand macro="qiime_citation"/>
</tool>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment