annotateDE: Get KEGG information for DE transcripts

Description Usage Arguments Value Examples

Description

Get KEGG information for DE transcripts

Usage

1
annotateDE(ddsAll)

Arguments

ddsAll

DESeqDataSet to annotate

Value

Annotation results are written to dfAll.csv and annot.csv

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
library(DESeq2)
library(repmis)
source_data(paste0("https://github.com/croesel/",
    "SampleData/blob/master/salmon.RData?raw=true"))
samples <- system.file("extdata", "Samples.csv", package="Trans2Kegg")
colData <- read.csv(samples, row.names=1)
colData$Menthol <- gsub("Control","NoMenthol",colData$Menthol)
colData$Vibrio <- gsub("Control","NoVibrio",colData$Vibrio)
colData <- colData[with(colData, order(row.names(colData))), ]
ddsAll <- DESeqDataSetFromTximport(counts.salmon,
    colData = colData,
    design = ~ Vibrio + Menthol + Menthol:Vibrio)
ddsAll$Menthol <- relevel(ddsAll$Menthol, ref="NoMenthol")
ddsAll$Vibrio <- relevel(ddsAll$Vibrio, ref="NoVibrio")
ddsAll <- ddsAll[ rowSums(counts(ddsAll)) > 10, ]
ddsAll <- DESeq(ddsAll)
annotateDE(ddsAll) 

## End(Not run)

croesel/Trans2Kegg documentation built on May 12, 2019, 3:11 p.m.