Mercurial > repos > peterjc > fasta_filter_by_id
annotate tools/fasta_tools/fasta_filter_by_id.xml @ 1:5cd569750e85
Migrated tool version 0.0.3 from old tool shed archive to new tool shed repository
author | peterjc |
---|---|
date | Tue, 07 Jun 2011 17:22:48 -0400 |
parents | 2e5f8ad1a096 |
children | 5b552b3005f2 |
rev | line source |
---|---|
1
5cd569750e85
Migrated tool version 0.0.3 from old tool shed archive to new tool shed repository
peterjc
parents:
0
diff
changeset
|
1 <tool id="fasta_filter_by_id" name="Filter FASTA by ID" version="0.0.3"> |
0
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
2 <description>from a tabular file</description> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
3 <command interpreter="python"> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
4 fasta_filter_by_id.py $input_tabular $columns $input_fasta |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
5 #if $output_choice_cond.output_choice=="both" |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
6 $output_pos $output_neg |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
7 #elif $output_choice_cond.output_choice=="pos" |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
8 $output_pos - |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
9 #elif $output_choice_cond.output_choice=="neg" |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
10 - $output_neg |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
11 #end if |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
12 </command> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
13 <inputs> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
14 <param name="input_fasta" type="data" format="fasta" label="FASTA file to filter on the identifiers"/> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
15 <param name="input_tabular" type="data" format="tabular" label="Tabular file containing FASTA identifiers"/> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
16 <param name="columns" type="data_column" data_ref="input_tabular" multiple="True" numerical="False" label="Column(s) containing FASTA identifiers" help="Multi-select list - hold the appropriate key while clicking to select multiple columns"> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
17 <validator type="no_options" message="Pick at least one column"/> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
18 </param> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
19 <conditional name="output_choice_cond"> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
20 <param name="output_choice" type="select" label="Output positive matches, negative matches, or both?"> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
21 <option value="both">Both positive matches (ID on list) and negative matches (ID not on list), as two FASTA files</option> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
22 <option value="pos">Just positive matches (ID on list), as a single FASTA file</option> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
23 <option value="neg">Just negative matches (ID not on list), as a single FASTA file</option> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
24 </param> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
25 <!-- Seems need these dummy entries here, compare this to indels/indel_sam2interval.xml --> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
26 <when value="both" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
27 <when value="pos" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
28 <when value="neg" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
29 </conditional> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
30 </inputs> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
31 <outputs> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
32 <data name="output_pos" format="fasta" label="With matched ID"> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
33 <filter>output_choice_cond["output_choice"] != "neg"</filter> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
34 </data> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
35 <data name="output_neg" format="fasta" label="Without matched ID"> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
36 <filter>output_choice_cond["output_choice"] != "pos"</filter> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
37 </data> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
38 </outputs> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
39 <tests> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
40 <!-- Can't get these unit tests to run, may be a Galaxy problem |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
41 <test> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
42 <param name="input_fasta" value="four_human_proteins.fasta" ftype="fasta" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
43 <param name="input_tabular" value="blastp_four_human_vs_rhodopsin.tabular" ftype="tabular" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
44 <param name="columns" value="1" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
45 <param name="output_choice" value="both" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
46 <output name="output_pos" file="four_human_proteins_filter_a.fasta" ftype="fasta" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
47 <output name="output_neg" file="four_human_proteins_filter_b.fasta" ftype="fasta" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
48 </test> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
49 <test> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
50 <param name="input_fasta" value="four_human_proteins.fasta" ftype="fasta" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
51 <param name="input_tabular" value="blastp_four_human_vs_rhodopsin.tabular" ftype="tabular" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
52 <param name="columns" value="1" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
53 <param name="output_choice" value="pos" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
54 <output name="output_pos" file="four_human_proteins_filter_a.fasta" ftype="fasta" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
55 </test> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
56 <test> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
57 <param name="input_fasta" value="four_human_proteins.fasta" ftype="fasta" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
58 <param name="input_tabular" value="blastp_four_human_vs_rhodopsin.tabular" ftype="tabular" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
59 <param name="columns" value="1" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
60 <param name="output_choice" value="neg" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
61 <output name="output_neg" file="four_human_proteins_filter_b.fasta" ftype="fasta" /> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
62 </test> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
63 --> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
64 </tests> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
65 <help> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
66 |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
67 **What it does** |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
68 |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
69 By default it divides a FASTA file in two, those sequences with or without an |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
70 ID present in the tabular file column(s) specified. You can opt to have a |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
71 single output file of just the matching records, or just the non-matching ones. |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
72 |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
73 Note that the order of sequences in the original FASTA file is preserved. |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
74 Also, if any sequences share an identifier, duplicates are not removed. |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
75 |
1
5cd569750e85
Migrated tool version 0.0.3 from old tool shed archive to new tool shed repository
peterjc
parents:
0
diff
changeset
|
76 **Example Usage** |
5cd569750e85
Migrated tool version 0.0.3 from old tool shed archive to new tool shed repository
peterjc
parents:
0
diff
changeset
|
77 |
5cd569750e85
Migrated tool version 0.0.3 from old tool shed archive to new tool shed repository
peterjc
parents:
0
diff
changeset
|
78 Given a FASTA file of proteins you might run a signal peptide search (e.g. |
5cd569750e85
Migrated tool version 0.0.3 from old tool shed archive to new tool shed repository
peterjc
parents:
0
diff
changeset
|
79 via the SignalP wrapper for Galaxy), then filtered these tabular results to |
5cd569750e85
Migrated tool version 0.0.3 from old tool shed archive to new tool shed repository
peterjc
parents:
0
diff
changeset
|
80 select just those with a signal peptide. You could then use this tool to get |
5cd569750e85
Migrated tool version 0.0.3 from old tool shed archive to new tool shed repository
peterjc
parents:
0
diff
changeset
|
81 a FASTA file of only the proteins with predicted signal peptides. |
5cd569750e85
Migrated tool version 0.0.3 from old tool shed archive to new tool shed repository
peterjc
parents:
0
diff
changeset
|
82 |
0
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
83 </help> |
2e5f8ad1a096
Migrated tool version 0.0.2 from old tool shed archive to new tool shed repository
peterjc
parents:
diff
changeset
|
84 </tool> |