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

GBIF check at genus-level doesn't work #37

Open
slambrechts opened this issue Dec 3, 2024 · 2 comments
Open

GBIF check at genus-level doesn't work #37

slambrechts opened this issue Dec 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@slambrechts
Copy link
Collaborator

The GBIF check at genus-level doesn't seem to work

genus <- as.vector(tax_table(physeq_insekp_annelida)[, "genus"])
genus <- genus[!grepl("_otu|_XX_unclassified|_unclassified|_sp\\.|\\bsp\\..*|swarm\\d+", genus)]
genus <- gsub("_", " ", genus)
genus <- unique(genus)
source(here::here("source/r/check_presence.R"))
gbif_check <- check_presence(genus)
gbif_check %>%
filter(!present) %>%
  kable(caption = "Not present according to GBIF in Europe")

because it returns genera that have been detected in Europe before:

Not present according to GBIF in Europe
present	scientific_name
FALSE	Achaeta
FALSE	Lumbricus
FALSE	Fridericia
FALSE	Cognettia
FALSE	Buchholzia
FALSE	Henlea

The below code at species level does however seem to work:

species <- as.vector(tax_table(physeq_insekp_annelida)[, "species"])
species <- species[!grepl("_otu|_XX_unclassified|_unclassified|_sp\\.|\\bsp\\..*|swarm\\d+", species)]
species <- gsub("_", " ", species)
species <- unique(species)
source(here::here("source/r/check_presence.R"))
gbif_check <- check_presence(species)
@slambrechts slambrechts added the bug Something isn't working label Dec 3, 2024
@slambrechts
Copy link
Collaborator Author

@silkedebacker kan je hier de meest recente versie van het source/r/check_presence.R script posten?

@silkedebacker
Copy link
Collaborator

check_presence.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants