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
These 2 commands are in "aggregate_and_filter" function**(Chapter16.4)** to make the pseudobulk data for certain cell_indentity per sample
I found if the obs_to_keep parameter was set to None. The program will crashed because there isn't a column named donor_key available in the df_donor, so that running df_donor = df_donor.groupby(donor_key).agg(agg_dict) will arise an error.
Since the donor_key will always be the same in each round of the df_donor, why not to run df_donor[donor_key] = donor first? even the obs_to_keep is None, the function will still be smooth.
The text was updated successfully, but these errors were encountered:
*Question
Could it be better to exchange the executing order between the following 2?
These 2 commands are in "aggregate_and_filter" function**(Chapter16.4)** to make the pseudobulk data for certain cell_indentity per sample
I found if the obs_to_keep parameter was set to None. The program will crashed because there isn't a column named donor_key available in the df_donor, so that running df_donor = df_donor.groupby(donor_key).agg(agg_dict) will arise an error.
Since the donor_key will always be the same in each round of the df_donor, why not to run df_donor[donor_key] = donor first? even the obs_to_keep is None, the function will still be smooth.
The text was updated successfully, but these errors were encountered: