Skip to content

Commit

Permalink
fix layer option seurat v3
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgayoso authored and ivirshup committed Jul 29, 2020
1 parent b7c7130 commit a4ad0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanpy/preprocessing/_highly_variable_genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _highly_variable_genes_seurat_v3(
estimat_var[not_const] = model.outputs.fitted_values
reg_std = np.sqrt(10 ** estimat_var)

batch_counts = adata[batch_info == b].X.astype(np.float64).copy()
batch_counts = X[batch_info == b].astype(np.float64).copy()
# clip large values as in Seurat
N = np.sum(batch_info == b)
vmax = np.sqrt(N)
Expand Down

0 comments on commit a4ad0a5

Please sign in to comment.