view presto_partition.xml @ 3:620f3b0a1430 draft default tip

"planemo upload for repository commit d52e3c9c53dd358e14e65a3a083e7d5c102f8697"
author iuc
date Sat, 25 Sep 2021 18:34:18 +0000
parents 824d24bfe8dd
line wrap: on
line source

<tool id="presto_partition" name="pRESTO Partition" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>Partition a file in two</description>
    <expand macro="bio_tools"/>
    <expand macro="requirements"/>
    <version_command> --version</version_command>
    <command detect_errors="exit_code"><![CDATA[
        ln -s '$fastq_in' in.fastq && group
          -s in.fastq
          -f '$field'
          --num '$threshold'
          --outname=tmp_group &&
        mv './tmp_group_under-${threshold}.fastq' '$lower_out' &&
        mv './tmp_group_atleast-${threshold}.fastq' '$upper_out'

        <param argument="-s" name="fastq_in" type="data" format="fastq" label="Input FASTQ file" help="FASTQ file of sequences with barcodes/UMIs in an annotation."/>
        <param argument="-f" name="field" type="text" value="" label="Annotation Field" help="Name of the numeric annotation field to partition by."/>
        <param argument="--num" name="threshold" type="integer" value="0" label="Threshold" help="Numeric threshold. File will be partitions be into n &lt; threshold and n &gt;= threshold."/>

        <data name="lower_out" format="fastq" label="Sequences with $field &lt; $threshold"/>
        <data name="upper_out" format="fastq" label="Sequences with $field &gt;= $threshold"/>
            <param  name="fastq_in" value="presto_splitseq_partition_test_in.fastq"/>
            <param  name="field" value="CONSCOUNT"/>
            <param  name="threshold" value="3"/>
            <output name="lower_out" file="presto_splitseq_partition_test_out_under.fastq" sort="true"/>
            <output name="upper_out" file="presto_splitseq_partition_test_out_atleast.fastq" sort="true"/>
Uses pRESTO group to partition a file of sequences into two files. The input file is split based on a numeric
annotation field to yield one file which contains all sequences with the field value less than the provided threshold and
a second file with all sequences with the field value greater than or equal to the threshold.

See the `pRESTO online help <@PRESTO_BASE_URL@/en/stable>`_ for more information.

    <expand macro="citations" />