view extract_bcs.xml @ 2:fb83859f7714 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 758b42538f722759e7b5414f64c9a7973cc221b4"
author iuc
date Wed, 25 Dec 2019 11:40:47 -0500
parents ce2477cd3d95
children
line wrap: on
line source

<tool id="bctools_extract_barcodes" name="Extract barcodes" version="@VERSION@">
    <description>according to pattern</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements"/>
    <command detect_errors="exit_code"><![CDATA[
        extract_bcs.py
        '$reads'
        #if $barcode_pattern and $barcode_pattern is not None:
            '$barcode_pattern'
        #end if
        --bcs '$extracted_barcodes'
        > '$reads_cleaned'
    ]]></command>
    <inputs>
        <param name="reads" type="data" format="fastq" label="Barcoded sequences" />
        <param name="barcode_pattern" type="text" label="Pattern for extracting barcode nucleotides" help="Starting at 5'-end. X positions will be moved to a separate file, N positions will be kept.">
            <sanitizer invalid_char="N">
                <valid initial="none">
                    <add value="X"/>
                    <add value="N"/>
                </valid>
            </sanitizer>
        </param>
    </inputs>
    <outputs>
        <data name="reads_cleaned" format="fastq"/>
        <data name="extracted_barcodes" format="fastq"/>
    </outputs>
    <tests>
        <test>
            <param name="reads" value="reads.fastq"/>
            <param name="barcode_pattern" value="XXXNNXXX"/>
            <output name="reads_cleaned" file="result_original_head.fastq"/>
            <output name="extracted_barcodes" file="extracted_bcs.fastq"/>
        </test>
    </tests>
    <help><![CDATA[

bctools - Extract barcodes according to pattern
===============================================

Exract barcodes from a FASTQ file according to a user-specified pattern and write them to a separate FASTQ file.

    ]]></help>
    <expand macro="citations"/>
</tool>