Get the top variables genes

topVGs(SRTProj, ntop = 5, batch = NULL, type = c("HVGs", "SVGs"))

Arguments

SRTProj

a SRTProject object aftering running selectVariableFeatures.

ntop

a positive integer, the number of top variable genes.

batch

a string, number or NULL, specify the batch name to obtain the variable genes, default as NULL.

type

a string, one of "HVGs" and "SVGs", represent the type of variable genes to be chosen.

Value

return a string vector, the top variable genes.