Entering edit mode
control = factor(c(rep("Control",5),NA,NA))
affected= factor(c(rep("Affected",7)))
library(DESeq2)
dds<-DESeqDataSetFromMatrix(
countData=countTable,
design =~control+affected,
colData=data.frame(
control=control,
affected=affected
))
normCounts<-rlog(dds,blind=false)
This error coming
Error in DESeqDataSetFromMatrix(countData = countTable, design = ~control + :
ncol(countData) == nrow(colData) is not TRUE
When I add like this it shows this error for design Now I check that number of columns of countData is equal to the number of rows of colData
Hi again, and thank you for replying.
Why are there values of NA here? If you have samples whose condition is unknown, you may consider removing these samples from the dataset, or create a third 'condition' called 'Unknown'.
You may wish to try:
Thanks, it resolved.