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

Consider an API query on ontologies #407

Closed
bcorrie opened this issue May 26, 2020 · 2 comments
Closed

Consider an API query on ontologies #407

bcorrie opened this issue May 26, 2020 · 2 comments
Labels
ADC API V2 AIRR Data Commons API V2

Comments

@bcorrie
Copy link
Contributor

bcorrie commented May 26, 2020

We currently have a set of ontologies in the specification (e.g. cell_subset).

A very powerful query mechanism for the API to implement would be to implement an ISA operator that would search for ontological containment of a concept, such as B cell. Such a search would return all repertoires that contained B cell or any of its children in the ontology.

For example:

{
  "filters": {
    "op":"isa",
    "content": {
      "field":"sample.cell_subset.id",
      "value":"CL:0000236"
    }
  }
}

would return anything that is under node CL:0000236 in the Cell Ontology.

This is a very difficult query to construct without this capability.

@bcorrie bcorrie added the ADC API V2 AIRR Data Commons API V2 label May 26, 2020
@schristley
Copy link
Member

different from #234 ?

@bcorrie
Copy link
Contributor Author

bcorrie commented May 26, 2020

Nope, point taken... 8-) Great minds think alike, mine is just slower than yours... 8-)

@bcorrie bcorrie closed this as completed May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADC API V2 AIRR Data Commons API V2
Projects
None yet
Development

No branches or pull requests

2 participants