view fastx_trimmer.xml @ 6:61b4cedc8934 draft default tip

"planemo upload for repository commit 4c002e52261da2e7609735883d91fa1610ce6ce7"
author iuc
date Thu, 30 Jan 2020 13:31:32 -0500
parents 547e8d00f11c
line wrap: on
line source

<tool id="cshl_fastx_trimmer" version="1.0.2+galaxy0" name="Trim sequences">
    <expand macro="requirements">
        <requirement type="package" version="1.0.8">bzip2</requirement>
    <command detect_errors="exit_code"><![CDATA[
@CATS@ fastx_trimmer -v
-f $first
-l $last
> '$output'
        <expand macro="fastx_input" />
        <param name="first" type="integer" value="1" label="First base to keep" />
        <param name="last" type="integer" value="21" label="Last base to keep" />
        <data name="output" format_source="input" metadata_source="input" />
            <!-- Trim a FASTA file - remove first four bases (e.g. a barcode) -->
            <param name="input" value="fastx_trimmer1.fasta" />
            <param name="first" value="5"/>
            <param name="last" value="36"/>
            <output name="output" ftype="fasta" file="fastx_trimmer1.out" />
            <!-- Trim a FASTQ file - remove last 9 bases (e.g. keep only miRNA length sequences) -->
            <param name="input" value="fastx_trimmer2.fastq" ftype="fastqsolexa"/>
            <param name="first" value="1"/>
            <param name="last" value="27"/>
            <output name="output" ftype="fastqsolexa" file="fastx_trimmer2.out" />
            <!-- Trim a FASTQ.gz file and output FASTQ.gz -->
            <param name="input" value="fastx_trimmer2.fastq.gz" ftype="fastqsanger.gz"/>
            <param name="first" value="1"/>
            <param name="last" value="27"/>
            <output name="output" ftype="fastqsanger.gz" decompress="true" file="fastx_trimmer2.out.gz" />
            <!-- Trim a FASTQ.bz2 file and output FASTQ.bz2 -->
            <param name="input" value="fastx_trimmer2.fastq.bz2" ftype="fastqsanger.bz2"/>
            <param name="first" value="1"/>
            <param name="last" value="27"/>
            <output name="output" ftype="fastqsanger.bz2" decompress="true" file="fastx_trimmer2.out.bz2" />
**What it does**

This tool trims (cut bases from) sequences in a FASTA/Q file.



Input Fasta file (with 36 bases in each sequences)::


Trimming with First=1 and Last=21, we get a FASTA file with 21 bases in each sequences (starting from the first base)::


Trimming with First=6 and Last=10, will generate a FASTA file with 5 bases (bases 6,7,8,9,10) in each sequences::



This tool is based on `FASTX-toolkit`__ by Assaf Gordon.

 .. __:
    <expand macro="citations" />
<!-- FASTX-Trimmer is part of the FASTX-toolkit, by A.Gordon ( -->