Mercurial > repos > iuc > obi_sort
comparison obisort.xml @ 5:aaf7754dafd3 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/obitools commit a01e3c562cf5d62af522b893a25abde6476a1f45
| author | iuc |
|---|---|
| date | Thu, 30 Oct 2025 16:03:21 +0000 |
| parents | 0d63988e23c3 |
| children |
comparison
equal
deleted
inserted
replaced
| 4:0d63988e23c3 | 5:aaf7754dafd3 |
|---|---|
| 1 <tool id="obi_sort" name="obisort" version="@TOOL_VERSION@" profile="@PROFILE@"> | 1 <tool id="obi_sort" name="obisort" version="@TOOL_VERSION@" profile="@PROFILE@"> |
| 2 <description>sorts sequence records according to the value of a given attribute</description> | 2 <description>sorts sequence records according to the value of a given attribute</description> |
| 3 <expand macro="bio_tools"/> | |
| 4 <macros> | 3 <macros> |
| 5 <import>macros.xml</import> | 4 <import>macros.xml</import> |
| 6 </macros> | 5 </macros> |
| 6 <expand macro="bio_tools"/> | |
| 7 <expand macro="requirements"/> | 7 <expand macro="requirements"/> |
| 8 <expand macro="stdio"/> | 8 <expand macro="stdio"/> |
| 9 | 9 |
| 10 <command><![CDATA[ | 10 <command><![CDATA[ |
| 11 @GUNZIP_INPUT@ | 11 @GUNZIP_INPUT@ |
| 12 obisort | 12 obisort |
| 13 --without-progress-bar | 13 --without-progress-bar |
| 14 #if $key: | |
| 14 -k '$key' | 15 -k '$key' |
| 16 #end if | |
| 15 ${reverse} | 17 ${reverse} |
| 16 @INPUT_FORMAT@ | 18 @INPUT_FORMAT@ |
| 17 @OUT_FORMAT@ | 19 @OUT_FORMAT@ |
| 18 input | 20 input |
| 19 @GZIP_OUTPUT@ | 21 @GZIP_OUTPUT@ |
| 20 > '$output' | 22 > '$output' |
| 21 @GENERATE_GALAXY_JSON@ | 23 @GENERATE_GALAXY_JSON@ |
| 22 ]]></command> | 24 ]]></command> |
| 23 <inputs> | 25 <inputs> |
| 24 <param name="input" type="data" format="@INPUT_FORMATS@,txt,tabular" label="Input sequences file" /> | 26 <param name="input" type="data" format="@INPUT_FORMATS@,txt,tabular" label="Input sequences file"/> |
| 25 <param name="key" type="text" label="key"/> | 27 <param |
| 26 <param name="reverse" type="boolean" checked="false" truevalue="-r" falsevalue="" label="sorts in reverse order?" /> | 28 name="key" |
| 29 type="text" | |
| 30 label="Key" | |
| 31 help="This key must be encoded in your FASTA/FASTQ headers as key=value. See help (below) for more information." | |
| 32 optional="false"/> | |
| 33 <param name="reverse" type="boolean" checked="false" truevalue="-r" falsevalue="" label="Sort in reverse order?" /> | |
| 27 <expand macro="input_format_options_macro"/> | 34 <expand macro="input_format_options_macro"/> |
| 28 <expand macro="out_format_macro"/> | 35 <expand macro="out_format_macro"/> |
| 29 </inputs> | 36 </inputs> |
| 30 <outputs> | 37 <outputs> |
| 31 <data format="auto" name="output"/> | 38 <data format="auto" name="output"/> |
| 32 </outputs> | 39 </outputs> |
| 33 <tests> | 40 <tests> |
| 34 <test> | 41 <test expect_num_outputs="1"> |
| 35 <param name="input" value="output_obiclean_advanced.fasta" /> | 42 <param name="input" value="output_obiclean_advanced.fasta" /> |
| 36 <param name="key" value="count"/> | 43 <param name="key" value="count"/> |
| 37 <param name="reverse" value="False"/> | 44 <param name="reverse" value="False"/> |
| 38 <param name="out_format" value="fasta"/> | 45 <param name="out_format" value="fasta"/> |
| 39 <output name="output" file="output_obisort.fasta" ftype="fasta"/> | 46 <output name="output" file="output_obisort.fasta" ftype="fasta"/> |
| 40 </test> | 47 </test> |
| 41 <test> | 48 <test expect_num_outputs="1"> |
| 42 <param name="input" value="output_obiclean_advanced.fasta" /> | 49 <param name="input" value="output_obiclean_advanced.fasta" /> |
| 43 <param name="key" value="count"/> | 50 <param name="key" value="count"/> |
| 44 <param name="reverse" value="True"/> | 51 <param name="reverse" value="True"/> |
| 45 <param name="out_format" value="fastq"/> | 52 <param name="out_format" value="fastq"/> |
| 46 <output name="output" file="output_obisort.fastq" ftype="fastqsanger"/> | 53 <output name="output" file="output_obisort.fastq" ftype="fastqsanger"/> |
| 54 | 61 |
| 55 obisort sorts sequence records according to the value of a given attribute, which can be either numeric or alphanumeric. | 62 obisort sorts sequence records according to the value of a given attribute, which can be either numeric or alphanumeric. |
| 56 | 63 |
| 57 @OBITOOLS_LINK@ | 64 @OBITOOLS_LINK@ |
| 58 | 65 |
| 59 ]]> | 66 **Inputs:** |
| 60 | 67 |
| 68 For sorting by key, the input file must be in the | |
| 69 `OBITools FASTA/FASTQ format <https://pythonhosted.org/OBITools/attributes.html>`_. | |
| 70 If your file is an OBITools output, it should already be formatted correctly. | |
| 71 | |
| 72 For FASTA files, your headers should look like this:: | |
| 73 | |
| 74 >my_sequence taxid=3456; direct=True; sample=A354; this is my pretty sequence | |
| 75 ACGTTGCAGTACGTTGCAGTACGTTGCAGTACGTTGCAGTACGTTGCAGTACGTTGCAGT | |
| 76 GTGCTGACGTTGCAGTACGTTGCAGTACGTTGCAGTACGTTGCAGTACGTTGCAGTGTTT | |
| 77 AACGACGTTGCAGTACGTTGCAGT | |
| 78 | |
| 79 Where ``taxid``, ``direct``, and ``sample`` are keys that can be used for sorting. | |
| 80 | |
| 81 If your sequences don't have title, you can format the headers with a trailing semicolon like so:: | |
| 82 | |
| 83 >my_sequence key1=value1; | |
| 84 | |
| 85 For sorting OBITools output files, a list of OBITools sequence attributes are documented | |
| 86 `here <https://pythonhosted.org/OBITools/attributes.html#names-reserved-for-attributes>`_. | |
| 87 | |
| 88 ]]> | |
| 61 </help> | 89 </help> |
| 62 <expand macro="citation" /> | 90 <expand macro="citation" /> |
| 63 </tool> | 91 </tool> |
