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

Update cell_by_location.rq #135

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update cell_by_location.rq #135

wants to merge 2 commits into from

Conversation

dosumis
Copy link
Contributor

@dosumis dosumis commented Dec 16, 2023

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).

Updating to be more generic
switched to union of part_of and has_soma_location
Copy link
Member

@balhoff balhoff left a 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#+ 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.

Comment on lines +16 to 20
{
?cell_iri part_of: ?_location_iri .
} UNION {
?cell_iri has_soma_location: ?someValue .
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{
?cell_iri part_of: ?_location_iri .
} UNION {
?cell_iri has_soma_location: ?someValue .
}
?cell_iri part_of:|has_soma_location: ?_location_iri .

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

Successfully merging this pull request may close these issues.

3 participants