Skip to content

Commit

Permalink
fix(preprocess): make log-transformation explicit
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
  • Loading branch information
cameronraysmith committed Mar 8, 2024
1 parent d703a08 commit ce489dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyrovelocity/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ def preprocess_dataset(
adata,
min_shared_counts=min_shared_counts,
n_top_genes=n_top_genes,
log=False,
copy=True,
)
sc.pp.log1p(adata_tmp)
if adata_tmp.n_vars < n_obs_subset:
logger.warning(
f"adata.n_vars: {adata_tmp.n_vars} < n_obs_subset: {n_obs_subset}\n"
Expand All @@ -169,8 +171,10 @@ def preprocess_dataset(
adata,
min_shared_counts=min_shared_counts,
n_top_genes=n_top_genes,
log=False,
copy=True,
)
sc.pp.log1p(adata)
logger.warning(
f"after updating min_shared_counts: {min_shared_counts},\n"
f"adata.n_vars: {adata.n_vars}\n"
Expand Down

0 comments on commit ce489dd

Please sign in to comment.