omicverse.pp.select_hvf_pegasus¶
- omicverse.pp.select_hvf_pegasus(data, batch, n_top=2000, span=0.02)[source]¶
Select highly variable features with the Pegasus strategy.
- Parameters:
data (anndata.AnnData) – AnnData object with robust-gene annotations in
data.var['robust'].batch (str) – Batch column in
data.obsused for cross-batch statistics. Set toNoneto ignore batch effects.n_top (int, default=2000) – Number of top-ranked highly variable features to retain.
span (float, default=0.02) – Loess smoothing span for fitting the mean-variance trend.
- Returns:
Writes
hvf_loess,hvf_rankandhighly_variable_featurestodata.var.- Return type:
None