Description Usage Arguments Value References Examples
View source: R/sequenceComparison.R
A function that calculates multiple sequence alignments
1 | multipleSeqAlign(sequences, algorithm = "clustalw")
|
sequences |
A DNAStringset containing several sequences |
algorithm |
A string indicating the algorithm that user wants to use to calculate multiple sequence alignment |
Returns a MsaAAMultipleAlignment object which is the result of multiple sequence alignment
Charif D, Lobry J. 2007. “SeqinR 1.0-2: a contributed package to the R project for statistical computing devoted to biological sequences retrieval and analysis.” In Bastolla U, Porto M, Roman H, Vendruscolo M (eds.), Structural approaches to sequence evolution: Molecules, networks, populations, series Biological and Medical Physics, Biomedical Engineering, 207-232. Springer Verlag, New York.
Paradis E. & Schliep K. 2019. ape 5.0: an environment for modern phylogenetics and evolutionaryanalyses in R. Bioinformatics 35: 526-528.
U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter (2015) msa: an R package for multiple sequence alignment. Bioinformatics 31(24):3997- 9999. DOI: 10.1093/bioinformatics/btv176.
1 2 3 4 5 6 7 8 9 | # Example 1
# Create a basic msa and then plot a tree from it
library(Biostrings)
set1 <- Biostrings::DNAStringSet("ATCGATCG")
set2 <- Biostrings::DNAStringSet("ATTTTTTT")
set3 <- Biostrings::DNAStringSet("ATCGATTT")
setTotal <- union(set1, set2)
setTotal <- union(setTotal, set3)
align <- multipleSeqAlign(setTotal)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.