Description Usage Arguments Details Value Author(s) Examples
Concenate marker alignements to generate a single alignment.
1 2 3 |
pattern |
character string to identify aligned files in folder |
path |
path where the alignment files are to be found |
output |
file name (with full path) for the concatenated file |
input.format |
format of the input DNA alignment (to be passed to ape:::read.dna) |
partition |
if NULL no partition file is created, otherwise a character string indicating the file name where to write the partitions |
partition.format |
which format should be used to create the partition file (raxml or nexus) |
create.conc |
if TRUE create the concatenated file, if FALSE useful for testing (dry run) or to create partition file |
standardize |
not needed if alignments created by ‘mergeSeq’. Otherwise the alignments names are standardized for each of the individual markers by generating empty sequences. |
drop |
a character vector indicating the sequences that need to be removed from the output |
... |
further arguments to be passed to write.dna for the output file |
Given a series of files generated by ‘mergeSeq’, this function creates an alignment from these files. WARNING: the files for the independent loci are assumed to be created using the function mergeSeq, meaning that the loci is indicated in 3rd position, separated by an hyphen e.g. 20120808-101010-COI.fas
This function is used for its side effect of creating an alignment from a set of alignemnts (marker based). It can also create a partition file that can added at the end of the alignment to specify where each marker starts and ends.
Francois Michonneau
1 2 3 4 5 6 7 | ## Not run:
concatenateAlignments(pattern="^20121017-112755.+afa$", path="/tmp/seq",
output="/tmp/seq/20121017.impatiens.fas",
partition="/tmp/seq/20121017.impatiens.part",
partition.format="nexus", colsep="", colw=10000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.