Dear collegues,
I have a problem with sizeFactorEstimate function.
After loading of ExonCountObject and running makeCompleteDEUAnalysis(ecs) I got an error:
Error in .local(object, ...) : Estimate size factors first.
Then I tried to run analysis step by step:
ecs <- estimateSizeFactors(ecs)
This function works and doesn`t return any warnings.
But sizeFactors(ecs) shows that all values of sizeFactors in ecs are still NA.
At the same time counts(ecs) shows that the counts of features are OK.
Another strange thing in this run occured while creating exonCountObject, but may be I misunderstand how to assign sample names. Design was:
design <- data.frame(
condition = conds,
replicate = reps,
row.names = tags,
stringsAsFactors = TRUE,
check.names = FALSE)
where tags vector contained vector of sample names. And rows of design dataframe was as in tags.
But after creating of exonCountObject:
ecs = read.HTSeqCounts(
countfiles = files,
design = design,
flattenedfile = "dexseq.gtf"
);
in ecs-slots (as counts or sizeFactors) sample names was not row names from design df, but full paths to files vector.
Any ideas what could be the problem?
Thank you,
Yerbol
I have a problem with sizeFactorEstimate function.
After loading of ExonCountObject and running makeCompleteDEUAnalysis(ecs) I got an error:
Error in .local(object, ...) : Estimate size factors first.
Then I tried to run analysis step by step:
ecs <- estimateSizeFactors(ecs)
This function works and doesn`t return any warnings.
But sizeFactors(ecs) shows that all values of sizeFactors in ecs are still NA.
At the same time counts(ecs) shows that the counts of features are OK.
Another strange thing in this run occured while creating exonCountObject, but may be I misunderstand how to assign sample names. Design was:
design <- data.frame(
condition = conds,
replicate = reps,
row.names = tags,
stringsAsFactors = TRUE,
check.names = FALSE)
where tags vector contained vector of sample names. And rows of design dataframe was as in tags.
But after creating of exonCountObject:
ecs = read.HTSeqCounts(
countfiles = files,
design = design,
flattenedfile = "dexseq.gtf"
);
in ecs-slots (as counts or sizeFactors) sample names was not row names from design df, but full paths to files vector.
Any ideas what could be the problem?
Thank you,
Yerbol
Comment