Search
Question: help for deseq2
0
gravatar for ndiayediop2
7 days ago by
ndiayediop20 wrote:

hi 

i would like a help please

count= read.table("C:/Users/user/Desktop/exos-diallo/donnees2.txt",header=TRUE,sep=";")

count= count[,]

###################################################

## création de la table colData qui décrit le plan d'expérience:

## " condition ","type "

condition= factor(c("condition 1","condition 1","condition 1","condition 1","condition 1",

     "condition 1","condition 1","condition 1"," condition 2","condition 2","condition 2",

     "condition 2","condition 2"," condition 2","condition 2","condition 2"))

type= factor(rep ("single",16))

colData= data.frame(condition,type,row.names=colnames(count))

> dds= DESeqDataSetFromMatrix(count,colData,design=~condition)

Error in validObject(.Object) :

  invalid class “SummarizedExperiment” object:

  nb of cols in 'assay' (1) must equal nb of rows in 'colData' (16)

 

ADD COMMENTlink modified 7 days ago by James W. MacDonald46k • written 7 days ago by ndiayediop20
1
gravatar for James W. MacDonald
7 days ago by
United States
James W. MacDonald46k wrote:

The error says that your count data has only 1 column, but the colData has 16. You need to have as many columns in your count data as you have rows in your colData.

ADD COMMENTlink written 7 days ago by James W. MacDonald46k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 403 users visited in the last hour