View source: R/preprocessing.R
make_dds | R Documentation |
Make DESeqDataSet from counts matrix and metadata
make_dds(counts, metadata, ah_record, design = ~1)
counts |
The genes x samples counts matrix with row names. At least one row name must be an ENSEMBL gene ID, since gene annotation is done via the ENSEMBL database. |
metadata |
data.frame of sample information. Order of rows corresponds to the order of columns in the counts matrix. |
ah_record |
ID of AnnotationHub record used to retrieve an |
design |
The design formula specified in library(AnnotationHub) mcols(AnnotationHub()) %>% as_tibble(rownames="ah_record") %>% filter(rdataclass=="EnsDb") |
A DESeq2::DESeqDataSet
object containing the counts matrix and metadata.
library("DESeq2")
count_mat <- counts(T47D)
meta <- data.frame(colData(T47D))
dds <- make_dds(counts = count_mat, metadata = meta, ah_record = "AH89426")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.