Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove prefix #6

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dummy_anndata/generate_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def generate_dataset(
n_obs=10,
n_vars=20,
x_type="generate_integer_matrix",
x_type="integer_matrix",
layer_types=None,
obs_types=None,
var_types=None,
Expand Down
18 changes: 9 additions & 9 deletions src/dummy_anndata/generate_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@ def int_mtx(n_obs, n_vars):
# Possible matrix generators
# integer matrices do not support NAs in Python
matrix_generators = {
"generate_float_matrix": lambda n_obs, n_vars: float_mtx(n_obs, n_vars),
"generate_float_matrix_nas": lambda n_obs, n_vars: float_mtx(
"float_matrix": lambda n_obs, n_vars: float_mtx(n_obs, n_vars),
"float_matrix_nas": lambda n_obs, n_vars: float_mtx(
n_obs, n_vars, NAs=True
),
"generate_float_csparse": lambda n_obs, n_vars: sp.sparse.csc_matrix(
"float_csparse": lambda n_obs, n_vars: sp.sparse.csc_matrix(
float_mtx(n_obs, n_vars)
),
"generate_float_csparse_nas": lambda n_obs, n_vars: sp.sparse.csc_matrix(
"float_csparse_nas": lambda n_obs, n_vars: sp.sparse.csc_matrix(
float_mtx(n_obs, n_vars, NAs=True)
),
"generate_float_rsparse": lambda n_obs, n_vars: sp.sparse.csr_matrix(
"float_rsparse": lambda n_obs, n_vars: sp.sparse.csr_matrix(
float_mtx(n_obs, n_vars)
),
"generate_float_rsparse_nas": lambda n_obs, n_vars: sp.sparse.csr_matrix(
"float_rsparse_nas": lambda n_obs, n_vars: sp.sparse.csr_matrix(
float_mtx(n_obs, n_vars, NAs=True)
),
"generate_integer_matrix": lambda n_obs, n_vars: int_mtx(n_obs, n_vars),
"generate_integer_csparse": lambda n_obs, n_vars: sp.sparse.csc_matrix(
"integer_matrix": lambda n_obs, n_vars: int_mtx(n_obs, n_vars),
"integer_csparse": lambda n_obs, n_vars: sp.sparse.csc_matrix(
int_mtx(n_obs, n_vars)
),
"generate_integer_rsparse": lambda n_obs, n_vars: sp.sparse.csr_matrix(
"integer_rsparse": lambda n_obs, n_vars: sp.sparse.csr_matrix(
int_mtx(n_obs, n_vars)
),
}
Expand Down
Loading