Mercurial > repos > devteam > fastx_collapser
annotate fastx_collapser.xml @ 2:17bfc147c9ea draft
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
| author | devteam |
|---|---|
| date | Tue, 13 Oct 2015 12:41:05 -0400 |
| parents | 460c78dbadf8 |
| children | 7bda0f25191f |
| rev | line source |
|---|---|
| 0 | 1 <tool id="cshl_fastx_collapser" version="1.0.0" name="Collapse"> |
|
2
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
2 <description>sequences</description> |
| 0 | 3 <requirements> |
| 4 <requirement type="package" version="0.0.13">fastx_toolkit</requirement> | |
| 5 </requirements> | |
|
2
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
6 <command> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
7 <![CDATA[ |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
8 zcat -f < '$input' | fastx_collapser -v -o '$output' |
| 0 | 9 #if $input.ext == "fastqsanger": |
|
2
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
10 -Q 33 |
| 0 | 11 #end if |
|
2
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
12 ]]> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
13 </command> |
| 0 | 14 |
|
2
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
15 <inputs> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
16 <param format="fasta,fastqsanger,fastqsolexa" name="input" type="data" label="Library to collapse" /> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
17 </inputs> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
18 <outputs> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
19 <data format="fasta" name="output" metadata_source="input" /> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
20 </outputs> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
21 <!-- The order of sequences in the test output differ between 32 bit and 64 bit machines. |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
22 <tests> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
23 <test> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
24 <param name="input" value="fasta_collapser1.fasta" /> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
25 <param name="output" file="fasta_collapser1.out" /> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
26 </test> |
|
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
27 </tests> |
| 0 | 28 --> |
|
2
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
29 <help> |
| 0 | 30 **What it does** |
| 31 | |
| 32 This tool collapses identical sequences in a FASTA file into a single sequence. | |
| 33 | |
| 34 -------- | |
| 35 | |
| 36 **Example** | |
| 37 | |
|
2
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
38 Example Input File (Sequence "ATAT" appears multiple times):: |
| 0 | 39 |
| 40 >CSHL_2_FC0042AGLLOO_1_1_605_414 | |
| 41 TGCG | |
| 42 >CSHL_2_FC0042AGLLOO_1_1_537_759 | |
| 43 ATAT | |
| 44 >CSHL_2_FC0042AGLLOO_1_1_774_520 | |
| 45 TGGC | |
| 46 >CSHL_2_FC0042AGLLOO_1_1_742_502 | |
| 47 ATAT | |
| 48 >CSHL_2_FC0042AGLLOO_1_1_781_514 | |
| 49 TGAG | |
| 50 >CSHL_2_FC0042AGLLOO_1_1_757_487 | |
| 51 TTCA | |
| 52 >CSHL_2_FC0042AGLLOO_1_1_903_769 | |
| 53 ATAT | |
| 54 >CSHL_2_FC0042AGLLOO_1_1_724_499 | |
| 55 ATAT | |
| 56 | |
| 57 Example Output file:: | |
| 58 | |
| 59 >1-1 | |
| 60 TGCG | |
| 61 >2-4 | |
| 62 ATAT | |
| 63 >3-1 | |
| 64 TGGC | |
| 65 >4-1 | |
| 66 TGAG | |
| 67 >5-1 | |
| 68 TTCA | |
|
2
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
69 |
| 0 | 70 .. class:: infomark |
| 71 | |
|
2
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
72 Original Sequence Names / Lane descriptions (e.g. "CSHL_2_FC0042AGLLOO_1_1_742_502") are discarded. |
| 0 | 73 |
| 74 The output sequence name is composed of two numbers: the first is the sequence's number, the second is the multiplicity value. | |
| 75 | |
| 76 The following output:: | |
| 77 | |
| 78 >2-4 | |
| 79 ATAT | |
| 80 | |
| 81 means that the sequence "ATAT" is the second sequence in the file, and it appeared 4 times in the input FASTA file. | |
| 82 | |
| 83 | |
| 84 ------ | |
| 85 | |
| 86 This tool is based on `FASTX-toolkit`__ by Assaf Gordon. | |
| 87 | |
| 88 .. __: http://hannonlab.cshl.edu/fastx_toolkit/ | |
|
2
17bfc147c9ea
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
1
diff
changeset
|
89 </help> |
| 0 | 90 </tool> |
