Error in running DESeqDataSetFromTximport
1
0
Entering edit mode
3.5 years ago
ankur • 0

Hello,

I am facing an error while running DESeqDatasetFromTximort after StringTie quantification step

> library(DESeq2)
> sampleTable <- data.frame(condition = factor(rep(c("mock", "mock"), each = 1)))
> rownames(sampleTable) <- colnames(txi$counts)
> dds <- DESeqDataSetFromTximport(txi = txi, sampleTable ,design = ~ Condition + Time)
Error in DESeqDataSet(se, design = design, ignoreRank) : 
  all variables in design formula must be columns in colData

My sample contains:

Sample_ids  Condition   Time
t_data_9.ctab   Mock    6hpi
t_data_10.ctab  Mock    6hpi

Am I supposed to add any argument?

tximport R RNA-Seq Stringtie DESeq2 • 2.8k views
ADD COMMENT
0
Entering edit mode
3.5 years ago

You need to redo how sampleTable is made. Firstly, it needs to have Condition rather than condition (or you need to change that in your design) and secondly it needs to contain Time, which it currently doesn't. Fixing that will remove the error.

ADD COMMENT

Login before adding your answer.

Traffic: 1529 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6