Closed tjiagoM closed 5 years ago
ah, thanks for pointing this out @tjiagoM - I will take a look
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Going to address today! Finally getting to this
In
extract_tybalt_weights.ipynb
notebook, you defined a functionoutput_high_weight_genes
.At a certain point you have these 2 lines:
hw_pos_df = pd.DataFrame(encoding_df[encoding_df > encoding_df.std() * thresh])
hw_neg_df = pd.DataFrame(encoding_df[encoding_df < -encoding_df.std() * thresh])
It seems like you are trying to get the most extreme values away from the mean, but you don't really have the mean here. Shouldn't it be something like this?
hw_pos_df = pd.DataFrame(encoding_df[encoding_df > encoding_df.mean() + encoding_df.std() * thresh])
hw_neg_df = pd.DataFrame(encoding_df[encoding_df < encoding_df.mean() - encoding_df.std() * thresh])