Skip to contents

Get expression of gene by indices in a dds

Usage

get_gene_expression(dds, gene_indices, assay)

Arguments

dds

A DESeqDataSet

gene_indices

integer vector that refer to the row number of genes to retrieve

assay

integer, assay index that refers to the desired expression data slot

Value

A dataframe where row names are sample names, and column names are gene names

Details

Importantly, returns data as a data.frame without dropping dimensions.