Mercurial > repos > cpt > cpt_annotation_table
annotate phage_annotation_table.xml @ 4:9cb37bf9e298 draft
planemo upload commit 5177fcac0d170bfed52e728b26e4ca3ea98660d2-dirty
author | cpt |
---|---|
date | Fri, 24 May 2024 04:16:49 +0000 |
parents | 83af8dfd079d |
children | c618332f2386 |
rev | line source |
---|---|
1
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
1 <tool id="edu.tamu.cpt2.phage.annotation_table" name="Annotation Table" version="20.0.0.1"> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
2 <description>from gff3 formatted datasets</description> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
3 <macros> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
4 <import>macros.xml</import> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
5 </macros> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
6 <expand macro="requirements"> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
7 <requirement type="package" version="2.10.1">jinja2</requirement> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
8 </expand> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
9 <command detect_errors="aggressive"><![CDATA[ |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
10 @GENOME_SELECTOR_PRE@ |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
11 |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
12 python '$__tool_directory__/phage_annotation_table.py' |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
13 '$gff3_data' |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
14 @GENOME_SELECTOR@ |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
15 --types "$extraTypes" |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
16 --reportTemplateName "$report_format" |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
17 --annotationTableCols "$cols,$gaf_cols" |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
18 #if $gaf_data: |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
19 --gafData "$gaf_data" |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
20 #end if |
4
9cb37bf9e298
planemo upload commit 5177fcac0d170bfed52e728b26e4ca3ea98660d2-dirty
cpt
parents:
3
diff
changeset
|
21 --searchSubs '$checkSubfeats' |
1
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
22 > '$output']]></command> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
23 <inputs> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
24 <expand macro="gff3_input"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
25 <expand macro="genome_selector"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
26 <param label="Extra sub-feature types to include (Comma-separated, Will always include gene)" optional="True" name="extraTypes" type="text" value=""/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
27 <param label="Columns" type="select" name="cols" multiple="True"> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
28 <option value="rid" selected="true">Record ID</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
29 <option value="id" selected="true">ID</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
30 <option value="type" selected="true">Type</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
31 <option value="name" selected="true">Name</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
32 <option value="location" selected="true">Location</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
33 <option value="start" selected="true">Feature Start</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
34 <option value="end" selected="true">Feature End</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
35 <option value="strand" selected="true">Strand</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
36 <option value="length" selected="true">Length</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
37 <option value="sd_seq" selected="true">SD sequence</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
38 <option value="sd_spacing" selected="true">SD spacing</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
39 <option value="start_codon" selected="true">Start codon</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
40 <option value="stop_codon" selected="true">Stop codon</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
41 <option value="ig_dist" selected="true">Distance to next upstream feature</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
42 <option value="upstream_feature__name" selected="true">Name of upstream feature</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
43 <option value="owner" selected="true">Owner</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
44 <option value="date_created" selected="true">Date created</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
45 <option value="date_last_modified" selected="true">Date last modified</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
46 <option value="notes" selected="true">Notes</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
47 <option value="description" selected="true">Description</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
48 <option value="product" selected="true">Product</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
49 <option value="dbxrefs" selected="true">DBxrefs</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
50 <option value="qualifiers" selected="true">Qualifiers</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
51 </param> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
52 <param label="GAF Data" name="gaf_data" type="data" format="tabular" optional="True" help="Optional GAF Data Table. This usually comes from the CPT CACAO GAF Data Export tool. The [GAF] Columns below are ONLY available when this data is populated."/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
53 <param label="GAF Columns" type="select" name="gaf_cols" multiple="True"> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
54 <!-- GAF Specific Fields --> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
55 <option value="gaf_annotation_extension" selected="false">GAF Annotation Extension</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
56 <option value="gaf_aspect" selected="false">GAF Aspect</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
57 <option value="gaf_assigned_by" selected="false">GAF Assigned By</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
58 <option value="gaf_date" selected="false">GAF Date</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
59 <option value="gaf_db" selected="false">GAF DB</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
60 <option value="gaf_db_reference" selected="false">GAF DB Reference</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
61 <option value="gaf_evidence_code" selected="false">GAF Evidence Code</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
62 <option value="gaf_gene" selected="false">GAF Gene</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
63 <option value="gaf_go_id" selected="false">GAF GO ID</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
64 <option value="gaf_go_term" selected="false">GAF GO Term</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
65 <option value="gaf_id" selected="false">GAF ID</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
66 <option value="gaf_notes" selected="false">GAF Notes</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
67 <option value="gaf_owner" selected="false">GAF Owner</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
68 <option value="gaf_with_or_from" selected="false">GAF with_or_from</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
69 </param> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
70 <param name="checkSubfeats" label="Search sub-features for fields if gene does not define them" type="boolean" truevalue="--searchSubs" falsevalue=""/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
71 <param label="Report Format" type="select" name="report_format"> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
72 <option value="phageqc_report_annotation_table.html" selected="true">HTML Table</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
73 <option value="phageqc_report_annotation_table.tsv">Tabular (Excel Compatible) Table</option> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
74 </param> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
75 </inputs> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
76 <outputs> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
77 <data format="html" name="output"> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
78 <change_format> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
79 <when format="tabular" input="report_format" value="phageqc_report_annotation_table.tsv"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
80 </change_format> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
81 </data> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
82 </outputs> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
83 <tests> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
84 <test> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
85 <param name="reference_genome_source" value="history"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
86 <param name="genome_fasta" value="NC_001416_Table_In.fasta"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
87 <param name="gff3_data" value="NC_001416_Table_In.gff3"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
88 <param name="report_format" value="phageqc_report_annotation_table.html"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
89 <output name="output" file="PhageTable_Out.html"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
90 </test> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
91 <test> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
92 <param name="reference_genome_source" value="history"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
93 <param name="genome_fasta" value="NC_001416_Table_In.fasta"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
94 <param name="gff3_data" value="NC_001416_Table_In.gff3"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
95 <param name="report_format" value="phageqc_report_annotation_table.tsv"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
96 <output name="output" file="PhageTable_Out.tabular"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
97 </test> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
98 </tests> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
99 <help><![CDATA[ |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
100 Generate an "annotation table" of a genome, with user-configurable data columns |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
101 ]]></help> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
102 <expand macro="citations"/> |
32e011fa615c
planemo upload commit edc74553919d09dcbe27fcadf144612c1ad3a2a2
cpt
parents:
diff
changeset
|
103 </tool> |