Skip to main content

Plot whole genome contact heatmap

Project description

PlotHiC

PlotHiC is used to visualize global interaction heatmaps after genome scaffolding.

Note: PlotHiC is currently under development. If you have any questions, please Open Issues or provide us with your comments via the email below.

Author: Zijie Jiang

Email: jzjlab@163.com

Content

Citations

If you used PlotHiC in your research, please cite us:

Zijie Jiang, Zhixiang Peng, Zhaoyuan Wei, Jiahe Sun, Yongjiang Luo, Lingzi Bie, Guoqing Zhang, Yi Wang, A deep learning-based method enables the automatic and accurate assembly of chromosome-level genomes, Nucleic Acids Research, 2024;, gkae789, https://doi.org/10.1093/nar/gkae789

Installation

  • Dependency : python = "^3.10"

pip

# pip install 
pip install plothic

Usage

Input file

  • genome.hic

This file is taken directly from 3d-dna, you need to select the final hic file (which has already been error adjusted and chromosome boundaries determined).

  • chr.tx
  1. This file is used for heatmap labeling. The first column is the name of the chromosome.
  2. The second column is the length of the chromosome (this length is the length of the hic file in Juicebox and can be manually determined from Juicebox).
  3. The third column is the order in which the chromosomes are placed, which is used to customize the arrangement of chromosomes (for example, from max to min).

Note: the length is in .hic file, not true base length.

# name length index
Chr1 24800000 5
Chr2 44380000 4
Chr3 63338000 3
Chr4 81187000 2
Chr5 97650000 1

example

  • Default order
plothic -hic genome.hic -chr chr.txt -r 100000

# -hic > .hic file 
# -chr > chromosome length (in .hic file)
# -r > resolution to visualization

  • Custom order
plothic -hic genome.hic -chr chr.txt -r 100000 --order

# -hic > .hic file 
# -chr > chromosome length (in .hic file)
# -r > resolution to visualization
# --order > 

other parameter

Color map

PlotHiC uses YlOrRd by default, you can choose more colors from Matplotlib.

Dev

Currently only use hic and chr txt are supported for visualization, and assembly files will be supported in the future. However, from the perspective of usage, using chr txt files seems to be more convenient. If you have better suggestions or other requirements, please Open Issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plothic-0.2.2.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plothic-0.2.2-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file plothic-0.2.2.tar.gz.

File metadata

  • Download URL: plothic-0.2.2.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for plothic-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a1b31f7cc8e1940cd14d4d700a7fb4d9143607840bc9a06a563b81e65a2cd8c4
MD5 d14a1b15090408cd885b4cbd29ae5380
BLAKE2b-256 25a68cca4fdcac0953e7bf74a3e497630717a4aec27229f19cc120fc0eb2a620

See more details on using hashes here.

File details

Details for the file plothic-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: plothic-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for plothic-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e7319b0c89602c951fb65e82eaaced99dab8a5fb1becb6a945c988173fb11d5
MD5 d44e7b83eaecbf01215f1e55497cb097
BLAKE2b-256 d4c1b9f2255b93ae81c2409cd5354b281800d24c50939fa29aeeb0277506e84a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page