Enter the body of text here
I have 3 questions about Paired Test in DESeq2.
First, I'd like to double check the design for the paired test. Here is the link https://support.bioconductor.org/p/58893/ , I got the answer. This design is for paired test. But, it looks like a two-way factorial without interaction for me. Could you confirm me it is similar to paired t-test?
design(dds) <- ~ patient + condition
Where 'patient' and 'condition' are factors which are columns in
colData(dds), and condition has levels: normal, tumor (where normal is
the
base level).
Then results(dds) will build a result table for tumor vs normal,
controlling for the patient effect.
Here is my colData:
colData(dds_matched)
DataFrame with 144 rows and 3 columns
Barcodes sample_type patient
<character> <factor> <factor>
TCGA-A3-3358-01A-01R-1541-07 TCGA-A3-3358-01A-01R.. tumour TCGA_A3_3358
TCGA-A3-3358-11A-01R-1541-07 TCGA-A3-3358-11A-01R.. normal TCGA_A3_3358
TCGA-A3-3387-01A-01R-1541-07 TCGA-A3-3387-01A-01R.. tumour TCGA_A3_3387
TCGA-A3-3387-11A-01R-1541-07 TCGA-A3-3387-11A-01R.. normal TCGA_A3_3387
TCGA-B0-4700-01A-02R-1541-07 TCGA-B0-4700-01A-02R.. tumour TCGA_B0_4700
... ... ... ...
Second, I have 72 patients, and each patient has tumour and normal data, so I have 144 samples in total. I used the design above, but it took a long time to run. Also, I got this as below. While, I also run this design WO considering the matching information "design =~ sample_type", it finished very quickly and WO anything reported.
dds_matched <- DESeqDataSetFromMatrix(expressionData.matched.for.DESeq, colData = condition_table, design =~ sample_type+patient)
dds_DE_matched <- DESeq(dds_matched)
estimating size factors
estimating dispersions
gene-wise dispersion estimates
2021-02-05 21:05:03.118 R[48867:3744773] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_attributesForCharacterIndex:reply:) block performed very slowly (1.25 secs).
2021-02-05 21:05:14.738 R[48867:3744773] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_attributesForCharacterIndex:reply:) block performed very slowly (1.09 secs).
2021-02-05 21:05:34.790 R[48867:3744773] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_attributesForCharacterIndex:reply:) block performed very slowly (1.05 secs).
2021-02-05 21:13:01.764 R[48867:3744773] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_attributesForCharacterIndex:reply:) block performed very slowly (2.30 secs).
2021-02-05 21:13:11.213 R[48867:3744773] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_attributesForCharacterIndex:reply:) block performed very slowly (2.44 secs).
2021-02-05 21:13:14.387 R[48867:3744773] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_attributesForCharacterIndex:reply:) block performed very slowly (2.37 secs).
mean-dispersion relationship
final dispersion estimates
2021-02-05 21:26:30.894 R[48867:3744773] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_attributesForCharacterIndex:reply:) block performed very slowly (2.02 secs).
2021-02-05 21:28:05.292 R[48867:3744773] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_attributesForCharacterIndex:reply:) block performed very slowly (1.93 secs).
2021-02-05 21:33:08.983 R[48867:3744773] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_attributesForCharacterIndex:reply:) block performed very slowly (1.89 secs).
fitting model and testing
15 rows did not converge in beta, labelled in mcols(object)$betaConv. Use larger maxit argument with nbinomWaldTest
Third, if I used this design "design =~ sample_type+patient", how should I feed the value for contrast? If it is 2-way factorial design, this means the effect of sample type. But, my experiment is paired data.
res_DE_matched <- results(dds_DE_matched, alpha=0.05, contrast=c("sample_type","tumour","normal"))
Thanks you so much!
Code should be placed in three backticks as shown below
# include your problematic code here with any corresponding output
# please also include the results of running the following in an R session
sessionInfo( )
Oh, and the IMKClient Stall has nothing to do with DESeq2. I'd recommend to consult with your local IT.