#
# Simple Toy example:
#
s <- read.alignment(File = system.file("sequences/test.phylip", package = "seqinr"), format = "phylip")
kaks(s)
#
# Check numeric results on an simple test example:
#
data(AnoukResult)
Anouk <- read.alignment(File = system.file("sequences/Anouk.fasta", package = "seqinr"), format = "fasta")
if( ! all.equal(kaks(Anouk), AnoukResult) ) {
warning("Poor numeric results with Anouk test file")
} else {
print("Results are OK with Anouk test file")
}
Run the code above in your browser using DataLab