dir <- system.file("extdata", package = "phylotools")
setwd(dir)
## Supermatrix with "rbcla","matk","trnH-psbA"
supermat1 <- supermat(rbcl = "rbcla.phy", matk = "matK.phy",
trn = c("trn1.phy", "trn2.phy","trn3.phy","trn4.phy"))
write.mat(supermat1, "result1.phy")
## Supermatrix with"matk","trnH-psbA"
supermat2 <- supermat(matk = "matK.phy",
trn = c("trn1.phy", "trn2.phy","trn3.phy","trn4.phy"))
write.mat(supermat2, "result2.phy")
## Supermatrix with "rbcla","matk"
supermat3 <- supermat(matk = "matK.phy", rbcl = "rbcla.phy")
write.mat(supermat3, "result3.phy")
## Supermatrix with "rbcla","trnH-psbA"
supermat4 <- supermat(rbcl = "rbcla.phy",
trn = c("trn1.phy", "trn2.phy","trn3.phy","trn4.phy"))
write.mat(supermat4, "result4.phy")
## Delete the results
unlink(c("result1.phy", "result2.phy", "result3.phy", "result4.phy"))
Run the code above in your browser using DataLab