Created
February 12, 2019 22:38
-
-
Save azkalot1/98c3c75a467ba93f4cb651f98ac56fbe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
low_expr_thr = 100 | |
high_expr_thr = 100000 | |
mat = mat[:,(per_gene_sum>=low_expr_thr) & (per_gene_sum<=high_expr_thr)] #just remove extreme outliers | |
mean_exp = mat.mean(axis=0) | |
std_exp = np.sqrt(mat.std(axis=0)) | |
CV = std_exp/mean_exp | |
plt.hist(CV); | |
plt.title('Distribution of CV, mean {} sd {}'.format(np.mean(CV), np.std(CV)**0.5)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment