col_data_with_genes | R Documentation |
This obtains the sample variables of a HermesData
object together
with selected gene information.
col_data_with_genes(object, assay_name, genes)
object |
( |
assay_name |
( |
genes |
( |
The combined data set, where the additional attribute gene_cols
contains
the names of the columns obtained by extracting the genes
information.
The class of the returned data set will depend on the class of colData
, so usually
will be S4Vectors::DFrame
.
result <- col_data_with_genes(hermes_data, "counts", gene_spec("GeneID:1820"))
tail(names(result))
result$GeneID.1820
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.