# Data from PANTHER
path <- system.file("tree.tree", package="aphylo")
ptree <- read_panther(path)
# Extracting the species
sp <- gsub(".+[:]|[|].+", "" , ptree$tree$tip.label)
# Imputing duplications
imputate_duplications(ptree$tree, species = sp)
Run the code above in your browser using DataLab