A Tool for Multiplex Chromatin Interaction Analysis by Efficiently Sorting Chromatin Complexes
Project description
MIA-Sort: Multiplex Chromatin Interaction Analysis by Efficiently Sorting Chromatin Complexes
Installation
chmod +x ./bin/install.sh
./bin/install.sh
source env/bin/activate
Bedtools should also be installed. To do so, follow instructions on https://bedtools.readthedocs.io/en/latest/content/installation.html#. One of the options is:
$ mamba install -c conda-forge bedtools
Example Command for Running the Tool
python main.py \
--path1 GM12878-cohesin-pooled_comp_FDR_0.1_ALL_motifext4kbboth.region.PEanno \
--path2 test-july-1.bedte \
--type abc \
--graphs AtoC\;CtoA\;AandC\;Bcentered\;BtoA\;BtoC \
--numfrag_min 2 --anchor_options yes_complete --out_dir test_folder_unit
python main.py --path1 test_input.PEanno --type multiple --graphs null \
--region chr3:100000-108000\;chr3:300000-308000\;chr3:420000-428000 \
--operation yes\;yes\;yes --anchor_options yes_complete \
--out_dir test_folder_multiple
python main.py --path1 test_input.PEanno --type multiple --graphs null \
--region chr3:100000-108000\;chr3:150000-155000\;chr3:300000-308000\;chr3:420000-428000 \
--operation yes\;no\;yes\;yes --anchor_options yes_top \
--out_dir test_folder_multiple
Input Files
Anchors and Regions (.domains
)
chr1 982867 987410 chr1 1371055 1372952 1 313 363 984501 1372412 dm0 chr1 984316 984335 + 185 chr1 1372224 1372243 - 188
chr1 2194592 2197930 chr1 2378563 2382994 1 602 316 2195215 2381889 dm1 chr1 2195348 2195367 + 133 chr1 2381915 2381934 - 26
chr1 3452263 3454407 chr1 3618470 3620776 1 529 715 3453278 3619242 dm2 chr1 3453290 3453309 + 12 chr1 3619183 3619202 - 59
Every line is independent from each other. We will only do one line at a time. Each line will be conducted in only 1 second.
Column 1 and 2 (0-indexed) indicate the range of left anchor (left reference) and Column 4 and 5 indicate the right anchor.
We will need right anchor even when we do left anchor because we only want to rank GEMs that meet the left anchor and also with the rightmost fragment that is less than the right anchor region.
GEMs (.PEanno
)
chr10 101762606 101763188 2 SHG8033-100000080-AAACACCAGAGGGTAABX8033-HEA-5-2-sub-1-1 E
chr10 104102286 104102852 2 SHG8033-100000080-AAACACCAGAGGGTAABX8033-HEA-5-2-sub-1-1 E
chr10 88838102 88838730 2 SHG8033-100000171-AAACACCAGCGCCCTABX8033-HEA-4-0-sub-1-1 P
Every line represents a fragment. Column 1 (0-indexed) represents the left point and Column 2 represents the right point of the fragment.
Column 3 (0-indexed), in this case 2
, indicates the number of fragments in one GEM/chromatin complex.
Each GEM has a unique id (Column 4), so you can see that line 1 and 2 have the same Column 4 since they are the two fragments in the same GEM.
Ignore the 6th column.
License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International License.
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
Built Distribution
File details
Details for the file miasort-0.1.0.tar.gz
.
File metadata
- Download URL: miasort-0.1.0.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 875d8ae59347688b46a0e1f71f9e949cbe72dd09558b39aa4bcc5160cdc44d16 |
|
MD5 | 33fcbfa29b621dd9ad0b7524e3198990 |
|
BLAKE2b-256 | 1130bcbc64c52711627f1ffad9dcbc4d44a5eb9bb3fabaf26f337afed57ff367 |
File details
Details for the file miasort-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: miasort-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b81d65c63f8f90a20eb9a6643dfa1b84667573e182ec26a1765aefda4f6ca6a |
|
MD5 | f8b3ecef64640b7abcc3d9c689d8c0b7 |
|
BLAKE2b-256 | c63e19697c8a98a43750c8b6a6f0f4c2206c38e9f10e182c6e9de21a0e5f3553 |