Skip to content

Search returns odd records #49

@pozsgaig

Description

@pozsgaig

Hi,
when I search for parasites of the fall armyworm, other Lepidoptera species appear among the target taxa (e.g. Helicoverpa zea). Also, when I run a second search on the vector of species resulted from the first search (thus, these become the source taxa now), in the result data frame species which I have not been queried appear.

first_round<-get_interactions_by_taxa(sourcetaxon = "Spodoptera frugiperda", interactiontype = "hasParasite")
first_round[grep("Lepidoptera", first_round$target_taxon_path), ]

In this case, the problem may be with the viruses since there seem to be no standard of reporting their names and some automated taxon search may pick up the Lepidoptera taxonomy if the word "virus" is not clearly included in the name - just guessing though.

second_round<-get_interactions_by_taxa(sourcetaxon = unique(first_round$target_taxon_name), interactiontype = "parasiteOf", otherkeys = list("limit" = 10000000, "skip" = 0))

second_round[second_round$source_taxon_name == "Chaetogaedia crebra",] # Does exist

first_round[first_round$target_taxon_name == "Chaetogaedia crebra",] # Does not exist
first_round[first_round$source_taxon_name == "Chaetogaedia crebra",] # Does not exist either

BUT
first_round[first_round$target_taxon_name == "Tachinidae",] # Does exist

So, I believe, this is not a bug, the hits are merely there because they are under a higher taxon which was included in the search. Is there, however, any way to limit the results to the exact terms only?

R version 4.2.1 (2022-06-23 ucrt) rglobi 0.2.28
Thanks,
Gabor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions