Dear all,
I would like to make an analysis with a multilevel design, with paired samples. Ie
My design looks like
> colData(dds) =
sample | condition | |
<factor> | <factor> | |
sample_1 | sample_1 | Control |
sample_2 | sample_1 | Tumor |
sample_3 | sample_2 | Control |
sample_4 | sample_2 | Tumor |
sample_5 | sample_3 | Control |
sample_6 | sample_3 | Tumor |
sample_7 | sample_4 | Control |
sample_8 | sample_4 | Tumor |
> dds=DESeqDataSetFromMatrix( countData = nlDe, colData = colData, design = ~ sample+ condition)
> mcols(res, use.name = T)
DataFrame with 6 rows and 2 columns
type | description | ||
baseMean | intermediate | mean of normalized counts for all samples | |
log2FoldChange | results | log2 fold change (MAP): condition Tumor vs Control | |
lfcSE | results | standard error: condition Tumor vs Control | |
stat | results | Wald statistic: condition Tumor vs Control | |
pvalue | results | Wald test p-value: condition Tumor vs Control | |
padj | results | BH adjusted p-values |
> resultsNames(dds)
[1] "Intercept" "sample_1" "sample_2" "sample_3" "sample_4" "conditionControl"
[7] "conditionTumor"
I was wondering if this is the right way of doing the analysis?
Only because this comes up so often: Of course you do have biological replicates: You have four patients, not just one. This counts as replications.
but these are samples are from four different patients.
Only because this comes up so often: Of course you do have biological replicates: You have four patients, not just one. This counts as replications.