Created
February 12, 2019 22:33
-
-
Save azkalot1/7afe9b6869d917db1fd9f3994fec2111 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
f, ax = plt.subplots(1,2,figsize=(15,5)) | |
per_cell_sum = mat.sum(axis=1) | |
ax[0].hist(np.log10(per_cell_sum+1)); | |
ax[0].set_title('Distribtion of #UMIs per cell\n min {}, max {}, mean {} +- {}'.format(min(per_cell_sum), | |
max(per_cell_sum), np.mean(per_cell_sum), | |
np.sqrt(np.std(per_cell_sum)))); | |
per_gene_sum = mat.sum(axis=0) | |
ax[1].hist(np.log10(per_gene_sum+1)); | |
ax[1].set_title('Distribtion of #UMIs per gene\n min {}, max {}, mean {} +- {}'.format(min(per_gene_sum), | |
max(per_gene_sum), np.mean(per_gene_sum), | |
np.sqrt(np.std(per_gene_sum)))); | |
plt.tight_layout() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment