Hi!
This is what Ive done:
sampleFiles <- list.files(path="/Volumes/timemachine/HTseq_DEseq2",pattern="*.txt")
sampleCondition <- read.table("/Volumes/timemachine/HTseq_DEseq2/03_SampleCondition.txt", header=TRUE)
sampleTable <- data.frame(sampleName = sampleFiles, fileName = sampleFiles, condition = sampleCondition)
directory <- c("/Volumes/timemachine/HTseq_DEseq2/")
ddsHTSeq <- DESeqDataSetFromHTSeqCount(sampleTable = sampleTable, directory = directory, design= ~ condition)
Im getting an error:
"Error in validObject(.Object) :
invalid class "DESeqDataSet" object: all variables in design formula must be columns in colData"
This is what Ive done:
sampleFiles <- list.files(path="/Volumes/timemachine/HTseq_DEseq2",pattern="*.txt")
sampleCondition <- read.table("/Volumes/timemachine/HTseq_DEseq2/03_SampleCondition.txt", header=TRUE)
sampleTable <- data.frame(sampleName = sampleFiles, fileName = sampleFiles, condition = sampleCondition)
directory <- c("/Volumes/timemachine/HTseq_DEseq2/")
ddsHTSeq <- DESeqDataSetFromHTSeqCount(sampleTable = sampleTable, directory = directory, design= ~ condition)
Im getting an error:
"Error in validObject(.Object) :
invalid class "DESeqDataSet" object: all variables in design formula must be columns in colData"
Comment