I am trying to generate a scalogram from a hic experiment object containing a .mool and .pairs.gz file. The pairs file is the output of pairtools parse2 and includes the sam file header and many additional columns.
I am able to generate matrices from this hic object, and distance law calculations from the pairs file without issue. However, when I try to generate a scaleogram, I get the following error:
Error in .new_IRanges_from_start_width(start, width) : 'start' and 'width' must be numeric vectors
11. stop(wmsg("'start' and 'width' must be numeric vectors"))
10. .new_IRanges_from_start_width(start, width)
9. .new_IRanges(start = start, end = end, width = width)
8. IRanges::IRanges(anchors1[[2]], width = 1)
7. GenomicRanges::GRanges(anchors1[[1]], IRanges::IRanges(anchors1[[2]],width = 1))
6. .pairs2gi(con, ...)
5. import(FileForFormat(con, format), ...)
4. import(FileForFormat(con, format), ...)
3. BiocIO::import(pairsFile, format = "pairs")
2. BiocIO::import(pairsFile, format = "pairs")
1. scalogram(hic)
I get the same error when I try HiCExperiment::import on the pairs file alone. I can import the pairs.gz file using plyinteractions as suggested in other issues, but I am not clear how to add that to a hic object to generate a scaleogram plot.
Here's what the pairs.gz looks likes after importing with plyinteractions:
I have tried extracting the files and importing .pairs, tried removing header rows, and tried removing extra metadata columns and keep encountering this error. I have a different hic object containing a .pairs.gz file from the same experiment made with pairtools parse that generates a scaleogram without error.
Hello!
I am trying to generate a scalogram from a hic experiment object containing a .mool and .pairs.gz file. The pairs file is the output of
pairtools parse2
and includes the sam file header and many additional columns.I am able to generate matrices from this hic object, and distance law calculations from the pairs file without issue. However, when I try to generate a scaleogram, I get the following error:
I get the same error when I try
HiCExperiment::import
on the pairs file alone. I can import the pairs.gz file usingplyinteractions
as suggested in other issues, but I am not clear how to add that to a hic object to generate a scaleogram plot.Here's what the pairs.gz looks likes after importing with plyinteractions:
I have tried extracting the files and importing .pairs, tried removing header rows, and tried removing extra metadata columns and keep encountering this error. I have a different hic object containing a .pairs.gz file from the same experiment made with
pairtools parse
that generates a scaleogram without error.