claude-handoff
MAmattpocock/skills337k近 7 天新增 4,978 个 star
library(HiCExperiment)
library(HiContacts)
library(HiContactsData)
# Import Hi-C matrix
cool_file <- HiContactsData('yeast_wt', format = 'cool')
hic <- import(cool_file, format = 'cool')
# Perform matrix arithmetic
hic_detrended <- detrend(hic)
hic_smooth <- despeckle(hic)
# Plot contact map
plotMatrix(hic_smooth, use.scores = 'balanced.despeckled')
Input: A HiCExperiment object.
Output: Detrended, smoothed, or merged contact maps and their corresponding plots.
library(HiCExperiment)
library(HiContacts)
library(HiContactsData)
mcool_file <- HiContactsData('yeast_wt', format = 'mcool')
hic <- import(mcool_file, format = 'mcool', resolution = 1000)
# Calculate cis-trans ratios
ratios <- cisTransRatio(hic)
# Compute distance decay P(s) curves
ps <- distanceLaw(hic)
Input: A HiCExperiment object, optionally with an associated pairs file.
Output: A tibble of cis-trans ratios and distance decay P(s) curves.
library(HiCExperiment)
library(HiContacts)
library(HiContactsData)
mcool_file <- HiContactsData('yeast_wt', format = 'mcool')
hic <- import(mcool_file, format = 'mcool', resolution = 16000)
# Map chromosome compartments
hic <- getCompartments(hic, chromosomes = c('XV', 'XVI'))
# Compute insulation scores and borders
hic <- refocus(hic, 'II:1-300000') |>
zoom(resolution = 1000) |>
getDiamondInsulation(window_size = 8000) |>
getBorders()
Input: A HiCExperiment object.
Output: A HiCExperiment object updated with compartments, insulation scores, and domain borders.
plotMatrix().detrend()), autocorrelating (autocorrelate()), merging (merge()), dividing (divide()), and smoothing (despeckle()).getCompartments()), insulation scores (getDiamondInsulation()), and domain borders (getBorders()).distanceLaw() and plotting them with plotPs() or plotPsSlope().HiContacts.GenomicRanges or IRanges directly.HiCExperiment object imported from .cool, .mcool, .hic, or HiC-Pro files..pairs.gz) should be linked using pairsFile(hic) <- ....'balanced', 'detrended', 'autocorrelated').plotMatrix().despeckle().getDiamondInsulation().getCompartments().'balanced') rather than raw counts for comparative analyses.pairsFile() before running distanceLaw() to avoid approximations in the P(s) curve.rtracklayer::export().distanceLaw() without a pairs file: This results in an approximation warning. Fix by assigning a pairs file to the HiCExperiment object first.scale = 'log10' in plotMatrix() to improve visualization.diffHic: For differential analysis of Hi-C data using biological replicates.MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
DIDietrichGebert/ponytail203k近 7 天新增 4,904 个 star