Skip to content
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

Error in worms_downstream #941

Open
Mogzzzzz opened this issue Dec 17, 2024 · 5 comments
Open

Error in worms_downstream #941

Mogzzzzz opened this issue Dec 17, 2024 · 5 comments
Labels

Comments

@Mogzzzzz
Copy link

Mogzzzzz commented Dec 17, 2024

Hey everyone,

I've just started a massive nucleotidic analyses (metabarcoding) for marine fauna.

I would like to build a databank with all taxonomic children of Metazoa (AphiaID = 2), to do this Im using worms_dowstream with the following command :

metazoa_marine_children <- worms_downstream(id = 2, downto = "species", marine_only = TRUE)

But I only get an error message which is :

Error in vapply(x$rank, function(z) which_rank(z, zoo = zoo), 1) :
values must be length 1,
but FUN(X[[284]]) result is length 0

Can someone help to understand why when I want all of these data it doesn't work, but if I reduce for example to a choosen family and all her species it works?

@bart-v
Copy link

bart-v commented Dec 17, 2024

The WoRMS API is not build for getting children in rather small batches, for 200k+ records.
Better to ask for a dump

@Mogzzzzz
Copy link
Author

What do u mean by asking for a dump?

@Mogzzzzz
Copy link
Author

oh yeah u mean a complete dowload copy from worrms! ok thanks!

@bart-v
Copy link

bart-v commented Dec 18, 2024

Correct

@zachary-foster
Copy link
Collaborator

zachary-foster commented Feb 3, 2025

Your command seems to just hang for me, at least 10 minutes without doing anything. I see that you are trying to download everything by using the code for "Animalia". As bart-v says, downloading the entire database would probably be a better way to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants