-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Invalid Strata object #10
Comments
@champ52018 Thanks for the reproducible report! The problem here is that Armillaria cepistipes is not in the UniProt database. This is a real bug though, since require('phylostratr')
tid<-'47426'
strata=uniprot_strata(tid, from = 5) %>%
strata_apply(f=diverse_subtree,n=2,weights=uniprot_weight_by_ref()) %>%
use_recommended_prokaryotes() %>%
add_taxa(c('4932', '9606')) %>%
uniprot_fill_strata()
strata@data$faa[[tid]] <- '/path/to/your/file.faa' Let me know if this works for you. |
@arendsee Thank you so much for your reply! I tried again using the latest version of pylostratr (BMC Release (https://github.com/arendsee/phylostratr/releases/tag/0.2.0) but I got the same error. It blows up again. I am copying the steps I followed so that I can explain better:
Error in is_valid_strata(strata) : Any help would be highly appreciated! Thanks again! |
Ah, you are downloading the last tagged release, not the most recent one. Try installing like so: devtools::install_github("arendsee/phylostratr") That will retrieve the very latest version. |
Hi, at first I downloaded and installed using:
The second time, after seeing your message I did using
|
The command install.packages("phylostratr_v_0.2.0_bmc_release.tar.gz", repos=NULL) installs the old version, you should use the version I just committed to github. You can get that through |
Hi I did that as well. It gives the same problem. |
Can you show me the output of |
@champ52018 Did you find a solution to the problem? |
tid<-'47426'
strata=uniprot_strata(tid, from = 2) %>% strata_apply(f= diverse_subtree,n=5,weights=uniprot_weight_by_ref()) %>% use_recommended_prokaryotes() %>% add_taxa(c('4932', '9606')) %>% uniprot_fill_strata()
#it shows the following error
Error in is_valid_strata(strata) :
Invalid Strata object, the focal species '47426' is not found in the tree
May I know what might be the issue? I checked the organism 'A.cepistipes'; it exist in NCBI taxonomy but, the program could not identify it. Please help me solve the issue.
Any help would be appreciated! Thanks
The text was updated successfully, but these errors were encountered: