Skip to main content

Comprehensive Network Analysis for HiC

Project description

NOTE: For Paper Review, please follow the instruction below:

Latest updated on March/22/2021,

Comprehensive Network Analysis for HiC





Overview

This module is a Python package containing tool for network analysis of HiC data. It starts from HiC Interaction pairs, then generating network and clustering. Finally ranking all clusters by their interaction change.

System Requirements

Hardware Requirements

This package requires only a standard computer with enough RAM to support the in-memory operations.

Software Requirements

HicHub mainly depends on the Python scientific stack.

python <=3.3
pandas
numpy
pybedtools
python-igraph
scipy

If you want to convert .hic to input file faster, please install strawC. Detail: https://github.com/aidenlab/straw

Installation Guide

Recommend to use bioconda for installing. Create the environment from the environment_hichub.yml file:

conda env create -f environment_hichub.yml
python3 -m pip install hichub --user
python3 -m pip install numpy pandas pybedtools python-igraph scipy
https://bioconda.github.io/user/install.html

Or

Example of Running (Demo)

Input Format: HiC Interaction in txt format. Example of test data can be found in ~/test_data %% Convert .hic to required input format python convert_hic_to_pair.py -i ~/ -n NONE -f test.hic -r 10000

#chr	bin1	bin2	Cond1	Cond2
10	3000000	3010000	100	200

EXAMPLE:

%% Find hub by shrinked algorithm
callhub.py -i chr10_test.bed -f WT_na -b DKO_na -r 10000 -d 0.5
or (if callhub.py was not found in your path, please download this git and ./bin/callhub.py )
python3 ./bin/callhub.py -i chr10_WT_na-DKO_na.bed -f WT_na -b DKO_na -r 10000 -d 0.5

Options:

  -h, --help            show this help message and exit
  -i <file>, --in=<file>
                        Path to Input HiC file in txt format
  -f <str>, --foreground_name=<str>
                        Name of condition as foreground.
  -b <str>, --background_name=<str>
                        Name of condition as background.
  -r <int>, --resolution=<int>
                        Resolution of HiC txt
  -d <float>, --filtered_density=<float>
                        Density cutoff for hub shriking.

Output of Hubs:

0	1	2	hub_name	Num_vertices	pvalue
chr10	20930000	21060000	chr10:20930000-21060000	11	7.88966007260005e-09
chr10	19590000	19720000	chr10:19590000-19720000	11	7.809766623341443e-05
chr10	80210000	80340000	chr10:80210000-80340000	11	9.520611432439225e-05
chr10	95890000	96030000	chr10:95890000-96030000	14	0.00015075762147303865
Collect HiC Interaction in txt format, rank interaction change Hub. Input
Format should be: #chr        bin1    bin2    Cond1   Cond2

Options:
  -h, --help            show this help message and exit
  -i <file>, --in=<file>
                        Path to Input HiC file in txt format
  -f <str>, --foreground_name=<str>
                        Name of condition as foreground.
  -b <str>, --background_name=<str>
                        Name of condition as background.
  -r <int>, --resolution=<int>
                        Resolution of HiC txt
  -t <int>, --num_threads=<int>
                        Num_threads

Built With

Contributing

Please read (https:xx) for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

Authors

  • *Xiang Li Initial work

License

#This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

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

hichub-0.2.0.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

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

hichub-0.2.0-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file hichub-0.2.0.tar.gz.

File metadata

  • Download URL: hichub-0.2.0.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.10

File hashes

Hashes for hichub-0.2.0.tar.gz
Algorithm Hash digest
SHA256 680ea15a1526dc1b38789bb2e99ddf3d90c2ac4f9733587addee7e7d25d5b70e
MD5 8be287601300bea73b672fd77e9e71cb
BLAKE2b-256 187106f5bc5f722903dce8c8f8aa0798621263212d808b90b933262835c12456

See more details on using hashes here.

File details

Details for the file hichub-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: hichub-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.10

File hashes

Hashes for hichub-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0bc3e7769143a73a4a33b8a1c0ca4709b226ce52c8994715cfda89a6ba03b77
MD5 c167f3d95f7eed8a1117014e2b7e2de5
BLAKE2b-256 353dff629e75f69e5439595c1300a97ad206f0228a3efbef9bbb1bd68c5ef96e

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