We would like to run ChIPQC on two samples with narrowPeak files. However, we obtain the error in if (nrow(pv$binding) > 0) { : argument is of length zero, as recorded below. The "runChIPQC.R" script was previously described here: C: ChIPQC without peak calls. Do you know what causes this error, and how it can be resolved?

We are still unable to fix this. We are successfully able to process each sample individually by disabling faceting (as previously mentioned in C: ChIPQC for a single sample (disabling facets)). We are also able to process samples with multiple replicates using the workaround below: