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

Inclusion of Child trait in REST API #1541

Open
ljwh2 opened this issue Jan 22, 2025 · 0 comments
Open

Inclusion of Child trait in REST API #1541

ljwh2 opened this issue Jan 22, 2025 · 0 comments
Assignees

Comments

@ljwh2
Copy link
Contributor

ljwh2 commented Jan 22, 2025

As a developer, we require a Rest API feature that allows the inclusion or exclusion of entities (associations, and studies) belonging to child traits in the data retrieved from the association and studies endpoints

This will require that we add a url parameter show_child_trait which can either have a value of yes or no

For the Association Endpoint it might be something as this

http://gwas-snoopy:8087/gwas/rest/api/v2/associations?efoTrait=headache&show_child_trait=yes

This will require prefetching the association and studies record for all child traits of every Trait in the catalog

The prefetched data will be stored in Solr or Oracle View for fast retrieval.

For Example for trait "Parkinson disease", while indexing,

All the association records belonging to "Parkinson disease", and its child traits (secondary Parkinson disease, Young adult-onset Parkinsonism) will be prefetched

This will be stored with the key "Parkinson disease"

When a query such as this is invoked.

All associations belonging to Parkinson diease, secondary Parkinson disease, and Young adult-onset Parkinsonism are returrned

@sprintell sprintell changed the title Placeholder for child trait functionality in REST API Inclusion of Child trait in REST API Jan 28, 2025
@sprintell sprintell removed their assignment Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants