Mercurial > repos > cpt > cpt_fasta_remove_id
view fasta_remove_id.xml @ 3:03414db20efc draft
planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
author | cpt |
---|---|
date | Mon, 05 Jun 2023 02:41:42 +0000 |
parents | |
children | 90f549221976 |
line wrap: on
line source
<tool id="edu.tamu.cpt.fasta.remove_desc" name="Remove Description" version="19.1.0.0"> <description>from fasta file</description> <macros> <import>macros.xml</import> <import>cpt-macros.xml</import> </macros> <expand macro="requirements"/> <command detect_errors="aggressive"><![CDATA[ '$__tool_directory__/fasta_remove_id.py' @SEQUENCE@ > '$out' ]]> </command> <inputs> <expand macro="input/fasta"/> </inputs> <outputs> <data format="fasta" name="out"/> </outputs> <tests> <test> <param name="sequences" value="T7_RemIDIn.fasta"/> <output name="out" file="T7_RemIDOut.fasta"/> </test> </tests> <help> **What it does** From an input FASTA file, removes the "description" field (all characters after the first space in the top line until a return) after the FASTA ID (from the > to the first space). This is a permanent removal of the description. It is useful for tools that behave in unexpected ways if it is present, e.g. Glimmer/GeneMarkS. **Example Input/Output** For an input FASTA file:: >1|random sequence|A: 0.25|C: 0.25|G: 0.25|T: 0.25|length: 288 bp acttacgcggagagatgagaccaacgctcgcctaggggcacgcttgtaattgacttatct >2|random sequence|A: 0.25|C: 0.25|G: 0.25|T: 0.25|length: 232 bp gttggggacccacctatcagggagtgtagtagtataagactgtccaataccccccaacat The resulting FASTA will contain only IDs without a description:: >1|random acttacgcggagagatgagaccaacgctcgcctaggggcacgcttgtaattgacttatct >2|random gttggggacccacctatcagggagtgtagtagtataagactgtccaataccccccaacat </help> <expand macro="citations"/> </tool>