Description Usage Arguments Value Examples
Get KEGG information for DE transcripts
1 | annotateDE(ddsAll)
|
ddsAll |
DESeqDataSet to annotate |
Annotation results are written to dfAll.csv and annot.csv
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.