voyagerpy.utils.get_top_hvgs#

voyagerpy.utils.get_top_hvgs(stats: DataFrame, n: int = 2000, stat: str = 'bio', var_threshold: float = 0) ndarray#

Get the n genes with the largest biological variance.

Parameters:
  • stats (pd.DataFrame) – The stats dataframe. Computed via model_gene_var.

  • n (int, optional) – The number of genes to return, by default 2000

  • stat (str, optional) – The statistic to use for getting the n largest values, by default “bio”.

  • var_threshold (float, optional) – The variance threshold to use. This parameter is not used, by default 0.

Returns:

An array of gene names with the largest statistic specified.

Return type:

np.ndarray

Note

The var_threshold parameter is not used. It is included for compatibility with the R implementation.

See also

model_gene_var()