Description Usage Arguments Details Value Author(s)
Standardize the lengths of the sequences in a FASTA file by adding gaps (or other characters) at the end.
1 2 | completeSeqWithGaps(file, output, format = "fasta", colsep = "",
gaps = "-", ...)
|
file |
input file in the FASTA format or other format that can be read by ape:::read.dna |
output |
path and name file for the output. |
format |
format fo the input file, to be passed to ape:::read.dna |
colsep |
a character used to separate the columns |
gaps |
character to be as gap |
... |
further arguments to be passed to ape:::write.dna to format the output file. |
This function takes an alignment in which the sequences are of different lengths (for instance, if 2 alignments are concatenated manually), and standardizes the lengths by adding gaps at the end of the sequences. If you want the output file to be aligned, you need to make sure that the sequences are otherwise aligned (they only differ by some gaps at their extremities).
TRUE. This function is intended to be use for its side effect which create a new alignment file with standardized sequence lengths.
Francois Michonneau
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.