Hi,
I have several samples divided into 5 conditions, such as A, B, C, D, E. All samples are from different tissues, no replicate. I want to differentiate them according to 5 conditions by DiffBind package, and display result on heatmap. So I did as follows:
>ALL <- dba(sampleSheet="mysamples.csv")
>ALL_count <- dba.count(ALL, summits=250)
>ALL_contrast <- dba.contrast(ALL_count, categories=DBA_CONDITION)
>ALL_analyze <- dba.analyze(ALL_contrast)
>plot(ALL_analyze)
But the heatmap do not show as the same as I expected, for example, a sample of A should belong to A, but it is mixed with sample of B on the heatmap.
Under the premise of not deleting the sample as much as possible, I want to ask how could I set up parameters to clearly differentiate samples by conditions? Or which parameter I could use for accomplishing my expectation?
Thanks for answering!
Best,
Meng
Thank you Mr. Stark!
As you said, I used "contrast = n " to compare my samples, thanks to your detailed manual. It's really helpful.
And I still wanted to plot a well-clustered heat map using the global binding matrix, so I tried "score=DBA_SCORE_READS" in dba.plotHeatmap, which displayed different results.
The samples were suddenly clustered well.
I checked the manual, but I could not fully understand it.
Thanks again!
Meng
The default is to use normalized counts. DBA_SCORE_READS uses non-normalized counts.