This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how can I keep tips of my accession number list in tree by ape pakage? keep.tip() , dorp.tip()

I've got a list of accession numbers and a tree file bac120.tree form gtdb How can I fix this tree to only keep tips according to my accession numbers?

I only know how to drop it but have no idea how to keep tips that I need

bac_tree <- drop.tip(bac_tree,as.character(GCA_file$accession))
drop.tip trees phylogenetic ape keep.tip

0 answers

No answers yet.

Log in to answer this question.