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
import os, sys | |
os.environ['R_HOME'] = sys.exec_prefix+"/lib/R/" | |
import rpy2 |
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
import mudatasets | |
import numpy as np | |
import pandas as pd | |
import scanpy as sc | |
import anndata as ad | |
import muon as mu | |
mdata = mudatasets.load("brain3k_multiome", full=True) | |
mdata.var_names_make_unique() |
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
import scanpy as sc | |
import cupy as cp | |
from scipy.sparse import csr_matrix, find, issparse | |
from scipy.sparse.linalg import eigs | |
import numpy as np | |
import pandas as pd | |
import cudf | |
import glob | |
from cupy.sparse import cupyx as cpx | |
from cupyx.scipy.sparse import coo_matrix as coo_matrix_gpu |
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
#!/usr/bin/env python | |
import sys | |
import warnings | |
warnings.filterwarnings("ignore") | |
import logging | |
import rpy2.robjects as robjects | |
from rpy2.robjects.packages import importr | |
from anndata2ri.scipy2ri._r2py import rmat_to_spmat | |
import anndata as ann | |
import pandas as pd |