Convert treedata to CFMatrix, storage result to CFmatrix file and return a datafram
treedata2cf(treedata, filename = "test.CFMatrix")
a dataframe and a file
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)