construct_eset | R Documentation |
Construct expression set
construct_eset(quants, fdata, annot)
quants |
|
fdata |
|
annot |
Character vector with ensembldb package name. e.g.
|
ExpressionSet
with quants$counts
stored in the 'exprs'
assay, quants$samples
stored in the sample metadata, and fdata
stored in the feature data.
# generate example y <- matrix(rnbinom(10000, mu = 5, size = 2), ncol = 4) row.names(y) <- paste0("gene", 1:2500) quants <- edgeR::DGEList(counts = y) fdata <- data.table::data.table(gene_name = row.names(y), key = "gene_name") annot <- dseqr::get_ensdb_package("Homo sapiens", "94") eset <- construct_eset(quants, fdata, annot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.