annotate gffread.xml @ 23:954376f8db01 draft

Uploaded
author enios
date Wed, 26 May 2021 16:15:44 +0000
parents d928c656a8f3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
d928c656a8f3 Uploaded
enios
parents:
diff changeset
1 <tool id="gffread" name="gffreadB" version="@VERSION@.0">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
2 <description>Filters and/or converts GFF3/GTF2 records</description>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
3 <requirements>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
4 <container type="docker">343307676715.dkr.ecr.eu-central-1.amazonaws.com/galaxy:gffread</container>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
5 </requirements>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
6 <macros>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
7 <token name="@VERSION@">0.11.6</token>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
8 <xml name="fasta_output_select">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
9 <param name="fa_outputs" type="select" display="checkboxes" multiple="true" label="Select fasta outputs">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
10 <option value="-w exons.fa">fasta file with spliced exons for each GFF transcript (-w exons.fa)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
11 <option value="-x cds.fa">fasta file with spliced CDS for each GFF transcript (-x cds.fa)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
12 <option value="-y pep.fa">protein fasta file with the translation of CDS for each record (-y pep.fa)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
13 <option value="-W">for each fasta: record the exon coordinates projected onto the spliced sequence (-W)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
14 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
15 </xml>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
16 <xml name="ref_filtering_select">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
17 <param name="ref_filtering" type="select" display="checkboxes" multiple="true" label="reference based filters">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
18 <option value="-N">discard multi-exon mRNAs that have any intron with a non-canonical splice site consensus, i.e. not GT-AG, GC-AG or AT-AC (-N)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
19 <option value="-J">discard any mRNAs that either lack initial START codon or the terminal STOP codon, or have an in-frame stop codon (-J)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
20 <option value="-V">discard any mRNAs with CDS having in-frame stop codons (-V)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
21 <option value="-H">check and adjust the starting CDS phase if the original phase leads to a translation with an in-frame stop codon (-H with -V)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
22 <!-- gffread bug: B not in missing from param to the arg parser
d928c656a8f3 Uploaded
enios
parents:
diff changeset
23 <option value="-B">single-exon transcripts are also checked on the opposite strand (-B with -V)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
24 -->
d928c656a8f3 Uploaded
enios
parents:
diff changeset
25 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
26 </xml>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
27 <xml name="trackname">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
28 <param name="tname" type="text" value="" optional="true" label="Trackname to use in the second column of each GFF output line" help="(-t track_name}">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
29 <validator type="regex">\w+</validator>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
30 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
31 </xml>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
32 <xml name="merge_opts">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
33 <option value="-K">also collapse shorter, fully contained transcripts with fewer introns than the container (-K)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
34 <option value="-Q">remove the containment restriction: multi-exon transcripts will be collapsed if just their introns match, while single-exon transcripts can partially overlap 80% (-Q)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
35 <option value="-d dupinfo">output collapsing info (-d dupinfo)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
36 </xml>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
37 <xml name="cluster_opts">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
38 <option value="--force-exons"> make sure that the lowest level GFF features are printed as 'exon' features (--force-exons)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
39 <option value="-Z">merge close exons into a single exon (for intron size &lt; 4) (-Z)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
40 </xml>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
41 <xml name="merge_opt_sel">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
42 <param name="merge_options" type="select" display="checkboxes" multiple="true" label="Merge options">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
43 <expand macro="cluster_opts" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
44 <expand macro="merge_opts" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
45 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
46 </xml>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
47 <xml name="cluster_opt_sel">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
48 <param name="merge_options" type="select" display="checkboxes" multiple="true" label="Cluster options">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
49 <expand macro="cluster_opts" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
50 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
51 </xml>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
52 </macros>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
53 <command detect_errors="aggressive">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
54 <![CDATA[
d928c656a8f3 Uploaded
enios
parents:
diff changeset
55 #if $reference_genome.source == 'history':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
56 ln -s '$reference_genome.genome_fasta' genomeref.fa &&
d928c656a8f3 Uploaded
enios
parents:
diff changeset
57 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
58 gffread '$input'
d928c656a8f3 Uploaded
enios
parents:
diff changeset
59 #if $reference_genome.source == 'cached':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
60 -g '${reference_genome.fasta_indexes.fields.path}'
d928c656a8f3 Uploaded
enios
parents:
diff changeset
61 #if $reference_genome.ref_filtering and str($reference_genome.ref_filtering) != '':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
62 #echo ' '.join(str($reference_genome.ref_filtering).split(','))
d928c656a8f3 Uploaded
enios
parents:
diff changeset
63 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
64 #elif $reference_genome.source == 'history':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
65 -g genomeref.fa
d928c656a8f3 Uploaded
enios
parents:
diff changeset
66 #if $reference_genome.ref_filtering and str($reference_genome.ref_filtering) != '':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
67 #echo ' '.join(str($reference_genome.ref_filtering).split(','))
d928c656a8f3 Uploaded
enios
parents:
diff changeset
68 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
69 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
70 #if $filtering and str($filtering) != '':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
71 #echo " "
d928c656a8f3 Uploaded
enios
parents:
diff changeset
72 #echo ' '.join(str($filtering).split(','))
d928c656a8f3 Uploaded
enios
parents:
diff changeset
73 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
74 #if $maxintron and $maxintron > 0:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
75 -i $maxintron
d928c656a8f3 Uploaded
enios
parents:
diff changeset
76 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
77 #if $region.region_filter == 'filter':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
78 -r '$region.range' $region.discard_partial
d928c656a8f3 Uploaded
enios
parents:
diff changeset
79 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
80 #if $merging.merge_sel != 'none':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
81 $merging.merge_cmd
d928c656a8f3 Uploaded
enios
parents:
diff changeset
82 #if $merging.merge_options:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
83 #echo ' '.join(str($merging.merge_options).split(','))
d928c656a8f3 Uploaded
enios
parents:
diff changeset
84 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
85 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
86 #if $chr_replace:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
87 -m '$chr_replace'
d928c656a8f3 Uploaded
enios
parents:
diff changeset
88 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
89
d928c656a8f3 Uploaded
enios
parents:
diff changeset
90 $full_gff_attribute_preservation
d928c656a8f3 Uploaded
enios
parents:
diff changeset
91 $decode_url
d928c656a8f3 Uploaded
enios
parents:
diff changeset
92 $expose
d928c656a8f3 Uploaded
enios
parents:
diff changeset
93
d928c656a8f3 Uploaded
enios
parents:
diff changeset
94 ##
d928c656a8f3 Uploaded
enios
parents:
diff changeset
95 ## Although documented, does not appear to be used in the gffread code
d928c656a8f3 Uploaded
enios
parents:
diff changeset
96 ## #if $seq_info:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
97 ## -A -s "$seq_info"
d928c656a8f3 Uploaded
enios
parents:
diff changeset
98 ## #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
99 ##
d928c656a8f3 Uploaded
enios
parents:
diff changeset
100 ## outputs
d928c656a8f3 Uploaded
enios
parents:
diff changeset
101 #if $reference_genome.source != 'none':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
102 #if $reference_genome.fa_outputs and str($reference_genome.fa_outputs) != '':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
103 #echo ' ' + ' '.join(str($reference_genome.fa_outputs).split(','))
d928c656a8f3 Uploaded
enios
parents:
diff changeset
104 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
105 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
106 #if $gffs.gff_fmt != 'none':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
107 #if $gffs.tname:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
108 -t '$gffs.tname'
d928c656a8f3 Uploaded
enios
parents:
diff changeset
109 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
110 #if $gffs.gff_fmt == 'gff':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
111 #if $input.datatype.file_ext == 'gft':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
112 $gffs.ensembl
d928c656a8f3 Uploaded
enios
parents:
diff changeset
113 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
114 $gffs.output_cmd
d928c656a8f3 Uploaded
enios
parents:
diff changeset
115 #elif $gffs.gff_fmt == 'gtf':
d928c656a8f3 Uploaded
enios
parents:
diff changeset
116 $gffs.output_cmd
d928c656a8f3 Uploaded
enios
parents:
diff changeset
117 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
118 #end if
d928c656a8f3 Uploaded
enios
parents:
diff changeset
119 ]]>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
120 </command>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
121 <inputs>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
122 <param name="input" type="data" format="gff3,gtf" label="Input GFF3 or GTF feature file"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
123 <!-- filtering -->
d928c656a8f3 Uploaded
enios
parents:
diff changeset
124 <param name="filtering" type="select" display="checkboxes" multiple="true" label="filters">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
125 <option value="-U">discard single-exon transcripts (-U)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
126 <option value="-C">coding only: discard mRNAs that have no CDS feature (-C)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
127 <option value="-G">only parse additional exon attributes from the first exon and move them to the mRNA level (useful for GTF input) (-G)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
128 <option value="-O">process also non-transcript GFF records (by default non-transcript records are ignored) (-O)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
129 <option value="--no-pseudo">filter out records matching the 'pseudo' keyword (--no-pseudo)</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
130 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
131 <conditional name="region">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
132 <param name="region_filter" type="select" label="Filter by genome region">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
133 <option value="none">No</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
134 <option value="filter">Yes</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
135 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
136 <when value="none"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
137 <when value="filter">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
138 <param name="range" type="text" value="" label="Only show transcripts overlapping coordinate range">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
139 <help><![CDATA[
d928c656a8f3 Uploaded
enios
parents:
diff changeset
140 (-r [['strand']'chr':]'start'..'end') <br>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
141 examples: <br>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
142 1000..500000 <br>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
143 chr1:1000..500000 <br>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
144 +chr1:1000..500000 <br>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
145 -chr1:1000..500000
d928c656a8f3 Uploaded
enios
parents:
diff changeset
146 ]]>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
147 </help>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
148 <validator type="regex">(([+-])?(\w+:))?\d+\.\.\d+</validator>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
149 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
150 <param name="discard_partial" type="boolean" truevalue="-R" falsevalue="" checked="false"
d928c656a8f3 Uploaded
enios
parents:
diff changeset
151 label="Discard all transcripts that are not fully contained within the given range" help="(-R)"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
152 </when>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
153 </conditional>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
154 <param name="maxintron" type="integer" value="" optional="true" min="0" label="Filter out transcipts with large introns"
d928c656a8f3 Uploaded
enios
parents:
diff changeset
155 help="If set, discard transcripts having an intron larger (-i max_intron)"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
156 <param name="chr_replace" type="data" format="tabular" optional="true" label="Replace reference sequence names" >
d928c656a8f3 Uploaded
enios
parents:
diff changeset
157 <help><![CDATA[(-m chr_replace) <br>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
158 chr_replace is a reference sequence replacement table consisting of 2 columns: "original_ref_ID" "new_ref_ID"<br>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
159 It is useful for switching between Ensembl and UCSC naming conventions <br>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
160 NOTE: GFF records on reference sequences that are not found among the "original_ref_ID" entries in this file will be filtered out
d928c656a8f3 Uploaded
enios
parents:
diff changeset
161 ]]>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
162 </help>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
163 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
164
d928c656a8f3 Uploaded
enios
parents:
diff changeset
165 <!-- Although documented, does not appear to be used in the gffread code
d928c656a8f3 Uploaded
enios
parents:
diff changeset
166 <param name="seq_info" type="data" format="tabular" optional="true" label="Use the description field as the value for a 'descr' attribute to the GFF record">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
167 <help>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
168 (-s seq_info.fsize -A) useful with mRNA/EST/protein mappings &lt;br&gt;
d928c656a8f3 Uploaded
enios
parents:
diff changeset
169 seq_info input file is a 3 column tab-delimited file providing this info for each of the mapped sequences: &lt;br&gt;
d928c656a8f3 Uploaded
enios
parents:
diff changeset
170 "seq-name" "seq-length" "seq-description" &lt;br&gt;
d928c656a8f3 Uploaded
enios
parents:
diff changeset
171 </help>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
172 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
173 -->
d928c656a8f3 Uploaded
enios
parents:
diff changeset
174
d928c656a8f3 Uploaded
enios
parents:
diff changeset
175 <!-- merging -->
d928c656a8f3 Uploaded
enios
parents:
diff changeset
176 <conditional name="merging">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
177 <param name="merge_sel" type="select" label="Transcript merging" help="(-M/--merge or --cluster-only)">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
178 <option value="none">none</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
179 <option value="merge">merge: cluster the input transcripts into loci, collapsing matching transcripts</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
180 <option value="cluster">cluster-only: merge but without collapsing matching transcripts</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
181 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
182 <when value="none"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
183 <when value="merge">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
184 <param name="merge_cmd" type="hidden" value="--merge"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
185 <expand macro="merge_opt_sel" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
186 </when>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
187 <when value="cluster">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
188 <param name="merge_cmd" type="hidden" value="--cluster-only"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
189 <expand macro="cluster_opt_sel" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
190 </when>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
191 </conditional>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
192 <!-- reference sequence file -->
d928c656a8f3 Uploaded
enios
parents:
diff changeset
193 <!-- Error: -g option is required for options -w, -x, -y, -V, -N, -M -->
d928c656a8f3 Uploaded
enios
parents:
diff changeset
194 <conditional name="reference_genome">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
195 <param name="source" type="select" label="Reference Genome" help="(-g genome.fasta) NOTE: Required for fasta outputs">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
196 <option value="none">none</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
197 <option value="cached"></option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
198 <option value="history">From your history</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
199 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
200 <when value="none">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
201 </when>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
202 <when value="cached">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
203 <param name="fasta_indexes" type="select" label="Source FASTA Sequence">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
204 <options from_data_table="all_fasta"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
205 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
206 <expand macro="ref_filtering_select" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
207 <expand macro="fasta_output_select" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
208 </when>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
209 <when value="history">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
210 <param name="genome_fasta" type="data" format="fasta" label="Genome Reference Fasta"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
211 <expand macro="ref_filtering_select" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
212 <expand macro="fasta_output_select" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
213 </when>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
214 </conditional>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
215
d928c656a8f3 Uploaded
enios
parents:
diff changeset
216 <!-- outputs -->
d928c656a8f3 Uploaded
enios
parents:
diff changeset
217 <conditional name="gffs">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
218 <param name="gff_fmt" type="select" label="Feature File Output" help="(-o output.gff3|output.gtf)">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
219 <option value="none">none</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
220 <option value="gff">GFF</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
221 <option value="gtf">GTF</option>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
222 </param>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
223 <when value="none">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
224 </when>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
225 <when value="gff">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
226 <param name="output_cmd" type="hidden" value="-o output.gff3"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
227 <param name="ensembl" type="boolean" truevalue="-L" falsevalue="" checked="false" label="Ensembl GTF to GFF3 conversion" help="(-L)"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
228 <expand macro="trackname" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
229 </when>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
230 <when value="gtf">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
231 <param name="output_cmd" type="hidden" value="-T -o output.gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
232 <expand macro="trackname" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
233 </when>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
234 </conditional>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
235
d928c656a8f3 Uploaded
enios
parents:
diff changeset
236 <param name="full_gff_attribute_preservation" type="boolean" truevalue="-F" falsevalue="" checked="false"
d928c656a8f3 Uploaded
enios
parents:
diff changeset
237 label="full GFF attribute preservation (all attributes are shown)" help="(-F)"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
238 <param name="decode_url" type="boolean" truevalue="-D" falsevalue="" checked="false"
d928c656a8f3 Uploaded
enios
parents:
diff changeset
239 label="decode url encoded characters within attributes" help="(-D)"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
240 <param name="expose" type="boolean" truevalue="-E" falsevalue="" checked="false"
d928c656a8f3 Uploaded
enios
parents:
diff changeset
241 label="warn about duplicate transcript IDs and other potential problems with the given GFF/GTF records" help="(-E)"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
242
d928c656a8f3 Uploaded
enios
parents:
diff changeset
243 </inputs>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
244 <outputs>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
245 <data name="output_gff" format="gff3" metadata_source="input" label="${tool.name} on ${on_string}: gff3" from_work_dir="output.gff3">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
246 <filter>gffs['gff_fmt'] == 'gff'</filter>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
247 </data>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
248 <data name="output_gtf" format="gtf" metadata_source="input" label="${tool.name} on ${on_string}: gtf" from_work_dir="output.gtf">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
249 <filter>gffs['gff_fmt'] == 'gtf'</filter>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
250 </data>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
251 <data name="output_exons" format="fasta" label="${tool.name} on ${on_string}: exons.fa" from_work_dir="exons.fa">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
252 <filter>'fa_outputs' in reference_genome and str(reference_genome['fa_outputs']).find('exons.fa') > 0 </filter>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
253 </data>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
254 <data name="output_cds" format="fasta" label="${tool.name} on ${on_string}: cds.fa" from_work_dir="cds.fa">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
255 <filter>'fa_outputs' in reference_genome and str(reference_genome['fa_outputs']).find('cds.fa') > 0</filter>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
256 </data>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
257 <data name="output_pep" format="fasta" label="${tool.name} on ${on_string}: pep.fa" from_work_dir="pep.fa">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
258 <filter>'fa_outputs' in reference_genome and str(reference_genome['fa_outputs']).find('pep.fa') > 0</filter>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
259 </data>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
260 <data name="output_dupinfo" format="txt" label="${tool.name} on ${on_string}: dupinfo" from_work_dir="dupinfo">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
261 <filter>'merge_options' in merging and merging['merge_options'].find('dupinfo') > 0</filter>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
262 </data>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
263 </outputs>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
264 <tests>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
265 <test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
266 <param name="input" ftype="gtf" value="Homo_sapiens.GRCh37_19.71.gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
267 <param name="gff_fmt" value="gff"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
268 <output name="output_gff" file="Homo_sapiens.GRCh37_19.71.gff3" ftype="gff3" lines_diff="2" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
269 </test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
270 <test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
271 <param name="input" ftype="gtf" value="ecoli-k12.gff3"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
272 <param name="gff_fmt" value="gff"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
273 <param name="full_gff_attribute_preservation" value="-F"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
274 <output name="output_gff" file="ecoli-k12.processed.gff3" ftype="gff3" lines_diff="2" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
275 </test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
276 <test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
277 <param name="input" ftype="gtf" value="Homo_sapiens.GRCh37_19.71.gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
278 <param name="filtering" value="--no-pseudo"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
279 <param name="gff_fmt" value="gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
280 <output name="output_gtf">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
281 <assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
282 <not_has_text text="pseudo" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
283 </assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
284 </output>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
285 </test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
286 <test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
287 <param name="input" ftype="gtf" value="Homo_sapiens.GRCh37_19.71.gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
288 <param name="region_filter" value="filter"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
289 <param name="range" value="19:496500..504965"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
290 <param name="gff_fmt" value="gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
291 <output name="output_gtf">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
292 <assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
293 <has_text text="ENST00000587541" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
294 <has_text text="ENST00000382683" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
295 </assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
296 </output>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
297 </test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
298 <test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
299 <param name="input" ftype="gtf" value="Homo_sapiens.GRCh37_19.71.gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
300 <param name="region_filter" value="filter"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
301 <param name="range" value="19:496500..504965"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
302 <param name="discard_partial" value="true"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
303 <param name="gff_fmt" value="gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
304 <output name="output_gtf">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
305 <assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
306 <not_has_text text="ENST00000587541" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
307 <has_text text="ENST00000382683" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
308 </assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
309 </output>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
310 </test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
311 <test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
312 <param name="input" ftype="gtf" value="Homo_sapiens.GRCh37_19.71.gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
313 <param name="filtering" value="-C"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
314 <param name="region_filter" value="filter"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
315 <param name="range" value="19:496500..504965"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
316 <param name="gff_fmt" value="gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
317 <output name="output_gtf">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
318 <assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
319 <not_has_text text="ENST00000587541" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
320 <has_text text="ENST00000382683" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
321 </assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
322 </output>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
323 </test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
324 <test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
325 <param name="input" ftype="gtf" value="Homo_sapiens.GRCh37_19.71.gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
326 <param name="source" value="history"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
327 <param name="genome_fasta" ftype="fasta" value="Homo_sapiens.GRCh37.71.dna.chromosome.19.fa"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
328 <param name="fa_outputs" value="-w exons.fa,-x cds.fa,-y pep.fa"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
329 <param name="region_filter" value="filter"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
330 <param name="range" value="19:496500..504965"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
331 <param name="gff_fmt" value="gtf"/>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
332 <output name="output_gtf">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
333 <assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
334 <has_text text="ENST00000587541" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
335 <has_text text="ENST00000382683" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
336 </assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
337 </output>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
338 <output name="output_exons">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
339 <assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
340 <has_text text="ENST00000346144 CDS=47-934" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
341 <has_text text="CTATTTAAGCGGCTTCCCCGCGGCCTCGGGACAGAGGGGACTGAGCATGGATTTCGGACTGGCCCTCCTG" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
342 </assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
343 </output>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
344 <output name="output_cds">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
345 <assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
346 <has_text text="ENST00000346144" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
347 <has_text text="ATGGATTTCGGACTGGCCCTCCTGCTGGCGGGGCTTCTGGGGCTCCTCCTCGGCCAGTCCCTCCAGGTGA" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
348 </assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
349 </output>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
350 <output name="output_pep">
d928c656a8f3 Uploaded
enios
parents:
diff changeset
351 <assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
352 <has_text text="ENST00000346144" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
353 <has_text text="MDFGLALLLAGLLGLLLGQSLQVKPLQVEPPEPVVAVALGASRQLTCRLACADRGASVQWRGLDTSLGAV" />
d928c656a8f3 Uploaded
enios
parents:
diff changeset
354 </assert_contents>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
355 </output>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
356 </test>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
357
d928c656a8f3 Uploaded
enios
parents:
diff changeset
358 </tests>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
359 <help>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
360 <![CDATA[
d928c656a8f3 Uploaded
enios
parents:
diff changeset
361 **gffread Filters and/or converts GFF3/GTF2 records**
d928c656a8f3 Uploaded
enios
parents:
diff changeset
362
d928c656a8f3 Uploaded
enios
parents:
diff changeset
363 The gffread command is documented with the stringtie_ package.
d928c656a8f3 Uploaded
enios
parents:
diff changeset
364
d928c656a8f3 Uploaded
enios
parents:
diff changeset
365 .. _stringtie: http://ccb.jhu.edu/software/stringtie/gff.shtml#gffread
d928c656a8f3 Uploaded
enios
parents:
diff changeset
366
d928c656a8f3 Uploaded
enios
parents:
diff changeset
367
d928c656a8f3 Uploaded
enios
parents:
diff changeset
368 gffread v0.11.4. Usage: ::
d928c656a8f3 Uploaded
enios
parents:
diff changeset
369
d928c656a8f3 Uploaded
enios
parents:
diff changeset
370 gffread <input_gff> [-g <genomic_seqs_fasta> | <dir>][-s <seq_info.fsize>]
d928c656a8f3 Uploaded
enios
parents:
diff changeset
371 [-o <outfile>] [-t <trackname>] [-r [[<strand>]<chr>:]<start>..<end> [-R]]
d928c656a8f3 Uploaded
enios
parents:
diff changeset
372 [-CTVNJMKQAFPGUBHZWTOLE] [-w <exons.fa>] [-x <cds.fa>] [-y <tr_cds.fa>]
d928c656a8f3 Uploaded
enios
parents:
diff changeset
373 [-i <maxintron>] [--bed] [--table <attrlist>] [--sort-by <refseq_list.txt>]
d928c656a8f3 Uploaded
enios
parents:
diff changeset
374
d928c656a8f3 Uploaded
enios
parents:
diff changeset
375 Filter, convert or cluster GFF/GTF/BED records, extract the sequence of
d928c656a8f3 Uploaded
enios
parents:
diff changeset
376 transcripts (exon or CDS) and more.
d928c656a8f3 Uploaded
enios
parents:
diff changeset
377 By default (i.e. without -O) only transcripts are processed, discarding any
d928c656a8f3 Uploaded
enios
parents:
diff changeset
378 other non-transcript features. Default output is a simplified GFF3 with only
d928c656a8f3 Uploaded
enios
parents:
diff changeset
379 the basic attributes.
d928c656a8f3 Uploaded
enios
parents:
diff changeset
380
d928c656a8f3 Uploaded
enios
parents:
diff changeset
381 <input_gff> is a GFF file, use '-' for stdin
d928c656a8f3 Uploaded
enios
parents:
diff changeset
382
d928c656a8f3 Uploaded
enios
parents:
diff changeset
383 Options:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
384
d928c656a8f3 Uploaded
enios
parents:
diff changeset
385 -i discard transcripts having an intron larger than <maxintron>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
386 -l discard transcripts shorter than <minlen> bases
d928c656a8f3 Uploaded
enios
parents:
diff changeset
387 -r only show transcripts overlapping coordinate range <start>..<end>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
388 (on chromosome/contig <chr>, strand <strand> if provided)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
389 -R for -r option, discard all transcripts that are not fully
d928c656a8f3 Uploaded
enios
parents:
diff changeset
390 contained within the given range
d928c656a8f3 Uploaded
enios
parents:
diff changeset
391 -U discard single-exon transcripts
d928c656a8f3 Uploaded
enios
parents:
diff changeset
392 -C coding only: discard mRNAs that have no CDS features
d928c656a8f3 Uploaded
enios
parents:
diff changeset
393 --nc non-coding only: discard mRNAs that have CDS features
d928c656a8f3 Uploaded
enios
parents:
diff changeset
394 --ignore-locus : discard locus features and attributes found in the input
d928c656a8f3 Uploaded
enios
parents:
diff changeset
395 -A use the description field from <seq_info.fsize> and add it
d928c656a8f3 Uploaded
enios
parents:
diff changeset
396 as the value for a 'descr' attribute to the GFF record
d928c656a8f3 Uploaded
enios
parents:
diff changeset
397 -s <seq_info.fsize> is a tab-delimited file providing this info
d928c656a8f3 Uploaded
enios
parents:
diff changeset
398 for each of the mapped sequences:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
399 <seq-name> <seq-length> <seq-description>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
400 (useful for -A option with mRNA/EST/protein mappings)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
401
d928c656a8f3 Uploaded
enios
parents:
diff changeset
402 Sorting: (by default, chromosomes are kept in the order they were found)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
403 --sort-alpha : chromosomes (reference sequences) are sorted alphabetically
d928c656a8f3 Uploaded
enios
parents:
diff changeset
404 --sort-by : sort the reference sequences by the order in which their
d928c656a8f3 Uploaded
enios
parents:
diff changeset
405 names are given in the <refseq.lst> file
d928c656a8f3 Uploaded
enios
parents:
diff changeset
406
d928c656a8f3 Uploaded
enios
parents:
diff changeset
407 Misc options:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
408 -F preserve all GFF attributes (for non-exon features)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
409 --keep-exon-attrs : for -F option, do not attempt to reduce redundant
d928c656a8f3 Uploaded
enios
parents:
diff changeset
410 exon/CDS attributes
d928c656a8f3 Uploaded
enios
parents:
diff changeset
411 -G do not keep exon attributes, move them to the transcript feature
d928c656a8f3 Uploaded
enios
parents:
diff changeset
412 (for GFF3 output)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
413 --keep-genes : in transcript-only mode (default), also preserve gene records
d928c656a8f3 Uploaded
enios
parents:
diff changeset
414 --keep-comments: for GFF3 input/output, try to preserve comments
d928c656a8f3 Uploaded
enios
parents:
diff changeset
415 -O process other non-transcript GFF records (by default non-transcript
d928c656a8f3 Uploaded
enios
parents:
diff changeset
416 records are ignored)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
417 -V discard any mRNAs with CDS having in-frame stop codons (requires -g)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
418 -H for -V option, check and adjust the starting CDS phase
d928c656a8f3 Uploaded
enios
parents:
diff changeset
419 if the original phase leads to a translation with an
d928c656a8f3 Uploaded
enios
parents:
diff changeset
420 in-frame stop codon
d928c656a8f3 Uploaded
enios
parents:
diff changeset
421 -B for -V option, single-exon transcripts are also checked on the
d928c656a8f3 Uploaded
enios
parents:
diff changeset
422 opposite strand (requires -g)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
423 -P add transcript level GFF attributes about the coding status of each
d928c656a8f3 Uploaded
enios
parents:
diff changeset
424 transcript, including partialness or in-frame stop codons (requires -g)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
425 --add-hasCDS : add a "hasCDS" attribute with value "true" for transcripts
d928c656a8f3 Uploaded
enios
parents:
diff changeset
426 that have CDS features
d928c656a8f3 Uploaded
enios
parents:
diff changeset
427 --adj-stop stop codon adjustment: enables -P and performs automatic
d928c656a8f3 Uploaded
enios
parents:
diff changeset
428 adjustment of the CDS stop coordinate if premature or downstream
d928c656a8f3 Uploaded
enios
parents:
diff changeset
429 -N discard multi-exon mRNAs that have any intron with a non-canonical
d928c656a8f3 Uploaded
enios
parents:
diff changeset
430 splice site consensus (i.e. not GT-AG, GC-AG or AT-AC)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
431 -J discard any mRNAs that either lack initial START codon
d928c656a8f3 Uploaded
enios
parents:
diff changeset
432 or the terminal STOP codon, or have an in-frame stop codon
d928c656a8f3 Uploaded
enios
parents:
diff changeset
433 (i.e. only print mRNAs with a complete CDS)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
434 --no-pseudo: filter out records matching the 'pseudo' keyword
d928c656a8f3 Uploaded
enios
parents:
diff changeset
435 --in-bed: input should be parsed as BED format (automatic if the input
d928c656a8f3 Uploaded
enios
parents:
diff changeset
436 filename ends with .bed*)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
437 --in-tlf: input GFF-like one-line-per-transcript format without exon/CDS
d928c656a8f3 Uploaded
enios
parents:
diff changeset
438 features (see --tlf option below); automatic if the input
d928c656a8f3 Uploaded
enios
parents:
diff changeset
439 filename ends with .tlf)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
440
d928c656a8f3 Uploaded
enios
parents:
diff changeset
441 Clustering:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
442 -M/--merge : cluster the input transcripts into loci, discarding
d928c656a8f3 Uploaded
enios
parents:
diff changeset
443 "duplicated" transcripts (those with the same exact introns
d928c656a8f3 Uploaded
enios
parents:
diff changeset
444 and fully contained or equal boundaries)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
445 -d <dupinfo> : for -M option, write duplication info to file <dupinfo>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
446 --cluster-only: same as -M/--merge but without discarding any of the
d928c656a8f3 Uploaded
enios
parents:
diff changeset
447 "duplicate" transcripts, only create "locus" features
d928c656a8f3 Uploaded
enios
parents:
diff changeset
448 -K for -M option: also discard as redundant the shorter, fully contained
d928c656a8f3 Uploaded
enios
parents:
diff changeset
449 transcripts (intron chains matching a part of the container)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
450 -Q for -M option, no longer require boundary containment when assessing
d928c656a8f3 Uploaded
enios
parents:
diff changeset
451 redundancy (can be combined with -K); only introns have to match for
d928c656a8f3 Uploaded
enios
parents:
diff changeset
452 multi-exon transcripts, and >=80% overlap for single-exon transcripts
d928c656a8f3 Uploaded
enios
parents:
diff changeset
453 -Y for -M option, enforce -Q but also discard overlapping single-exon
d928c656a8f3 Uploaded
enios
parents:
diff changeset
454 transcripts, even on the opposite strand (can be combined with -K)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
455
d928c656a8f3 Uploaded
enios
parents:
diff changeset
456 Output options:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
457 --force-exons: make sure that the lowest level GFF features are considered
d928c656a8f3 Uploaded
enios
parents:
diff changeset
458 "exon" features
d928c656a8f3 Uploaded
enios
parents:
diff changeset
459 --gene2exon: for single-line genes not parenting any transcripts, add an
d928c656a8f3 Uploaded
enios
parents:
diff changeset
460 exon feature spanning the entire gene (treat it as a transcript)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
461 --t-adopt: try to find a parent gene overlapping/containing a transcript
d928c656a8f3 Uploaded
enios
parents:
diff changeset
462 that does not have any explicit gene Parent
d928c656a8f3 Uploaded
enios
parents:
diff changeset
463 -D decode url encoded characters within attributes
d928c656a8f3 Uploaded
enios
parents:
diff changeset
464 -Z merge very close exons into a single exon (when intron size<4)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
465 -g full path to a multi-fasta file with the genomic sequences
d928c656a8f3 Uploaded
enios
parents:
diff changeset
466 for all input mappings, OR a directory with single-fasta files
d928c656a8f3 Uploaded
enios
parents:
diff changeset
467 (one per genomic sequence, with file names matching sequence names)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
468 -w write a fasta file with spliced exons for each GFF transcript
d928c656a8f3 Uploaded
enios
parents:
diff changeset
469 -x write a fasta file with spliced CDS for each GFF transcript
d928c656a8f3 Uploaded
enios
parents:
diff changeset
470 -y write a protein fasta file with the translation of CDS for each record
d928c656a8f3 Uploaded
enios
parents:
diff changeset
471 -W for -w and -x options, write in the FASTA defline the exon
d928c656a8f3 Uploaded
enios
parents:
diff changeset
472 coordinates projected onto the spliced sequence;
d928c656a8f3 Uploaded
enios
parents:
diff changeset
473 for -y option, write transcript attributes in the FASTA defline
d928c656a8f3 Uploaded
enios
parents:
diff changeset
474 -S for -y option, use '*' instead of '.' as stop codon translation
d928c656a8f3 Uploaded
enios
parents:
diff changeset
475 -L Ensembl GTF to GFF3 conversion (implies -F; should be used with -m)
d928c656a8f3 Uploaded
enios
parents:
diff changeset
476 -m <chr_replace> is a name mapping table for converting reference
d928c656a8f3 Uploaded
enios
parents:
diff changeset
477 sequence names, having this 2-column format:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
478 <original_ref_ID> <new_ref_ID>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
479 WARNING: all GFF records on reference sequences whose original IDs
d928c656a8f3 Uploaded
enios
parents:
diff changeset
480 are not found in the 1st column of this table will be discarded!
d928c656a8f3 Uploaded
enios
parents:
diff changeset
481 -t use <trackname> in the 2nd column of each GFF/GTF output line
d928c656a8f3 Uploaded
enios
parents:
diff changeset
482 -o write the records into <outfile> instead of stdout
d928c656a8f3 Uploaded
enios
parents:
diff changeset
483 -T main output will be GTF instead of GFF3
d928c656a8f3 Uploaded
enios
parents:
diff changeset
484 --bed output records in BED format instead of default GFF3
d928c656a8f3 Uploaded
enios
parents:
diff changeset
485 --tlf output "transcript line format" which is like GFF
d928c656a8f3 Uploaded
enios
parents:
diff changeset
486 but exons, CDS features and related data are stored as GFF
d928c656a8f3 Uploaded
enios
parents:
diff changeset
487 attributes in the transcript feature line, like this:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
488 exoncount=N;exons=<exons>;CDSphase=<N>;CDS=<CDScoords>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
489 <exons> is a comma-delimited list of exon_start-exon_end coordinates;
d928c656a8f3 Uploaded
enios
parents:
diff changeset
490 <CDScoords> is CDS_start:CDS_end coordinates or a list like <exons>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
491 --table output a simple tab delimited format instead of GFF, with columns
d928c656a8f3 Uploaded
enios
parents:
diff changeset
492 having the values of GFF attributes given in <attrlist>; special
d928c656a8f3 Uploaded
enios
parents:
diff changeset
493 pseudo-attributes (prefixed by @) are recognized:
d928c656a8f3 Uploaded
enios
parents:
diff changeset
494 @chr, @start, @end, @strand, @numexons, @exons, @cds, @covlen, @cdslen
d928c656a8f3 Uploaded
enios
parents:
diff changeset
495 -v,-E expose (warn about) duplicate transcript IDs and other potential
d928c656a8f3 Uploaded
enios
parents:
diff changeset
496 problems with the given GFF/GTF records
d928c656a8f3 Uploaded
enios
parents:
diff changeset
497 ]]>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
498 </help>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
499 <citations>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
500 <citation type="doi">10.1038/nbt.1621</citation>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
501 </citations>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
502 </tool>
d928c656a8f3 Uploaded
enios
parents:
diff changeset
503