View Single Post
Old 08-05-2014, 12:15 PM   #10
essepf
Junior Member
 
Location: Switzerland

Join Date: Aug 2014
Posts: 5
Default

Hi

this is my script:

library("DESeq2")
sampleFiles <- list.files(path="/Users/me/Desktop/RNASeq/htseq-count_Results_6Samples/htseq_Adp/")
sampleCondition=factor(c(rep("pr",3), rep("wt",3)))
sampleTable=data.frame(sampleName=sampleFiles, fileName=sampleFiles,condition=sampleCondition)
directory <- c("/Users/me/Desktop/RNASeq/htseq-count_Results_6Samples/htseq_Adp/")
des <- formula(~ condition)
ddsHTSeq <- DESeqDataSetFromHTSeqCount(sampleTable = sampleTable, directory = directory, design = des)

if I do what you suggest me I have exactly same error.

> ddsHTSeq <- DESeqDataSetFromHTSeqCount(sampleTable = sampleTable, directory = directory, design = des)
Error in Ops.factor(a$V1, l[[1]]$V1) :
level sets of factors are different

Thank you
essepf is offline   Reply With Quote