-
Notifications
You must be signed in to change notification settings - Fork 1
fix lost query and return for get_expressed_genes_by_cell_and_gene_type #266
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
base: master
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR fixes a critical bug in the get_expressed_genes_by_cell_and_gene_type method that was broken after a previous commit. The missing query execution and return logic has been restored.
Key Changes
- Added missing query execution and result processing logic
- Added
verboseparameter for debugging support - Updated return value documentation from "Empty DataFrame" to "False"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@Robbie1977 I've opened a new pull request, #267, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
[WIP] Update get_expressed_genes_by_cell_and_gene_type based on feedback
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Returns a DataFrame with one cluster per row, annotated as the specified cell type (or subtypes). | ||
| Must restrict to a gene type (to prevent overly long gene lists), which can be retrieved using `get_gene_function_filters`. | ||
| If no data is found, returns Empty DataFrame. | ||
| If no data is found, returns False. |
Copilot
AI
Dec 16, 2025
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.
The docstring incorrectly states 'returns False' when no data is found, but the previous version mentioned 'Empty DataFrame'. Since the method has a return_dataframe parameter that can be True or False, the docstring should clarify what is returned in both cases when no data is found (False for both, or False vs empty dict).
broken after 94938dc but not shown in diff