When using extractCounts() to pull from a bedpe file (read in as a data.frame and converted to a GInteractions object with as_ginteractions()), the resulting object contained no rows.
This turned out to be an issue with the chromosome names - in the loop bedpe file used they were listed as 1, 2, etc. However this portion of the extractCounts() function requires that they be in "chr1", "chr2" format:
When using
extractCounts()
to pull from a bedpe file (read in as a data.frame and converted to a GInteractions object withas_ginteractions()
), the resulting object contained no rows.This turned out to be an issue with the chromosome names - in the loop bedpe file used they were listed as 1, 2, etc. However this portion of the extractCounts() function requires that they be in "chr1", "chr2" format:
Simply pasting "chr" before the chromosomes in the original bedpe object fixed this issue!