omicverse.pp.select_hvf_pegasus

omicverse.pp.select_hvf_pegasus#

omicverse.pp.select_hvf_pegasus(data, batch, n_top=2000, span=0.02)[源代码]#

Select highly variable features with the Pegasus strategy.

参数:
  • data (anndata.AnnData) – AnnData object with robust-gene annotations in data.var['robust'].

  • batch (str) – Batch column in data.obs used for cross-batch statistics. Set to None to 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.

返回:

Writes hvf_loess, hvf_rank and highly_variable_features to data.var.

返回类型:

None