annotate SMART/galaxy/CleanTranscriptFile.xml @ 36:44d5973c188c

Uploaded
author m-zytnicki
date Tue, 30 Apr 2013 15:02:29 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
1 <tool id="CleanTranscriptFile" name="clean Transcript File">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
2 <description>Clean a transcript file so that it is useable for S-MART.</description>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
3 <command interpreter="python"> ../Java/Python/CleanTranscriptFile.py -i $formatType.inputFileName
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
4 #if $formatType.FormatInputFileName == 'gff':
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
5 -f gff
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
6 #elif $formatType.FormatInputFileName == 'gtf':
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
7 -f gtf
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
8 #elif $formatType.FormatInputFileName == 'gff3':
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
9 -f gff3
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
10 #end if
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
11 #if $optionType.type == 'Yes':
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
12 -t $optionType.value
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
13 #end if
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
14 -o $outputFile
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
15 </command>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
16
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
17 <inputs>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
18 <conditional name="formatType">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
19 <param name="FormatInputFileName" type="select" label="Input File Format">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
20 <option value="gff">gff</option>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
21 <option value="gtf">gtf</option>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
22 <option value="gff3">gff3</option>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
23 </param>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
24 <when value="gff">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
25 <param name="inputFileName" format="gff" type="data" label="Input File"/>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
26 </when>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
27 <when value="gtf">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
28 <param name="inputFileName" format="gtf" type="data" label="Input File"/>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
29 </when>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
30 <when value="gff3">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
31 <param name="inputFileName" format="gff3" type="data" label="Input File"/>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
32 </when>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
33 </conditional>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
34
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
35 <conditional name="optionType">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
36
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
37 <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)">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
38 <option value="Yes">Yes</option>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
39 <option value="No" selected="true">No</option>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
40 </param>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
41 <when value="Yes">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
42 <param name="value" type="text" value="tRNA,rRNA,ncRNA,CDS,exon"/>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
43 </when>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
44 <when value="No">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
45 </when>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
46 </conditional>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
47
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
48 </inputs>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
49
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
50
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
51 <outputs>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
52 <data name="outputFile" format="gtf">
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
53 <change_format>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
54 <when input="formatType.FormatInputFileName" value="gff" format="gff" />
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
55 <when input="formatType.FormatInputFileName" value="gff3" format="gff3" />
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
56 </change_format>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
57 </data>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
58
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
59 </outputs>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
60 <tests>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
61 <test>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
62 <param name="FormatInputFileName" value="gtf" />
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
63 <param name="inputFileName" value="genes.gtf" />
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
64 <param name="type" value="No" />
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
65 <output name="outputFile" file="exp_cleantranscriptfile_genes.gtf" />
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
66 </test>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
67 </tests>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
68
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
69 <help>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
70 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).
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
71 </help>
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
72
44d5973c188c Uploaded
m-zytnicki
parents:
diff changeset
73 </tool>