본문으로 건너뛰기
cccskills
무료GitHub에 공개

bioconductor-hicontacts

HiContacts provides a collection of tools to analyse and visualize Hi-C datasets imported in R by HiCExperiment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

HiContacts

Workflows

Standard Workflow

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.

Contact Map Analysis

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.

Topological Feature Mapping

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.

When to Use

  • Visualizing Hi-C contact matrices as heatmaps (square or horizontal) using plotMatrix().
  • Performing matrix arithmetic such as detrending (detrend()), autocorrelating (autocorrelate()), merging (merge()), dividing (divide()), and smoothing (despeckle()).
  • Mapping chromosome compartments (getCompartments()), insulation scores (getDiamondInsulation()), and domain borders (getBorders()).
  • Analyzing distance decay curves using distanceLaw() and plotting them with plotPs() or plotPsSlope().

When NOT to Use

  • For initial raw sequence alignment or filtering of fastq files, use pipelines like HiC-Pro, distiller, or Juicer instead of HiContacts.
  • For general genomic interval manipulation without interaction data, use GenomicRanges or IRanges directly.

Data Requirements

  • A HiCExperiment object imported from .cool, .mcool, .hic, or HiC-Pro files.
  • For accurate distance decay P(s) curves, an associated pairs file (e.g., .pairs.gz) should be linked using pairsFile(hic) <- ....

Key Parameters

  • use.scores ('balanced'): Specifies which interaction score type to plot or analyze (e.g., 'balanced', 'detrended', 'autocorrelated').
  • limits (NULL): A numeric vector of length 2 specifying the color scale limits in plotMatrix().
  • maxDistance (NULL): Maximum distance from the diagonal to plot in horizontal matrices.
  • focal.size (5): Size of the focal window used for smoothing in despeckle().
  • window_size (8000): Window size in base pairs for computing diamond insulation scores in getDiamondInsulation().
  • chromosomes (NULL): Vector of chromosome names to restrict compartment calling in getCompartments().

Best Practices

  • Always use normalized scores (like 'balanced') rather than raw counts for comparative analyses.
  • Link a physical pairs file using pairsFile() before running distanceLaw() to avoid approximations in the P(s) curve.
  • Export computed topological features (e.g., compartments or insulation scores) to standard formats like BigWig or BED using rtracklayer::export().

Common Pitfalls

  • Running distanceLaw() without a pairs file: This results in an approximation warning. Fix by assigning a pairs file to the HiCExperiment object first.
  • Plotting matrices with extreme dynamic ranges without log transformation: Use scale = 'log10' in plotMatrix() to improve visualization.

Alternatives

  • diffHic: For differential analysis of Hi-C data using biological replicates.

Citations

  • Serizay J, Matthey-Doret C, Bignaud A, Baudry L, Koszul R (2024). "Orchestrating chromosome conformation capture analysis with Bioconductor." Nature Communications, 15, 1-9. doi:10.1038/s41467-024-44761-x.

References

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

The package contains functions for exploratory oligonucleotide array analysis. The dependence on tkWidgets only concerns few convenience functions. 'affy' is fully functional without it.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

This tool uses the label-tree function from HyPhy to annotate a phylogenetic tree. It allows users to select a subset of leaves using either a regular expression or a list of sequence names, and then apply a specified label to these selecte

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

This package provides a client for the Bioconductor AnnotationHub web resource. The AnnotationHub web resource provides a central location where genomic files (e.g., VCF, bed, wig) and other resources from standard locations (e.g., UCSC, En

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

apeglm provides Bayesian shrinkage estimators for effect sizes for a variety of GLM models, using approximation of the posterior for individual coefficients.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

ASURAT is a software for single-cell data analysis. Using ASURAT, one can simultaneously perform unsupervised clustering and biological interpretation in terms of cell type, disease, biological process, and signaling pathway activity. Inputting a single-cell RNA-seq data and knowledge-based databases, such as Cell Ontology, Gene Ontology, KEGG, etc., ASURAT transforms gene expression tables into original multivariate tables, termed sign-by-sample matrices (SSMs).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

AUCell allows to identify cells with active gene sets (e.g. signatures, gene modules...) in single-cell RNA-seq data. AUCell uses the "Area Under the Curve" (AUC) to calculate whether a critical subset of the input gene set is enriched with

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bioMate-AI/biomate-bioconductor-kb7972026년 6월 21일 업데이트

bioMate-AI의 스킬 모두 보기

이 스킬의 문제 신고