S4 class representing chromatin contact data from cooler files (.cool or
.mcool). Memory-efficient pointer that loads data only when import() is
called.
Details
Key features:
Memory-efficient: loads data only when needed
Flexible focusing: subset regions before or after import
Feature integration: automatically subsets attached features
Multi-resolution: supports both .cool and .mcool files
Focus parameter options:
Single region:
"chr1:1000000-2000000"Whole chromosome:
"chr1"Multiple regions (all combinations):
"chr1 | chr2"Inter-chromosomal only:
"chr1 & chr2"GInteractions object for programmatic control
Slots
cooler_pathCharacter. Path to cooler file.
resolutionInteger or NULL. Resolution in base pairs (required for .mcool files).
focusGInteractions or NULL. Genomic regions of interest (NULL for genome-wide).
interactionsGInteractions or NULL. Imported Hi-C interaction data.
seqinfoSeqinfo or NULL. Genome assembly sequence information.
compartmentsGRanges or NULL. A/B compartment annotations.
TADsGRanges or NULL. Topologically associating domains.
loopsGInteractions or NULL. Chromatin loop calls.
multi_contactsGRanges or NULL. Multi-way contact regions.
tracksGRangesList. Genomic signal tracks (ChIP-seq, ATAC-seq, etc.).
Examples
if (FALSE) { # \dontrun{
# Create and import
cc <- ChromatinContacts("data.cool") |> import()
# Focus on specific region
cc <- ChromatinContacts("data.cool", focus = "chr1:1-2e6") |> import()
# Multi-resolution cooler
cc <- ChromatinContacts("data.mcool", resolution = 10000) |> import()
# Add features
features(cc, "TADs") <- tads_granges
features(cc, "loops") <- loops_ginteractions
} # }
