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
Fix use_raw=None in scanpy.tl.score_genes #1999
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1999 +/- ##
==========================================
+ Coverage 71.63% 71.64% +0.01%
==========================================
Files 92 92
Lines 11248 11250 +2
==========================================
+ Hits 8057 8060 +3
+ Misses 3191 3190 -1
|
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.
LGTM, just needs a release note
Could the note be a little more descriptive? Without a specific issue linked to this it's hard to tell what incorrect behavior was changed. |
Great, thanks! We do have the CI checks as required for merging, unfortunately. Question for you about the |
Heads up, I'm going to make an empty commit to re-trigger the CI. |
Co-authored-by: michalk8 <46717574+michalk8@users.noreply.github.com>
Ok, didn't wanted to waste the resources and thought you can just merge manually even if checks don't pass.
Yes, afaik this was enabled a few weeks back for the whole organization. |
This PR fixes the case when
use_raw=None
inscanpy.tl.score_genes
. It causes to first fetchvar_names
fromadata.var_names
, but later a subset onadata.raw
can happen, which can have different gene names.Also fixes the type of
use_raw
and adds aValueError
ifgene_pool
is empty (otherwise, crashes with non-informative error message).related issue: theislab/cellrank#746