-
Notifications
You must be signed in to change notification settings - Fork 9
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 cell_transition
bug
#751
Conversation
@@ -198,22 +198,24 @@ def _cell_transition_online( | |||
) | |||
df_source = _get_df_cell_transition( | |||
self.adata, | |||
[source_annotation_key] if aggregation_mode == "cell" else [source_annotation_key, target_annotation_key], |
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.
why can we drop the distinction between the two aggregation modes?
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.
since we always expected source_annotation_key=target_annotation_key
this code worked. But since target_annotation_key
might not be in self.adata
, I am not sure why it was implemented this way. For example if it's not this way it would expect test_col_2
on adata_sp
I might miss something here, but why do you think that
|
Hi for example it's set to None here even though the other_data is given moscot/src/moscot/problems/space/_mixins.py Lines 672 to 685 in 578e3eb
I checked again and couldn't see. |
I see , might that be the reason for the initial bug though? |
hi @MUCDK , I refactored the private methods with these objectives:
Would you like me to change anything else? |
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.
That looks good, thanks!
Hi @MUCDK ,
Related #743. This used to give an error but now it doesn't
I just separated the key used for storing the result and the key to push/pull.
I have some extra notes on function for future refactoring though:
other_keys
is always None from what I understand.source_groups=None
. (I am still not sure about this I am reading the code more atm)