deeptools / HiCExplorer

HiCExplorer is a powerful and easy to use set of tools to process, normalize and visualize Hi-C data.
https://hicexplorer.readthedocs.org
GNU General Public License v3.0
227 stars 70 forks source link

Issue converting GInteractions object into InteractionSet #813

Open jb621-star opened 2 years ago

jb621-star commented 2 years ago

In the documentation, under Example Usage, is the page "Importing and Exporting HiCExplorer data".

I was able to follow the example up until the step of converting the .tsv file into a GInteraction object. However, the next part of the example usage returns NULL for the variable "combined" that is created:

# assuming hic.gi is a list of two GInteration objects hic.gi1 and hic.gi2
# hic.gi <- list(hic.gi1, hic.gi2)

# Get common regions between the two objects
combined <- unique(c(hic.gi$hic.gi1, hic.gi$hic.gi2))

This is likely because for me, hic.gi is NOT a list of two GInteraction objects. Given this issue, how would I convert hic.gi into an InteractionSet object for differential HiC analysis?

Thank you