Comments (3)
Correct, but I think this is the ideal behaviour. The purpose of this endpoint is to find a list of traits that match your search terms/criteria, not to expose the structure of those terms in the ontology (parent/child relationships). For that it makes more sense to interrogate each term with the /rest/trait/{trait_id}
endpoint.
The point of the include_children flag is to get EFO terms that might not have directly matching synonyms but are definitely related. For instance breast carcinoma
(EFO_0000305) isn't returned in the /rest/trait/search?term=breast%20cancer&exact=0&include_children=0
query but is in the /rest/trait/search?term=breast%20cancer&exact=0&include_children=1
results because it doesn't have breast cancer as a synonym/label but it does have a parent with that term. In this way the behaviour of this endpoint makes sense as-is and wouldn't result in child terms being duplicated as results of the query and in the return of child terms in multiple parent terms.
Adding more of a description to the schema regarding its purpose is probably the best way to resolve this. Thoughts?
from pgs_catalog.
Okay, thanks for the explanation Sam!
from pgs_catalog.
No worries, this is the proposed change:
Search for Traits based on terms present in the ID, label, description synonyms, categories, or external mapped terms. The search term and filters for exact matching and child-term relationships can be included directly in the request URL, e.g.
https://www.pgscatalog.org/rest/trait/search?term=Alzheimer
This returns a list of Traits matching the search term (and by default their child terms from the ontology), including for each of them:
- Ontology ID, trait label, description and URL
- Trait categories
- Synonyms and external mapped terms
- Associated Polygenic Score(s)
- Associated Polygenic Score(s) with child trait(s)
This endpoint searches all traits in the database, including parent terms from the ontology that arenβt included in the /rest/trait/all endpoint.
from pgs_catalog.
Related Issues (20)
- Add new traits to release dashboard HOT 1
- Ref genome validator: Add support for indels
- Add link to EBI data preservation in footer
- Filter scores by minimum number of variants rather than exact number
- Update effect/other_allele scoring file schema
- Potential duplicated study names in Curation Tracker from the same Litsuggest import
- Curation: Show lifted embargos in ready-for-release table
- New traits count discrepancy
- Improve import_studies error reporting
- Ancestries filters not working together with "show european" or "only multi-ancestry"
- Make the list of eligible publications visible
- Add scores evaluated on the sample on Sample Set page
- Search by SNP Not Available HOT 1
- Add new preprint citation to the website
- Test sites are getting indexed in google
- Import GWAS Catalog Cohort information
- Storage of Redundant Scores HOT 1
- Missing new trait in /releases table
- Scores with negative correlations/directions HOT 2
- Harmonized files for PGS002759 contain information from another score? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgs_catalog.