Created
February 14, 2019 06:28
-
-
Save ivirshup/03cbaff8641bfbefda241bf27182e578 to your computer and use it in GitHub Desktop.
Set `adata.var_names` to be ids not names. Based on default reading of 10x h5 files
This file contains 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
def fix_names(adata): | |
adata.var_names_make_unique() | |
adata.var["gene_symbols"] = adata.var.index | |
adata.var.index = adata.var["gene_ids"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment