Hi All,
I have a question regarding Deseq and have the following miRNA dataset (4 timepoints, 2 conditions with 6 biological replicates each; 42 samples in total):
Control (C) t=0 (n=6)
Control (C) t=6h (n=6)
Control (C) t=24h (n=6)
Control (C) t=48h (n=6)
Treated (T) t=6h (n=6)
Treated (T) t=24h (n=6)
Treated (T) t=48h (n=6)
I would like to find differential miRNA expression as a result of the treatment at each time point using the time-matched controls. Would this be possible using Deseq?
To identify differences in miRNA expression as a result of the treatment after 6h, I created the attached file (see below).
I followed the vignette (2012-05-02) and used the following script:
library( "DESeq" )
countTable<- read.table("./test_deseq.txt",row.names=1, header=TRUE,)
mirnaDesign <- data.frame( row.names = colnames( countTable ), condition = c( "C", "C", "C", "C", "C", "C", "T", "T", "T", "T", "T", "T" ), libType = c( "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end" ) )
mirnaDesign
singleSamples <- mirnaDesign$libType == "single-end"
countTable <- countTable[ , singleSamples ]
conds <- mirnaDesign$condition[ singleSamples ]
library( "DESeq" )
cds <- newCountDataSet( countTable, conds )
head( counts(cds) )
cds <- estimateSizeFactors( cds )
sizeFactors( cds )
head( counts( cds, normalized=TRUE ) )
cds <- estimateDispersions( cds )
str( fitInfo(cds) )
# plotDispEsts( cds ) <-- for some reason this did not work!!!
res <- nbinomTest( cds, "C", "T" )
head(res)
plotDE <- function( res )
plot(res$baseMean, res$log2FoldChange, log="x", pch=20, cex=.3, col = ifelse( res$padj < .1, "red", "black" ) )
plotDE( res )
hist(res$pval, breaks=100, col="skyblue", border="slateblue", main="")
resSig <- res[ res$padj < 0.1, ]
head( resSig[ order( resSig$foldChange, -resSig$baseMean ), ] )
head( resSig[ order( -resSig$foldChange, -resSig$baseMean ), ] )
write.table( res, file="results_sample_data.txt" )
Unfortunately, it didn't find any significantly altered miRNAs and I'm wondering if I'm doing anything wrong? I would appreciate if someone could send in me in the right direction!
Many thanks in advance,
Ron
I have a question regarding Deseq and have the following miRNA dataset (4 timepoints, 2 conditions with 6 biological replicates each; 42 samples in total):
Control (C) t=0 (n=6)
Control (C) t=6h (n=6)
Control (C) t=24h (n=6)
Control (C) t=48h (n=6)
Treated (T) t=6h (n=6)
Treated (T) t=24h (n=6)
Treated (T) t=48h (n=6)
I would like to find differential miRNA expression as a result of the treatment at each time point using the time-matched controls. Would this be possible using Deseq?
To identify differences in miRNA expression as a result of the treatment after 6h, I created the attached file (see below).
I followed the vignette (2012-05-02) and used the following script:
library( "DESeq" )
countTable<- read.table("./test_deseq.txt",row.names=1, header=TRUE,)
mirnaDesign <- data.frame( row.names = colnames( countTable ), condition = c( "C", "C", "C", "C", "C", "C", "T", "T", "T", "T", "T", "T" ), libType = c( "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end", "single-end" ) )
mirnaDesign
singleSamples <- mirnaDesign$libType == "single-end"
countTable <- countTable[ , singleSamples ]
conds <- mirnaDesign$condition[ singleSamples ]
library( "DESeq" )
cds <- newCountDataSet( countTable, conds )
head( counts(cds) )
cds <- estimateSizeFactors( cds )
sizeFactors( cds )
head( counts( cds, normalized=TRUE ) )
cds <- estimateDispersions( cds )
str( fitInfo(cds) )
# plotDispEsts( cds ) <-- for some reason this did not work!!!
res <- nbinomTest( cds, "C", "T" )
head(res)
plotDE <- function( res )
plot(res$baseMean, res$log2FoldChange, log="x", pch=20, cex=.3, col = ifelse( res$padj < .1, "red", "black" ) )
plotDE( res )
hist(res$pval, breaks=100, col="skyblue", border="slateblue", main="")
resSig <- res[ res$padj < 0.1, ]
head( resSig[ order( resSig$foldChange, -resSig$baseMean ), ] )
head( resSig[ order( -resSig$foldChange, -resSig$baseMean ), ] )
write.table( res, file="results_sample_data.txt" )
Unfortunately, it didn't find any significantly altered miRNAs and I'm wondering if I'm doing anything wrong? I would appreciate if someone could send in me in the right direction!
Many thanks in advance,
Ron
Comment