这个问题还是挺值得回答一下的,我的英文不好,所以再写一个中文版的回答给同胞们看一下:
首先提问中的这种数据输入在新版的 DESeq2 中已经会报错了,因为没有技术重复,结果没有统计学意义。报错信息大概长这样:
Error in checkForExperimentalReplicates(object, modelMatrix) :
The design matrix has the same number of samples and coefficients to fit,
so estimation of dispersion is not possible. Treating samples
as replicates was deprecated in v1.20 and no longer supported since v1.22.
按照提问中的思路,题主是在 样本信息表 colData 中设置了多个组织分组,希望 DESeq2 能够一次性做好两两差异分析,但是结果中只有 tissue1 和 tissue5 之间的比对,而没有其它的比对结果。 按照说明书中的内容,DESeq2 是会将所有分组进行两两比较并返回结果的,题主之所以没有得到自己想要的答案,是因为在用 result() 函数提取结果的时候出了岔子
Multiple results can be returned for analyses beyond a simple two group comparison, so results takes arguments contrast and name to help the user pick out the comparisons of interest for printing a results table
不加参数的 results(dds) 与 results(dds,contrast=c("condition","tissue1", "tissue5")) 是等价的,所以只能获得这两个分组的比较结果,要获取其它的比较结果,就要通过修改 contrast 参数来实现
results(dds,contrast=c("condition","tissue1", "tissue4")) # 提取 tissue1 and tissue4 的差异分析结果
results(dds,contrast=c("condition","tissue1", "tissue3")) # 提取 tissue1 and tissue3 的差异分析结果
If you only have 5 samples, and they are all different, you can't do any kind of sophisticated statistical analysis on them. There is natural variance of expression, but without biological replicates, you have zero idea what it is. DESeq2 might give you numbers, but they don't mean much.