1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4.
.TH CLEAN_GENES "1" "May 2016" "clean_genes 1.4" "User Commands"
.SH NAME
clean_genes \- Given a GFF describing a set of genes and a corresponding
.SH DESCRIPTION
Given a GFF describing a set of genes and a corresponding
multiple alignment, output a new GFF with only those
genes that meet certain "cleanliness" criteria. The
coordinates in the GFF are assumed to correspond to
the reference sequence in the alignment, which is
assumed to be the first one listed. Default behavior
is simply to require that all annotated start/stop codons and
splice sites are valid in the reference sequence (GT\-AG,
GC\-AG, and AT\-AC splice sites are allowed). This can
be used with an "alignment" consisting of a single
sequence to filter out incorrect annotations. Options
are available to impose additional criteria as well,
mostly having to do with conservation across species
(see the '\-\-conserved' option in particular).
.SH SYNOPSIS
clean_genes [options] <gff_fname> <msa_fname>
.SH OPTIONS
.HP
\fB\-\-start\fR, \fB\-s\fR
.IP
Require conserved start codons (all species)
.HP
\fB\-\-stop\fR, \fB\-t\fR
.IP
Require conserved stop codons (all species)
.HP
\fB\-\-splice\fR, \fB\-l\fR
.TP
Require conserved splice sites (all species).
By default,
.IP
only GT\-AG, GC\-AG, and AT\-AC splice sites are allowed (see also
\fB\-\-splice\-strict\fR)
.HP
\fB\-\-fshift\fR, \fB\-f\fR
.TP
Require that no frame\-shift gap is present in any species.
Frame
.TP
shifts are evaluated with respect to the reference sequence.
Gaps
.IP
that have non\-multiple\-of\-three lengths are allowed if
compensatory gaps occur nearby (see source code for details).
.HP
\fB\-\-nonsense\fR, \fB\-n\fR
.IP
Require that no premature stop codon is present in any species.
.HP
\fB\-\-conserved\fR, \fB\-c\fR
.IP
Implies \fB\-\-start\fR, \fB\-\-stop\fR, \fB\-\-splice\fR, \fB\-\-fshift\fR, and \fB\-\-nonsense\fR.
Recommended option for cross\-species analysis.
.HP
\fB\-\-N\-limit\fR, \fB\-N\fR <f>
.IP
Maximum fraction of bases aligned to CDSs that are Ns in any
species (<f> must be between 0 and 1). Default is 0.05. Set to 1
to allow any number of Ns.
.HP
\fB\-\-clean\-gaps\fR, \fB\-e\fR
.TP
Require all cds gaps to be multiples of three in length.
Can be
.IP
used with \fB\-\-conserved\fR.
.HP
\fB\-\-indel\-strict\fR, \fB\-I\fR
.TP
Implies \fB\-\-clean_gaps\fR, usually used with \fB\-\-conserved\fR.
Prohibits
.IP
overlapping cds gaps in different sequences, gaps near cds
boundaries, and gaps in the reference sequence within and between
flanking features (splice sites, etc.; see code for details).
Designed for use in training a phylo\-HMM with an indel model.
.HP
\fB\-\-splice\-strict\fR, \fB\-C\fR
.TP
Implies \fB\-\-splice\fR.
Allow only GT\-AG canonical splice sites. Useful
.IP
when training a gene finder with a simple model for splice sites.
.HP
\fB\-\-groupby\fR, \fB\-g\fR <tag>
.IP
Group features according to specified tag (default
"transcript_id"). If any feature within a group fails, the
entire group will be discarded. By choosing to group features
according to different criteria, you can make the program
"clean" the data set at different levels. For example, to
clean at the level of individual exons, add a tag like
"exon_id" to indicate exons (see the program "refeature"),
and then invoke clean_genes with "\-\-groupby exon_id".
.HP
\fB\-\-msa\-format\fR, \fB\-i\fR FASTA|PHYLIP|MPM|MAF|SS
.TP
Alignment file format.
Default is to guess format from file
.IP
contents.
.HP
\fB\-\-refseq\fR, \fB\-r\fR <seqfile.fa>
.TP
(Required with \fB\-\-msa\-format\fR MAF)
Complete reference
.IP
sequence for alignment (FASTA format).
.HP
\fB\-\-offset5\fR, \fB\-o\fR <n>
.TP
(Default 0)
Offset of canonical "GT" with respect to boundary
.TP
on *intron side* of annotated 5' splice sites.
Useful with
.IP
annotations that describe a window around the canonical splice site.
.HP
\fB\-\-offset3\fR, \fB\-p\fR <n>
.TP
(Default 0)
Offset of canonical "AG" with respect to boundary
.IP
on intron side of annotated 3' splice sites.
.HP
\fB\-\-log\fR, \fB\-L\fR <fname>
.IP
Write human\-readable log to specified file.
.HP
\fB\-\-machine\-log\fR, \fB\-M\fR <fname>
.IP
Like \fB\-\-log\fR, but produces more concise, machine\-readable log.
.HP
\fB\-\-stats\fR, \fB\-S\fR <fname>
.IP
Write statistics on retained and discarded features to specified file.
.HP
\fB\-\-discards\fR, \fB\-d\fR <fname>
.IP
Write discarded features to specified file.
.HP
\fB\-\-no\-output\fR, \fB\-x\fR
.TP
Suppress output of "cleaned" features to stdout.
Useful if only
.IP
log file and/or stats are of interest.
.HP
\fB\-\-help\fR, \fB\-h\fR
.IP
Print this help message.
.PP
NOTES: Feature types are defined as follows.
.TP
coding exon
<\-> "CDS"
.TP
start codon
<\-> "start_codon"
.TP
stop codon
<\-> "stop_codon"
.IP
5' splice site <\-> "5'splice"
3' splice site <\-> "3'splice"
.IP
In addition, splice sites in UTR can be separately designated as
"5'splice_utr" and "3'splice_utr". Errors in these sites will be
given a different code in the log files, which can be useful for
tracking purposes.
.IP
If evaluation is done at the level of individual exons (see
\fB\-\-groupby\fR), then splice sites are considered independently
rather than in the context of introns. As a result, the exons flanking
a GT\-AC or AT\-AG intron might (misleadingly) be considered "clean".
.IP
With \fB\-\-fshift\fR and \fB\-\-nonsense\fR, it is possible for entries
to pass through that have stop codons in the frame of the
*reference* sequence, although they do not have any in their
own frame. Use \fB\-\-clean\-gaps\fR instead to guarantee that no stop
codons occur in any sequence in the frame of the reference
sequence.
|