annotate fasta2rdf/fastatordf.xml @ 9:3f4f1cd22a6a

FASTA 2 RDF code cleanup
author jjkoehorst <jasperkoehorst@gmail.com>
date Sat, 21 Feb 2015 15:38:26 +0100
parents ec73c34af97b
children 0773b11fb822
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
1 <tool id="SAPP_genome_to_ttl" name="FASTA to RDF" version="0.1">
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
2 <description></description>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
3 <command interpreter="python3">fastatordf.py '-input' '$input' '-output' '$output' '-organism' '$organism' '-ncbi_taxid' '$ncbi_taxid' '-idtag' '$identification_tag' -sourcedb SAPP
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
4 #for $index, $id in enumerate( $ids )
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
5 '-ids' '$id.id_tag'
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
6 #end for
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
7 '-id_alternative' '$input.name'
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
8 </command>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
9 <inputs>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
10 <param size="60" name="input" type="data" format="fasta,fa" label="File for annotation, file types used fasta,fa"/>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
11 <param size="60" name="organism" type="text" format="text" label="organism name" optional="false"/>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
12 <param size="60" name="ncbi_taxid" type="text" format="text" label="NCBI taxonomy ID"/>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
13 <param size="60" name="identification_tag" type="text" format="text" label="An identification tag used for RDF storage !Needs to be very unique!" optional="false"/>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
14 <repeat name="ids" title="Identification tags">
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
15 <param size="60" name="id_tag" type="text" format="text" label="An identification tag used by other consortiums"/>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
16 </repeat>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
17 </inputs>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
18
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
19 <outputs>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
20 <data format="rdf" name="output" label="genomeTTL: ${input.name}" />
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
21 </outputs>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
22
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
23 <tests>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
24 <test>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
25 <param name="input" value="test-data/NC_017117.fna"/>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
26 <output name="$output" file="NC_017117.rdf"/>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
27 <output name="$ncbi_taxid" value="634455"/>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
28 <output name="$idtag" value="Acetobacter pasteurianus IFO 3283-22"/>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
29 <output name="$organism" value="Acetobacter pasteurianus IFO 3283-22"/>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
30 </test>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
31 </tests>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
32
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
33 <help> Genome FASTA file to RDF</help>
ec73c34af97b FASTA2RDF
jjkoehorst <jasperkoehorst@gmail.com>
parents:
diff changeset
34 </tool>