Giter Site home page Giter Site logo

avoid child taxa with get_interactions_by_taxa + get_int_matrix 'eatenBy' doesn't work about globalbioticinteractions.github.io HOT 2 CLOSED

PierreENOlivier avatar PierreENOlivier commented on July 30, 2024
avoid child taxa with get_interactions_by_taxa + get_int_matrix 'eatenBy' doesn't work

from globalbioticinteractions.github.io.

Comments (2)

jhpoelen avatar jhpoelen commented on July 30, 2024

@PierreOcean thanks for reporting the two issue.

re: avoid child taxa - if I understand your question, you are looking to use behavior documented here https://github.com/jhpoelen/eol-globi-data/wiki/API#excluding-child-taxa through https://github.com/ropensci/rglobi using get_interactions_by_taxa .

Sample of how to search for only exact taxon matches -

install.packages('rglobi')
rglobi::get_interactions_by_taxa(sourcetaxon = 'Aves', showfield = c('source_taxon_name'), otherkeys = list(limit=5, excludeChildTaxa='true'))

Observed result on 17 Aug 2017 :

 source_taxon_name
1              Aves
2              Aves
3              Aves
4              Aves
5              Aves

When omitting the excludeChildTaxa key using

rglobi::get_interactions_by_taxa(sourcetaxon = 'Aves', showfield = c('source_taxon_name'), otherkeys = list(limit=5))

The result below was observed:

  source_taxon_name
1             Gavia
2             Gavia
3             Gavia
4             Gavia
5             Gavia

Does this provide the behavior you were looking for? Curious to hear your thoughts!

As far as the second issue related to get_interaction_matrix, please open a separate issue in order to avoid mixing the different separate concerns. If you have troubles doing so, I'd be happy to do it for you.

from globalbioticinteractions.github.io.

jhpoelen avatar jhpoelen commented on July 30, 2024

@PierreOcean closing stale issue. I am assuming the issue has been resolved. If not, please comment/re-open the issue.

from globalbioticinteractions.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.