Skip to main content

JOnTADS: a unified caller for TADs and stripes in Hi-C data

Project description

JOnTADS: a unified caller for TADs and stripes in Hi-C data

JOnTADS is a versatile tool for identifying Topologically Associating Domains (TADs) and stripes in various chromatin conformation capture data, including population Hi-C, single-cell Hi-C and micro-C. It allows for easy analysis of Hi-C data across multiple samples.

Dependencies

pip install numba==0.56.4  
pip install numpy==1.23.5  
pip install scipy==1.12.0  
pip install qpsolvers==2.7.3

Installation

pip install JOnTADS

Test Run

Suppose you are at the folder of this README file.

Single Sample Run

To identify TADs from a single sample, use the following command:

JOnTADS -F ./data/chr18.csv -O ./results/chr18.csv.tad

Multiple Samples Run

To analyze multiple samples simultaneously, use:

JOnTADS -F ./data/ES_rep1.chr18 ./data/ES_rep2.chr18 ./data/ME_rep1.chr18 ./data/ME_rep2.chr18 ./data/MS_rep1.chr18 ./data/MS_rep2.chr18 ./data/NP_rep1.chr18 ./data/NP_rep2.chr18 ./data/TP_rep1.chr18 ./data/TP_rep2.chr18 -O ./results/ES_rep1.chr18.tad ./results/ES_rep2.chr18.tad ./results/ME_rep1.chr18.tad ./results/ME_rep2.chr18.tad ./results/MS_rep1.chr18.tad ./results/MS_rep2.chr18.tad ./results/NP_rep1.chr18.tad ./results/NP_rep2.chr18.tad ./results/TP_rep1.chr18.tad ./results/TP_rep2.chr18.tad

Stripe Calling

To call stripes in addition to TADs:

JOnTADS -F ./data/chr18.csv -O ./results/chr18.csv.tad --stripe True --stripe_output ./results/chr18.csv.stripe --chr 18

Usage

You can run JOnTADS in your terminal via

JOnTADS -F ./data/chr18.csv -O ./results/chr18.csv.tad --stripe True --stripe_output ./results/chr18.csv.stripe --chr 18

or

python JOnTADS.py -F ./data/chr18.csv -O ./results/chr18.csv.tad --stripe True --stripe_output ./results/chr18.csv.stripe --chr 18

or in your python file via

from JOnTADS import JOnTADS, get_stripe
tads = JOnTADS(file_names, outputs)
stripes = get_stripe(file_name, chr_num)

Input and Output Format

Input Format

The input files should be Hi-C contact matrices separated by spaces or commas.

In progress: we are working on supporting supporting additional input formats.

Output Format

The output files contain information about the identified TADs or stripes.

For TAD calling, the output contains four columns:

start, end, TAD score, TAD size

For stripe calling, the output contains six columns

chr, x1, x2, chr, y1, y2

where the stripe extends from (x1, y1) to (x2, y2).

Parameters

  • -F: Input file(s) with Hi-C data.
  • -O: Output file(s) for the detected TADs.
  • -MAXSZ: Maximum size of TADs allowed, default 200.
  • -MINSZ: Minimum size of TADs allowed, default 7.
  • --stripe: Set to True to enable stripe detection.
  • -C: (When `stripe' is set to True) Chromosome number for stripe calling, e.g. 18.
  • --stripe_output: (When `stripe' is set to True) Output file for stripe calling results.

Contact

Feel free to contribute to the project by opening issues or pull requests. Any feedback or suggestions are highly appreciated. Correspondence should be addressed to qunhua.li@psu.edu. You can also contact the maintainer qiuhai.stat@gmail.com.

Happy analyzing your Hi-C data with JOnTADS!

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

JOnTADS-0.8.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

JOnTADS-0.8-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file JOnTADS-0.8.tar.gz.

File metadata

  • Download URL: JOnTADS-0.8.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for JOnTADS-0.8.tar.gz
Algorithm Hash digest
SHA256 0e6ccab7398b64a71ef5e4d72dec544e94c70b6704624251d9efe00fb04789ac
MD5 17fb0189a211a5c0bc0e79e452cfef76
BLAKE2b-256 aa678ed54920dd1a67e7445e78db0ccda1fb8b7f3f55a285808fbc7b71aaf40c

See more details on using hashes here.

File details

Details for the file JOnTADS-0.8-py3-none-any.whl.

File metadata

  • Download URL: JOnTADS-0.8-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for JOnTADS-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 998eae662c2a7823ef24458a61a593199b1cbb3a2ae255678423812fecdf4ad5
MD5 a9a91591fc64c0cb057e477971706154
BLAKE2b-256 e238ffa9b9d28624bcd4c98f30e0d5e65c2e7a4a0d38051986eaacf0e5ccb591

See more details on using hashes here.

Supported by

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