-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix phylomatic_local on Windows #17
Comments
Ok! waiting for a solution @sckott Thanks again! |
Hello @sckott! I am trying to use phylomatic_local() and installed msys. But the "Error: awk is missing, install it first" still pops up. I wonder if I need to set an environmental variable or something to let R know gawk is installed. Sincerely David |
@aeltonbg and @johnroxton sorry for the delay on this, I think we finally have a solution. we started a new pkg https://github.com/ropensci/phylocomr that is an R client for Phylocom that includes Phylocom itself, and should work across operating systems. to try the new phylomatic local setup, install this pkg like
which will install you need the let me know if that works for you |
hi @sckott I installed the package and it appears to work. However, it seems I need to download a megatree first to build a phylogeny from a taxa list, is that right? |
see Seems like we can allow user to pass in their own tree. i'll add that. the |
but this is within the brranching pkg, not with phylocomr. using the ph_phylomatic() function from phylocomr, with phylo="R20120829" as an argument, the function crashes. |
sorry, i forgot to say use |
which uses the |
works! thank you! |
but note that the fxn name will likely change back to just |
hello @sckott |
@johnroxton can you include or attach here or send to me what taxa and tree you're using |
keep in mind that phylomatic web interface is a different set of code than phylomatic in phylocom. the web interface is written in awk while the phylocom implementation is in C and the inputs parameters are slightly different between them |
I used the R20120829 tree. Here is a link to a txt-file containing the species I tried |
I get library(brranching)
taxa <- readLines("taxa.txt")
phylomatic_local2(taxa, storedtree = "R20120829")
#> preparing names...
#> processing with phylomatic...
#> NOTE: 2 taxa not matched:
#> acrocladium_sp.1
#> arthropteris_orientalis
#>
#> Phylogenetic tree with 228 tips and 68 internal nodes.
#>
#> Tip labels:
#> acanthaceae_sp.1, acanthopale_laxiflora, adhatoda_engleriana, asystasia_gangetica, asystasia_laticapsula, asystasia_mysorensis, ...
#> Node labels:
#> euphyllophyte, magnoliales_to_asterales, poales_to_asterales, , , , ...
#>
#> Rooted; includes branch lengths. |
i'll test on a windows machine soon to see if it only happens there |
Hello @sckott and @johnroxton , Now I am not working in the project with phylomatic, but I still interested in the results. After upgrade to the new version and using library(brranching), I tried to insert my data using phylomatic_local2: I tried with different data: My data set has more than 11000 species. I had the error:
I try with this two types of data: Thanks!!! |
Hey @sckott I was thinking, and could be good that you test this real data set using MAC or linux! The data have all species in Brazilian Savanna biome, including an Gminosperm as ancestral group! I don´t know if the data is corrected set to use in R. But I believed that was. Thanks, best regards! |
thanks @aeltonbg I'll have a look |
Hi @sckott in my case, there must be some error in the return of the function values. Interestingly, when stopping calculations because the systems appears to be hanging, it still outputs (probably correctly) the names of the species not included. |
I traced down the error and in my case it lies within the Your error is caused by the wrong taxa input format. Try This works for me, or at least causes the function to hang because of the bug with the character maximum on Windows systems. |
I think is not this! I tried to input the data as character and the error was the same! See the code, I was exactly converting the data to character. Yet, I used the command readLines as well, and the same error occurred! Best regards, Waiting for a solution!!!! |
@aeltonbg to phylomatic_local2(taxa = Cerrado$V1,storedtree = "R20120829") |
I tried it now? See the same error!!
I believe that is the limit of character! Although I tested with 61 species and had the same error!! |
If you use the last file you provided (taxa_Savanna.txt) and use taxNames<-readLines("taxa_Savanna.txt") what happens with phylomatic_local2(taxa=taxNames,storedtree="R20120829") |
the error is coming from looking into it |
@aeltonbg reinstall and try again, your example now works for me make sure to set |
which |
@sckott out <- phylocomr::ph_phylomatic(taxa = dat_, phylo = tree, to out <- suppressWarnings( And this function returns a string of maximum 8095 characters on my system. I googled this a bit and found some information on it, but you may know more about that. |
@johnroxton thanks for that. so the error is with the same data from this #17 (comment) ? |
Hey @sckott I will reinstall and try again here! To reinstall I must use the command devtools::install_github("ropensci/brranching@phylocom-pkg") Will it works? Or I need to download the package directly is github? Thanks again |
@aeltonbg yes, that's right. run that in R. |
If the answer is YES! @sckott Here we are again! I tested, and the answer is the same! Here we had all command lines and files that I used: First with pure species names: Like Caryocar brasilienses ....
Second with complete taxa names, like caryocaraceae/caryocaraceae/caryocar_brasilienses ...
The files is shared in the link! Thanks again |
@aeltonbg Did you remember to restart your R session after installing the new package version? What does |
Hi @sckott See the results and version! The error continue library(brranching)
|
Okay, I'll have to look at it on a windows machine. I'll try to get to that soon |
some progress - I can at least reproduce the error you get |
made some progress but now getting down to some error that's again only happening on windows that I can't get an error message for, so not sure what's going on yet. asking phylocom/phylocom#25 about it |
Thanks for coming back to that! Did you find a way to circumvent the truncation problem in Windows? I'd really like to test if I get the same problems you found (new thread 25) |
@johnroxton are you sure the string isn't longer. like if you write it to a file, and look at it like that, e.g,. |
@sckott yes. it's always 8095 characters long. However, I found the following error messages when stripping the |
@johnroxton right, that's the same error i'm getting i think, opened an issue in the |
I was wondering if it has something to do with what R help tells about the system() command: [...]Output lines of more than 8095 bytes will be split[...] (accessed by typing |
I don't understand it either! Hoping to sort it out soon |
still no response over there, pinged him again |
In the meanwhile I found a paper doi:10.1093/jpe/rtv047 where they constructed an updated phylogeny for plants from the Zanne et al. 2014 paper and also provided an R script for tree creation. Worked for me, although extremely slow (took 3 hours to run the script for 1300 spp.) |
@johnroxton Sorry about the slow response - still haven't sorted this out - the phylocom maintainer said he couldn't reproduce the problem phylocom/phylocom#25 (comment) |
@sckott Thank you anyway for your effort. It's a pitty it doesn't run smoothly on Windows machines. For me, I found I can use the script I mentioned to create a phylogenetic tree that works ok. |
@sckott tnks for try! I will to analyse using the same method of @johnroxton ! Regards. |
from #13
The text was updated successfully, but these errors were encountered: