.TH "esl\-alimanip" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual" .SH NAME esl\-alimanip \- manipulate a multiple sequence alignment .SH SYNOPSIS .B esl\-alimanip [\fIoptions\fR] .I msafile .SH DESCRIPTION .B esl\-alimanip can manipulate the multiple sequence alignment(s) in .I msafile in various ways. Options exist to remove specific sequences, reorder sequences, designate reference columns using Stockholm "#=GC RF" markup, and add annotation that numbers columns. .PP The alignments can be of protein or DNA/RNA sequences. All alignments in the same .I msafile must be either protein or DNA/RNA. The alphabet will be autodetected unless one of the options .B \-\-amino, .B \-\-dna, or .B \-\-rna are given. .SH OPTIONS .TP .B \-h Print brief help; includes version number and summary of all options, including expert options. .TP .BI \-o " " Save the resulting, modified alignment in Stockholm format to a file .I . The default is to write it to standard output. .TP .BI \-\-informat " " Assert that .I msafile is in alignment format .IR , bypassing format autodetection. Common choices for .I include: .BR stockholm , .BR a2m , .BR afa , .BR psiblast , .BR clustal , .BR phylip . For more information, and for codes for some less common formats, see main documentation. The string .I is case-insensitive (\fBa2m\fR or \fBA2M\fR both work). .TP .BI \-\-outformat " " Write the output in alignment format .IR . Common choices for .I include: .BR stockholm , .BR a2m , .BR afa , .BR psiblast , .BR clustal , .BR phylip . The string .I is case-insensitive (\fBa2m\fR or \fBA2M\fR both work). Default is .BR stockholm . .TP .B \-\-devhelp Print help, as with .B \-h, but also include undocumented developer options. These options are not listed below, are under development or experimental, and are not guaranteed to even work correctly. Use developer options at your own risk. The only resources for understanding what they actually do are the brief one-line description printed when .B \-\-devhelp is enabled, and the source code. .SH EXPERT OPTIONS .TP .BI \-\-lnfract " " Remove any sequences with length less than .I fraction the length of the median length sequence in the alignment. .TP .BI \-\-lxfract " " Remove any sequences with length more than .I fraction the length of the median length sequence in the alignment. .TP .BI \-\-lmin " " Remove any sequences with length less than .I residues. .TP .BI \-\-lmax " " Remove any sequences with length more than .I residues. .TP .BI \-\-rfnfract " " Remove any sequences with nongap RF length less than .I fraction the nongap RF length of the alignment. .TP .BI \-\-detrunc " " Remove any sequences that have all gaps in the first .I non-gap #=GC RF columns or the last .I non-gap #=GC RF columns. .TP .BI \-\-xambig " " Remove any sequences that has more than .I ambiguous (degenerate) residues. .TP .BI \-\-seq\-r " " Remove any sequences with names listed in file .I . Sequence names listed in .I can be separated by tabs, new lines, or spaces. The file must be in Stockholm format for this option to work. .TP .BI \-\-seq\-k " " Keep only sequences with names listed in file .I . Sequence names listed in .I can be separated by tabs, new lines, or spaces. By default, the kept sequences will remain in the original order they appeared in .I msafile, but the order from .I will be used if the .B \-\-k\-reorder option is enabled. The file must be in Stockholm format for this option to work. .TP .B \-\-small With .B \-\-seq\-k or .B \-\-seq\-r, operate in small memory mode. The alignment(s) will not be stored in memory, thus .B \-\-seq\-k and .B \-\-seq\-r will be able to work on very large alignments regardless of the amount of available RAM. The alignment file must be in Pfam format and .B \-\-informat pfam and one of .B \-\-amino, .B \-\-dna, or .B \-\-rna must be given as well. .TP .B \-\-k\-reorder With .BI \-\-seq\-k " ", reorder the kept sequences in the output alignment to the order from the list file .I . .TP .BI \-\-seq\-ins " " Keep only sequences that have at least 1 inserted residue after nongap RF position .I . .TP .BI \-\-seq\-ni " " With .B \-\-seq\-ins require at least .I inserted residues in a sequence for it to be kept. .TP .BI \-\-seq\-xi " " With .B \-\-seq\-ins allow at most .I inserted residues in a sequence for it to be kept. .TP .BI \-\-trim " " File .I is an unaligned FASTA file containing truncated versions of each sequence in the .I msafile. Trim the sequences in the alignment to match their truncated versions in .I . If the alignment output format is Stockholm (the default output format), all per-column (GC) and per-residue (GR) annotation will be removed from the alignment when .B \-\-trim is used. However, if .B \-\-t\-keeprf is also used, the reference annotation (GC RF) will be kept. .TP .B \-\-t\-keeprf Specify that the 'trimmed' alignment maintain the original reference (GC RF) annotation. Only works in combination with .B \-\-trim. .TP .BI \-\-minpp " " Replace all residues in the alignments for which the posterior probability annotation (#=GR PP) is less than .I with gaps. The PP annotation for these residues is also converted to gaps. .I must be greater than 0.0 and less than or equal to 0.95. .TP .BI \-\-tree " " Reorder sequences by tree order. Perform single linkage clustering on the sequences in the alignment based on sequence identity given the alignment to define a 'tree' of the sequences. The sequences in the alignment are reordered according to the tree, which groups similar sequences together. The tree is output in Newick format to .I . .TP .BI \-\-reorder " " Reorder sequences to the order listed in file .I . Each sequence in the alignment must be listed in .I . Use .B \-\-k\-reorder to reorder only a subset of sequences to a subset alignment file. The file must be in Stockholm format for this option to work. .TP .BI \-\-mask2rf " " Read in the 'mask' file .I and use it to define new #=GC RF annotation for the alignment. .I must be a single line, with exactly .I or .I characters, either the full alignment length or the number of nongap #=GC RF characters, respectively. Each character must be either a '1' or a '0'. The new #=GC RF markup will contain an 'x' for each column that is a '1' in lane mask file, and a '.' for each column that is a '0'. If the mask is of length .I then it is interpreted as applying to only nongap RF characters in the existing RF annotation, all gap RF characters will remain gaps and nongap RF characters will be redefined as above. .TP .BI \-\-m\-keeprf With .B \-\-mask2rf, do not overwrite existing nongap RF characters that are included by the input mask as 'x', leave them as the character they are. .TP .BI \-\-num\-all Add annotation to the alignment numbering all of the columns in the alignment. .TP .BI \-\-num\-rf Add annotation to the alignment numbering the non-gap (non '.') #=GC RF columns of the alignment. .TP .BI \-\-rm\-gc " " Remove certain types of #=GC annotation from the alignment. .I "" must be one of: .BR RF , .BR SS_cons , .BR SA_cons , .BR PP_cons . .TP .BI \-\-sindi Annotate individual secondary structures for each sequence by imposing the consensus secondary structure defined by the #=GC SS_cons annotation. .TP .BI \-\-post2pp Update Infernal's cmalign 0.72-1.0.2 posterior probability "POST" annotation to "PP" annotation, which is read by other miniapps, including .B esl\-alimask and .B esl\-alistat. .TP .B \-\-amino Assert that the .I msafile contains protein sequences. .TP .B \-\-dna Assert that the .I msafile contains DNA sequences. .TP .B \-\-rna Assert that the .I msafile contains RNA sequences. .SH SEE ALSO .nf @EASEL_URL@ .fi .SH COPYRIGHT .nf @EASEL_COPYRIGHT@ @EASEL_LICENSE@ .fi .SH AUTHOR .nf http://eddylab.org .fi