R/solutions.R

Defines functions GetHowManyTrees_solution GetAlignment_solution

# Some basic tests to make sure things are running. 

GetHowManyTrees_solution <- function(ntaxa=10) {
	#ape can compute this for us.
	result <- howmanytrees(ntaxa)
	return(result)	
}

GetAlignment_solution <- function() {
	#Let's see where mafft is installed
	print(system("which mafft"))
	data(woodmouse)
	result <- mafft(woodmouse)
	return(result)
}
PhyloMeth/getting-started-tdavi113 documentation built on May 6, 2019, 12:23 p.m.