Description Usage Arguments Author(s) References See Also Examples
This function calculates distIUPAC
based distances
within one population (x: receiver; x: donor).
1 2 | dist.xStats(tmpSEQ, x.pos = NULL, x.name = "x", dist = "IUPAC",
ncores = 1)
|
tmpSEQ |
|
x.pos |
population X positions [default: NULL] |
x.name |
population X name [default: "x"] |
dist |
distance to use, choose one model as in dist.dna or [default: "IUPAC"] |
ncores |
number of parallel cores to process pairwise distance calculation [default: 1] see rcpp_distIUPAC [default: 1] |
Kristian K Ullrich
Paradis, E., & Schliep, K. (2018). ape 5.0: an environment for modern phylogenetics and evolutionary analyses in R. Bioinformatics, 35(3), 526-528.
xStats
,
distIUPAC
,
rcpp_distIUPAC
,
dist.dna
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ##Use the 'xStats' function to handle population assignment automatically
##load sequence data
data("MySequences", package="distIUPAC")
CAS.pos<-5:34
##pairwise deletion
CAS.pairwiseDeletion.dist<-distIUPAC(as.character(MySequences[CAS.pos]))
CAS.pairwiseDeletion.xStats<-dist.xStats(
CAS.pairwiseDeletion.dist, x.name="CAS")
##global deletion
CAS.globalDeletion.dist<-distIUPAC(
as.character(globalDeletion(MySequences[CAS.pos])))
CAS.globalDeletion.xStats<-dist.xStats(
CAS.globalDeletion.dist, x.name="CAS")
##compare results
rbind(CAS.pairwiseDeletion.xStats, CAS.globalDeletion.xStats)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.