I use the following codes to model batch effect for differential analysis from different batches.
ta <- dba(sampleSheet = "diff.csv") ta <- dba.count(ta, summits=75) ta <- dba.contrast(ta, categories=DBA_CONDITION, minMembers = 2, block=DBA_REPLICATE) ta <- dba.analyze(ta) ta.DB <- dba.report(ta, contrast=1, method=DBA_DESEQ2_BLOCK, bCounts=TRUE)
When I plot the PCA and heatmap after it, it shows the error:
"Error in pv.getPlotData(DBA, attributes = attributes, contrast = contrast, : Only one site to plot -- need at least 2!".
Any advice? Thanks!