Convert treedata to CFMatrix, storage result to CFmatrix file and return a datafram

treedata2cf(treedata, filename = "test.CFMatrix")

Arguments

treedata

a treedata format dataframe

filename

file name to save CFMatrix, default is `test.CFMatrix`

Value

a dataframe and a file

Examples

CFmatrix_file = system.file("extdata", "ground_truth_tree.CFMatrix", package = "converTree")
tre_dat <- cf2treedata(CFmatrix_file)
#> Tree data bone seems ok
cf_mat<-treedata2cf(tre_dat)
filename="test.CFMatrix"
write.table(cf_mat,file = filename,quote = FALSE,sep = "\t",row.names = FALSE)