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
Hello and thank you for making the code to run cell painting VAE available!
I've encountered a problem executing the notebook cell-painting/3.application/experiment_level5.ipynb and wanted to get your thoughts on whether the modification I applied is a correct one.
The function calculate_L2_distances defined in code block no.11 and executed in code block no.44 in throws below error:-
TypeError: Could not convert DNA inhibitornorepinephrine reputake inhibitormaternal embryonic leucine zipper kinase inhibitordopamine receptor antagonist|serotonin receptor agonistdopamine reuptake inhibitorDMSO to numeric
This is presumably due to the fact that the first line of the function is trying to take a mean over feature columns of a dataframe, but this dataframe contains non-feature columns with non-numeric values such as moa.
Below is my best guess at achieving the desired functionality:-
Retaining only the feature columns enables to calculate the mean over these columns. complete_features_df is defined the code block no.3 of the same notebook to be a dataframe that only includes feature columns:-
Hello and thank you for making the code to run cell painting VAE available!
I've encountered a problem executing the notebook
cell-painting/3.application/experiment_level5.ipynb
and wanted to get your thoughts on whether the modification I applied is a correct one.The function
calculate_L2_distances
defined in code block no.11 and executed in code block no.44 in throws below error:-This is presumably due to the fact that the first line of the function is trying to take a mean over feature columns of a dataframe, but this dataframe contains non-feature columns with non-numeric values such as
moa
.Below is my best guess at achieving the desired functionality:-
Retaining only the feature columns enables to calculate the mean over these columns.
complete_features_df
is defined the code block no.3 of the same notebook to be a dataframe that only includes feature columns:-Look forward to your input.
Thanks so much,
Misa
The text was updated successfully, but these errors were encountered: