Description Usage Arguments Details Value Author(s)
Split alignments into individual files.
1 2 | splitAlignment(file, output, split_by = NULL, format = "fasta",
colw = 10000, checkAmbiguity = TRUE, checkInternalGaps = FALSE, ...)
|
file |
path and file name of the alignment (all the seq need to be the same length) |
output |
folder where the individual sequences will be stored |
split_by |
If |
format |
format of the alignment, for now only fasta |
colw |
width of columns, same as in
|
checkAmbiguity |
should the presence of ambiguities in the sequences be tested? (default=TRUE). If ambiguities are found, returns a warning. |
checkInternalGaps |
should the presence of internal gaps be tested? (default=FALSE). If internal gaps are found, returns a warning. |
... |
additional parameters to be passed to ape:::write.dna |
This function takes an alignment and put each sequence into its individual file that is named the same as the name of the sequence. This function also overwrites the output (it doesn't check that the file created don't already exist).
TRUE if the function succeed, mostly used for its side effect (create files with individual sequences).
Francois Michonneau
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.