
Get the HVG
get_hvg.RdReturns the HVG indices. Pending class type this are 1-based (for R) or 0-based for Rust.
Usage
get_hvg(x)
## S7 method for class <bixverse::MetaCells>
get_hvg(x)
# S3 method for class 'ScMap'
get_hvg(x)
## S7 method for class <bixverse::SingleCells>
get_hvg(x)
## S7 method for class <bixverse::SingleCellsSubset>
get_hvg(x)Examples
# stored 0-based, so map them back through the gene names
sc <- demo_single_cells()
get_gene_names_from_idx(sc, head(get_hvg(sc), 3))
#> 43 18 4
#> "gene_44" "gene_19" "gene_05"
unlink(sc@dir_data, recursive = TRUE, force = TRUE)