.\" 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] .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 .IP Maximum fraction of bases aligned to CDSs that are Ns in any species ( 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 .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 .TP (Required with \fB\-\-msa\-format\fR MAF) Complete reference .IP sequence for alignment (FASTA format). .HP \fB\-\-offset5\fR, \fB\-o\fR .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 .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 .IP Write human\-readable log to specified file. .HP \fB\-\-machine\-log\fR, \fB\-M\fR .IP Like \fB\-\-log\fR, but produces more concise, machine\-readable log. .HP \fB\-\-stats\fR, \fB\-S\fR .IP Write statistics on retained and discarded features to specified file. .HP \fB\-\-discards\fR, \fB\-d\fR .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.