marcomilanesi / BITE

BITE: BioInformatics tools for everyone
19 stars 9 forks source link

bootstraped treemix show no migration event #11

Open rezakhalkhali opened 10 months ago

rezakhalkhali commented 10 months ago

9 hours ago reza ▴ 300

I run treemix with bootstraping using Treemix_bootstrap.sh (BITE R package) with one migration event. it worked without any error. Now when I want to draw the tree, the tree is drawn but without any migration event and I get the following warning message.

Warning message:
In max(e[e[, 5] == "MIG", 4]) :
  no non-missing arguments to max; returning -Inf

I have used the following commands for this analysis: ./Treemix_bootstrap.sh treemix.gz 1 8 1000 horse 100 ~/phylip-3.697/exe/consense out_bootstraped

source("treemix_boostrap.R")

source("newick.split.R")

source("plotting_funcs.R")

treemix.bootstrap(in.file = "infile_bootstraped",
                  out.file = "test",
                  phylip.file = "bootstraped_outtree.newick", nboot = 100,
                  cex=0.5, xmin = -0.005, disp = 0.001,
                  boot.legend.location = "top", xbar = 0.05)
mxt2022202059 commented 4 months ago

Hello, is this problem solved, I have only one migration event, no matter how many m is set to

marcomilanesi commented 4 months ago

Dear, how are you? Please, could you give me some more information about what you did. First, did you installed the last version of BITE? I saw you used "source" to import the function. I suggest to install the BITE package and run again your script. If you have further problems, please, let me know. Best regards