-
Notifications
You must be signed in to change notification settings - Fork 607
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 bbknn arguments and docstring #1868
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1868 +/- ##
=======================================
Coverage 71.22% 71.22%
=======================================
Files 92 92
Lines 11181 11181
=======================================
Hits 7964 7964
Misses 3217 3217
|
It seems this is of some relevance to users, as shown by it showing up twice independently over the course of the past week. For some reason, my tweaks have killed off ReadTheDocs, and I can't check why as upon pressing the "details" button I get the 404 equivalent :) I am now importing @giovp , some assistance with getting the ball rolling on this? The changes are a result of me expanding BBKNN with pynndescent on your recommendation. |
@ktpolanski following from https://scanpy.readthedocs.io/en/stable/dev/code.html#code-style and building the docs locally gives me (among some errors that were not relevant):
Maybe that gives you some pointers? |
I ran The only fishy thing is the Also, line 28 is |
Hmm, I'm stumped. @ivirshup ? |
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 only fishy thing is the function is not clickable, while the other two are, but it built
I think this is it. The error I see is:
sphinx.errors.SphinxWarning: /home/docs/checkouts/readthedocs.org/user_builds/icb-scanpy/checkouts/1868/scanpy/external/pp/_bbknn.py:docstring of scanpy.external.pp._bbknn.bbknn:28:py:class reference target not found: function
Warning, treated as error:
/home/docs/checkouts/readthedocs.org/user_builds/icb-scanpy/checkouts/1868/scanpy/external/pp/_bbknn.py:docstring of scanpy.external.pp._bbknn.bbknn:28:py:class reference target not found: function
I don't think the 'types.FunctionType'
needs to be quoted, but we've used collections.abc.Callable
in other places without issue.
@@ -14,13 +15,20 @@ | |||
def bbknn( | |||
adata: AnnData, | |||
batch_key: str = 'batch', | |||
use_rep: str = 'X_pca', |
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.
Could the representation be chosen with keywords like obsm
, layers
? You can use the helper functions sc.get._get_obs_rep
and sc .get._set_obs_rep
.
I think that should do it. I believe the
I got this behaviour too, but running |
Thanks a lot for the help, assuming things are in order then that's it for me. |
Thanks for the update! |
Updated
sc.external.pp.bbknn()
to match current arguments and docstring.