Return the top genes according to a named vector.

top_n_genes(x, n)

Arguments

x

named numeric vector where the names are the gene names and the numbers are gene scores

n

how many genes to return