Learn R Programming

RNAseqQC (version 0.2.1)

make_dds: Make DESeqDataSet from counts matrix and metadata

Description

Make DESeqDataSet from counts matrix and metadata

Usage

make_dds(counts, metadata, ah_record, design = ~1)

Value

A DESeq2::DESeqDataSet object containing the counts matrix and metadata.

Arguments

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 EnsDb object.

design

The design formula specified in DESeqDataSet() To view all valid record IDs, run

library(AnnotationHub)
mcols(AnnotationHub()) %>%
 as_tibble(rownames="ah_record") %>%
 filter(rdataclass=="EnsDb")

Examples

Run this code
# \donttest{
library("DESeq2")
count_mat <- counts(T47D)
meta <- data.frame(colData(T47D))
dds <- make_dds(counts = count_mat, metadata = meta, ah_record = "AH89426")
# }

Run the code above in your browser using DataLab