You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this could use a consolidated effort for consistent behavior. Especially since testing whether it works will probably have some common patterns. In some cases Raw will need to be an option.
I like the convention of having the arguments use_raw, layers, and (when appropriate) obsm_key/ varm_key. With these at most one of the values can be not None, and if all are None (the default) X is used.
An alternative convention is use_rep: Optional[str]. I’m less a fan of this due to potential key collisions.
This could use support for variable masks like use_highly_variable. Also the error message should be better.
I think a collection of helper functions like this should go in to a utils module (sc.utils.argutils?) which could be public so it's easier to use in scanpy-like packages.
I think this could use a consolidated effort for consistent behavior. Especially since testing whether it works will probably have some common patterns. In some cases
Raw
will need to be an option.I like the convention of having the arguments
use_raw
,layers
, and (when appropriate)obsm_key
/varm_key
. With these at most one of the values can be not None, and if all are None (the default)X
is used.An alternative convention is
use_rep: Optional[str]
. I’m less a fan of this due to potential key collisions.Some relevant issues/ prs: #826 #801 #730
The text was updated successfully, but these errors were encountered: