Skip to content

Commit

Permalink
Added filtering genes after scran
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamie committed Jul 16, 2024
1 parent 1fa9ffc commit 61e0dd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/scvi_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
torch.set_float32_matmul_precision("high")

adata = sc.read_h5ad(args.input)
sc.pp.filter_genes(adata, min_cells=1)

adata.layers["X_scran"] = adata.X
sc.pp.log1p(adata, base=2)

Expand Down

0 comments on commit 61e0dd3

Please sign in to comment.