Error in running DESeqDataSetFromTximport
1
0
Entering edit mode
5.4 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 • 3.3k views
ADD COMMENT
0
Entering edit mode
5.4 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: 2629 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