Open MareikeJaniak opened 2 months ago
Hello Mareike,
I'm looking into the problem. It seems that something has changed in the way PhylteR formats the outlier file. Just to be sure, could you share your outliers file ? (or at least the 100 first lines if your file is to big).
Best, Theo
Hi Theo,
Sure thing! Here it is: phylter_R_output.txt
I ended up writing a little loop to prune the trees in R, based on the code you published along with the paper:
PHY <- results$Final$Outliers
k <- unique(PHY[,1])
prunedTrees <- trees
for (i in 1:length(trees)) {
if (i %in% k) {
tips2remove<-PHY[PHY[,1]==i,2]
prunedTrees[[i]] <- drop.tip(trees[[i]], tips2remove)
}
}
Best, Mareike
Hi!
Thanks for this great new tool, I'm currently exploring it.
I'm running into an issue with the tree pruning step when using the docker image. When running the command with
-p TRUE
, the output seems normal but no pruned trees are output :When trying to run the pruning step separately, the following error occurs:
Is it possible to share the commands used in
prune_tree_outliers.R
, so I can run them directly in R? Is it just a loop that drops the outlier tips from the respective trees?Thanks for your help!
Best, Mareike