else:
adata.var["highly_variable"] = result["gene_subset"]
return adata if copy else None
logg.debug("extracting highly variable genes", r=True)
X = data // no copy necessary, X remains unchanged in the following
mean, var = materialize_as_ndarray(_get_mean_var(X))
// now actually compute the dispersion
mean[mean == 0] = 1e-12 // set entries equal to zero to small value
After Change
else:
adata.var["highly_variable"] = result["gene_subset"]
return adata if copy else None
start = logg.info("extracting highly variable genes")
X = data // no copy necessary, X remains unchanged in the following
mean, var = materialize_as_ndarray(_get_mean_var(X))
// now actually compute the dispersion
mean[mean == 0] = 1e-12 // set entries equal to zero to small value