Dear @PoisonAlien,
When filtering sample pair at if(nrow(sample_pair) > 0){ unique(unlist(sample_pair[XY_possibly_paired == "Yes", .(X_bam, Y_bam)], use.names = FALSE)) }, the script fails if nrow is of length zero. This PR fixes this.
It also fixes issues described in PR #797
I've tested it on real data but please take a look.
Thanks
Dear @PoisonAlien, When filtering sample pair at
if(nrow(sample_pair) > 0){ unique(unlist(sample_pair[XY_possibly_paired == "Yes", .(X_bam, Y_bam)], use.names = FALSE)) }
, the script fails if nrow is of length zero. This PR fixes this.It also fixes issues described in PR #797
I've tested it on real data but please take a look. Thanks