degMB: Distribution of expression of DE genes compared to the...

Description Usage Arguments Value Examples

View source: R/methods.R

Description

Distribution of expression of DE genes compared to the background

Usage

1
degMB(tags, group, counts, pop = 400)

Arguments

tags

List of genes that are DE.

group

Character vector with group name for each sample in the same order than counts column names.

counts

Matrix with counts for each samples and each gene Should be same length than pvalues vector.

pop

number of random samples taken for background comparison

Value

ggplot2 object

Examples

1
2
3
4
5
6
7
8
9
data(humanGender)
library(DESeq2)
idx <- c(1:10, 75:85)
dds <- DESeqDataSetFromMatrix(assays(humanGender)[[1]][1:1000, idx],
  colData(humanGender)[idx,], design=~group)
dds <- DESeq(dds)
res <- results(dds)
degMB(row.names(res)[1:20], colData(dds)[["group"]],
  counts(dds, normalized = TRUE))

DEGreport documentation built on Nov. 8, 2020, 7:23 p.m.