-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update cell_by_location.rq #135
base: master
Are you sure you want to change the base?
Conversation
Updating to be more generic
switched to union of part_of and has_soma_location
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed a typo and made a query suggestion.
#+ summary: Find cells by location | ||
#+ description: Enter an anatomical location, get back a list of cell type IRIs and labels | ||
#+ summary: Find cells by type and location | ||
#+ description: Args: cell: the iri or a cell type; location: the iri of an anatomical location. All args are optional. With no args returns all cells with an anatomical location. Location is a union of part_of (suitable for location of most cells) and has_soma_location (used for neurons). This pattern is designed for safe grouping of cell annotations. Returns: a 2 column table: cell (type) IRIs and cell (type) labels. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#+ description: Args: cell: the iri or a cell type; location: the iri of an anatomical location. All args are optional. With no args returns all cells with an anatomical location. Location is a union of part_of (suitable for location of most cells) and has_soma_location (used for neurons). This pattern is designed for safe grouping of cell annotations. Returns: a 2 column table: cell (type) IRIs and cell (type) labels. | |
#+ description: Args: cell: the iri of a cell type; location: the iri of an anatomical location. All args are optional. With no args returns all cells with an anatomical location. Location is a union of part_of (suitable for location of most cells) and has_soma_location (used for neurons). This pattern is designed for safe grouping of cell annotations. Returns: a 2 column table: cell (type) IRIs and cell (type) labels. |
{ | ||
?cell_iri part_of: ?_location_iri . | ||
} UNION { | ||
?cell_iri has_soma_location: ?someValue . | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | |
?cell_iri part_of: ?_location_iri . | |
} UNION { | |
?cell_iri has_soma_location: ?someValue . | |
} | |
?cell_iri part_of:|has_soma_location: ?_location_iri . |
Updating to be more generic.
My aim is a generic cells by type/location query. The default option with no location does depend on all cell types being part of some anatomical entity though. I think would be OK to add this at the root of CL. Note that bodily fluids and excreta are anatomical entities (Can add that request to CL).