Hi,
I have only recently come across ChIPQC, but I find it incredibly useful, especially in combination with Diffbind. Unfortunately, I can only use some its functionalities at the moment, as I keep encountering an error when I run the ChIPQCreport function:
sam = ChIPQC("DBsheet_SzabiChipSeq1.csv")
ChIPQCreport(sam)
Error in `*tmp*`[2] : object of type 'environment' is not subsettable
Calling traceback() reveals that the error occurs with plotRap(), which I next confirmed by attempting to run it separately, only to get the same error.
6: plotRap(object, facetBy = facetBy, addMetaData = addMetaData)
5: plotRap(object, facetBy = facetBy, addMetaData = addMetaData)
4: grid.draw(plot)
3: ggsave(plotRap(object, facetBy = facetBy, addMetaData = addMetaData),
filename = file.path(reportFolder, "Rap.png"))
2: ChIPQCreport(sam)
1: ChIPQCreport(sam)
Interestingly, when I run either the function or the report with a single sample (i.e. with QCsample), everything works fine. Just to make sure that there are no conflicting samples, I tried with every one of them individually, and they all succeeded. The same happened when I took an entirely different dataset and I repeated my previous steps: the report of the experiment failed, but individual samples were ok.
Am I doing anything wrong? This is my sample sheet:
SampleID | Tissue | Condition | bamReads | Replicates | Peaks | PeakCaller |
MOLM1 | MOLM1 | MOLM1 | MOLM1_161128_SN583_0220_AHGGYLADXY.bam | 1 | MOLM1_161128_SN583_0220_AHGGYLADXY_peaks_filtered.narrowPeak | narrow |
MUTZ3 | MUTZ3 | MUTZ3 | MUTZ3_161128_SN583_0220_AHGGYLADXY.bam | 1 | MUTZ3_161128_SN583_0220_AHGGYLADXY_peaks_filtered.narrowPeak | narrow |
CD34negCD15neg | MUTZ3 | CD34negCD15neg | MUTZ3_CD34neg_CD15neg_161128_SN583_0220_AHGGYLADXY.bam | 1 | MUTZ3_CD34neg_CD15neg_161128_SN583_0220_AHGGYLADXY_peaks_filtered.narrowPeak | narrow |
CD34negCD15pos | MUTZ3 | CD34negCD15pos | MUTZ3_CD34neg_CD15pos_161128_SN583_0220_AHGGYLADXY.bam | 1 | MUTZ3_CD34neg_CD15pos_161128_SN583_0220_AHGGYLADXY_peaks_filtered.narrowPeak | narrow |
Bulk | MUTZ3 | Bulk | MUTZ3_CD34neg_CD34pos_CD15neg_CD15pos_bulk_161128_SN583_0220_AHGGYLADXY.bam | 1 | MUTZ3_CD34neg_CD34pos_CD15neg_CD15pos_bulk_161128_SN583_0220_AHGGYLADXY_peaks_filtered.narrowPeak | narrow |
CD34posCD15neg | MUTZ3 | CD34posCD15neg | MUTZ3_CD34pos_CD15neg_161128_SN583_0220_AHGGYLADXY.bam | 1 | MUTZ3_CD34pos_CD15neg_161128_SN583_0220_AHGGYLADXY_peaks_filtered.narrowPeak | narrow |
I am aware that we have no replicates, but that is something we are currently working on.
Thanks in advance,
Roger
Hi Tim,
As I told you via email, the issue is fixed on ChIPQC 1.10.3 and now the report is successfully generated. Thanks!
However, in case anyone reading this stumbles upon the same, I would like to report an error uploading the ChIPQC experiment with R version 3.2 and Bioconductor 3.2. The error was gone as soon as I upgraded to R 3.3 (with both Bioconductor 3.3 and 3.4). Maybe it's just me, but I leave the warning here just in case.