← Về thư mục
skills/bioskills/bio-expression-matrix-sparse-handling/scripts/sparse_operations.py
- dense_to_sparse · function · L10-L12 — def dense_to_sparse(dense_matrix)
- sparse_to_dense · function · L14-L16 — def sparse_to_dense(sparse_matrix)
- load_10x_mtx · function · L18-L21 — def load_10x_mtx(path)
- save_sparse_h5ad · function · L23-L27 — def save_sparse_h5ad(adata, path)
- sparse_row_sums · function · L29-L31 — def sparse_row_sums(sparse_matrix)
- sparse_col_sums · function · L33-L35 — def sparse_col_sums(sparse_matrix)
- filter_sparse_genes · function · L37-L41 — def filter_sparse_genes(adata, min_cells=3)
- subsample_sparse · function · L43-L48 — def subsample_sparse(adata, n_cells=1000)