Probably me who has done something wrong, but I dont see what.
First run was fine, but when I ran it again some days later I get this error.
> sampleFiles <- list.files(path="/Volumes/timemachine/HTseq_DEseq2",pattern="*.txt")
> sampleFiles <- sort(sampleFiles,decreasing=TRUE)
> status <- factor(c(rep("Healthy",26), rep("Diabetic",22)), levels=c("Healthy", "Diabetic"))
> timepoints = as.factor(c(2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1))
> patients <- factor(c(88,87,86,83,82,81,75,72,71,70,13,08,01,88,87,86,83,82,81,75,72,71,70,13,08,01,79,77,76,73,67,62,61,55,53,21,04,79,77,76,73,67,62,61,55,53,21,04))
> sampleTable <- data.frame(sampleName = sampleFiles, fileName = sampleFiles, status=status, timepoints=timepoints, patients=patients)
> directory <- c("/Volumes/timemachine/HTseq_DEseq2/")
> design <- formula(~patients + timepoints*status)
> ddsHTSeq <- DESeqDataSetFromHTSeqCount(sampleTable = sampleTable, directory = directory, design = design)
Error in validObject(.Object) :
invalid class "DESeqDataSet" object: the model matrix is not full rank, i.e. one or more variables in the design formula are linear combinations of the others
First run was fine, but when I ran it again some days later I get this error.
> sampleFiles <- list.files(path="/Volumes/timemachine/HTseq_DEseq2",pattern="*.txt")
> sampleFiles <- sort(sampleFiles,decreasing=TRUE)
> status <- factor(c(rep("Healthy",26), rep("Diabetic",22)), levels=c("Healthy", "Diabetic"))
> timepoints = as.factor(c(2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1))
> patients <- factor(c(88,87,86,83,82,81,75,72,71,70,13,08,01,88,87,86,83,82,81,75,72,71,70,13,08,01,79,77,76,73,67,62,61,55,53,21,04,79,77,76,73,67,62,61,55,53,21,04))
> sampleTable <- data.frame(sampleName = sampleFiles, fileName = sampleFiles, status=status, timepoints=timepoints, patients=patients)
> directory <- c("/Volumes/timemachine/HTseq_DEseq2/")
> design <- formula(~patients + timepoints*status)
> ddsHTSeq <- DESeqDataSetFromHTSeqCount(sampleTable = sampleTable, directory = directory, design = design)
Error in validObject(.Object) :
invalid class "DESeqDataSet" object: the model matrix is not full rank, i.e. one or more variables in the design formula are linear combinations of the others
Comment