Skip to main content

PlotHiC

PlotHiC is used to visualize whole genome-wide contact heatmaps after genome scaffolding.

Plothic's sample documentation is available here: example.

If you have any questions, please Open Issues or provide us with your comments via the email below.

Email: jzjlab@163.com


Content

Introduction

PlotHiC is utilised for the purpose of visualising genome-wide interaction heatmaps subsequent to de novo genome assembly. The software is compatible with both .hic and bed formats, and it is capable of adding chromosome names and custom visualization areas.

Installation

  • Dependency : python = "^3.10"

pip

# pip install 
pip install plothic

conda

# create plothic enviorment and install plothic
conda env create -n plothic -c bioconda  -c conda-forge plothic

# mamba env create -n plothic -c bioconda  -c conda-forge plothic

Usage

If you want to see detailed usage and documentation of plothic, you can get it from wiki.

A simple example of PlotHiC use .hic(from Juicer/3D-DNA)and bed(from HiCPro)format is presented below.

.hic format

  • 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).

  • Input file: chr.tx (3 columns as follows, use "\t" as separator)
  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 (example as below).

# name length index
Chr1	24800000	5
Chr2	44380000	4
Chr3	63338000	3
Chr4	81187000	2
Chr5	97650000	1
  • Example
# Default order (left)
plothic -hic genome.hic -chr chr.txt -r 100000

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


# Custom order (right )
plothic -hic genome.hic -chr chr.txt -r 100000 --order

# --order > Sort by the order in chr.txt(index)

If the color performance is not to your liking, you can set parameters --bar-max to adjust it, which is very useful.

HiCPro format

  • Input file: genome.matrix
  • Input file: genome_abs.bed

Both files are output from HiCPro. You can select a specific resolution based on your needs.

  • Input file (optional): order.txt, the content and format as follows:
# chr_name order
NC_003070.9	1
NC_003071.7	4
NC_003074.8	3
NC_003075.7	5
NC_003076.8	2
  • Example
# Default order (left)
plothic -matrix sample_500000.matrix --abs-bed sample_500000_abs.bed -format png -cmap viridis --bar-max 10000 -g PlotHiC 

# -matrix > matrix file
# --abs-bed > abs bed file 
# -format > result format
# -cmap > viridis color
# --bar-max > max contact to show
# -g > Genome name to show top

# Custom order (right )
plothic -matrix sample_500000.matrix --abs-bed sample_500000_abs.bed -format png -cmap viridis --bar-max 10000 -g PlotHiC-order --abs-order order.txt

# --abs-order > Sort by the order in order.txt

other parameter

Color map

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

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

Metadata

Release files for plothic 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plothic 1.0.0
File Size Uploaded Provenance Actions
plothic-1.0.0.tar.gz 24.7 kB Without provenance Details for plothic-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plothic 1.0.0
File Interpreter ABI Platform Actions
plothic-1.0.0-py3-none-any.whl Python 3 none any Details for plothic-1.0.0-py3-none-any.whl

Total release size: 50.0 kB

Release files / plothic-1.0.0.tar.gz

Download URL plothic-1.0.0.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b2830d9583fe8d2415df7bf00f2edc69100ada453f05eaf2bac8ce11f896f947
BLAKE2b-256 checksum
How to use checksums
6571bfc369f7e4e05bf11fa50c4f3b83e27c637570759058f73b51ed62a47955
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/8.5.0 keyring/24.3.1 pkginfo/1.11.2 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.32.3 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release files / plothic-1.0.0-py3-none-any.whl

Download URL plothic-1.0.0-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c852e1aa30bd05841a734a1cac2a57c9753a5cab1853e0658d159f067229e78
BLAKE2b-256 checksum
How to use checksums
3ec4456baae667f6801c63eed605961f3cb65614f4a83e8b4ea17b2d357f394b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/8.5.0 keyring/24.3.1 pkginfo/1.11.2 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.32.3 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Security for plothic 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page