annotate SMART/galaxy/CleanTranscriptFile.xml @ 50:6283667d1f34

Deleted selected files
author m-zytnicki
date Fri, 13 Dec 2013 10:42:50 -0500
parents 2c0c0a89fad7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
1 <tool id="CleanTranscriptFile" name="clean transcript file">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
2 <description>Clean a transcript file so that it is useable for S-MART.</description>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
3 <requirements>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
4 <requirement type="set_environment">PYTHONPATH</requirement>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
5 </requirements>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
6 <command interpreter="python"> ../Java/Python/CleanTranscriptFile.py -i $formatType.inputFileName
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
7 #if $formatType.FormatInputFileName == 'gff':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
8 -f gff
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
9 #elif $formatType.FormatInputFileName == 'gtf':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
10 -f gtf
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
11 #elif $formatType.FormatInputFileName == 'gff3':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
12 -f gff3
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
13 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
14 #if $optionType.type == 'Yes':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
15 -t $optionType.value
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
16 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
17 -o $outputFile
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
18 </command>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
19
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
20 <inputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
21 <conditional name="formatType">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
22 <param name="FormatInputFileName" type="select" label="Input File Format">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
23 <option value="gff">gff</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
24 <option value="gtf">gtf</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
25 <option value="gff3">gff3</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
26 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
27 <when value="gff">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
28 <param name="inputFileName" format="gff" type="data" label="Input File"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
29 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
30 <when value="gtf">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
31 <param name="inputFileName" format="gtf" type="data" label="Input File"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
32 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
33 <when value="gff3">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
34 <param name="inputFileName" format="gff3" type="data" label="Input File"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
35 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
36 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
37
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
38 <conditional name="optionType">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
39
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
40 <param name="type" type="select" label="You can choose the tag that you are interested in, like tRNA,rRNA,ncRNA,CDS,exon, etc." help="Name of the types you want to keep in GFF/GTF (list separated by commas)">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
41 <option value="Yes">Yes</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
42 <option value="No" selected="true">No</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
43 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
44 <when value="Yes">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
45 <param name="value" type="text" value="tRNA,rRNA,ncRNA,CDS,exon"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
46 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
47 <when value="No">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
48 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
49 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
50
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
51 </inputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
52
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
53
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
54 <outputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
55 <data name="outputFile" format="gtf">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
56 <change_format>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
57 <when input="formatType.FormatInputFileName" value="gtf" format="gtf" />
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
58 <when input="formatType.FormatInputFileName" value="gff" format="gff" />
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
59 <when input="formatType.FormatInputFileName" value="gff3" format="gff3" />
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
60 </change_format>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
61 </data>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
62
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
63 </outputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
64 <tests>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
65 <test>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
66 <param name="FormatInputFileName" value="gtf" />
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
67 <param name="inputFileName" value="genes.gtf" />
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
68 <param name="type" value="No" />
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
69 <output name="outputFile" file="exp_cleantranscriptfile_genes.gtf" />
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
70 </test>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
71 </tests>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
72
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
73 <help>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
74 A GFF/GTF file (please consult http://www.sequenceontology.org/gff3.shtml to know more about the GFF3 format, and http://mblab.wustl.edu/GTF22.html for the GTF format) may contain different sources of information: chromosome size, genes, transcripts, etc. S-MART mostly works on transcripts. This scripts filters the input file to keep the information you really want, based on the feature (3rd column).
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
75 </help>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
76
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
77 </tool>