consenrich 0.0.1b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- consenrich-0.0.1b1/MANIFEST.in +16 -0
- consenrich-0.0.1b1/PKG-INFO +100 -0
- consenrich-0.0.1b1/README.md +73 -0
- consenrich-0.0.1b1/consenrich/__init__.py +2 -0
- consenrich-0.0.1b1/consenrich/consenrich.py +1402 -0
- consenrich-0.0.1b1/consenrich/misc_util.py +233 -0
- consenrich-0.0.1b1/consenrich/refdata/dm6.sizes +7 -0
- consenrich-0.0.1b1/consenrich/refdata/dm6_blacklist.bed +182 -0
- consenrich-0.0.1b1/consenrich/refdata/dm6_sparse.bed +20000 -0
- consenrich-0.0.1b1/consenrich/refdata/hg38.sizes +24 -0
- consenrich-0.0.1b1/consenrich/refdata/hg38_blacklist.bed +636 -0
- consenrich-0.0.1b1/consenrich/refdata/hg38_sparse.bed +288699 -0
- consenrich-0.0.1b1/consenrich/refdata/mm10.sizes +21 -0
- consenrich-0.0.1b1/consenrich/refdata/mm10_blacklist.bed +3435 -0
- consenrich-0.0.1b1/consenrich/refdata/mm10_sparse.bed +100400 -0
- consenrich-0.0.1b1/consenrich/refdata/mm39.sizes +21 -0
- consenrich-0.0.1b1/consenrich/refdata/mm39_blacklist.bed +3360 -0
- consenrich-0.0.1b1/consenrich/refdata/mm39_sparse.bed +100381 -0
- consenrich-0.0.1b1/consenrich.egg-info/PKG-INFO +100 -0
- consenrich-0.0.1b1/consenrich.egg-info/SOURCES.txt +28 -0
- consenrich-0.0.1b1/consenrich.egg-info/dependency_links.txt +1 -0
- consenrich-0.0.1b1/consenrich.egg-info/entry_points.txt +2 -0
- consenrich-0.0.1b1/consenrich.egg-info/requires.txt +12 -0
- consenrich-0.0.1b1/consenrich.egg-info/top_level.txt +1 -0
- consenrich-0.0.1b1/docs/ChIP_POL2RA_Demo.png +0 -0
- consenrich-0.0.1b1/docs/figure_1aa.png +0 -0
- consenrich-0.0.1b1/pyproject.toml +3 -0
- consenrich-0.0.1b1/setup.cfg +4 -0
- consenrich-0.0.1b1/setup.py +55 -0
- consenrich-0.0.1b1/tests/test_consenrich.py +39 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
include *.md
|
|
2
|
+
recursive-include consenrich/ *.py
|
|
3
|
+
recursive-include consenrich/refdata/ hg38.sizes
|
|
4
|
+
recursive-include consenrich/refdata/ hg38_sparse.bed
|
|
5
|
+
recursive-include consenrich/refdata/ hg38_blacklist.bed
|
|
6
|
+
recursive-include consenrich/refdata/ mm10.sizes
|
|
7
|
+
recursive-include consenrich/refdata/ mm10_sparse.bed
|
|
8
|
+
recursive-include consenrich/refdata/ mm10_blacklist.bed
|
|
9
|
+
recursive-include consenrich/refdata/ mm39.sizes
|
|
10
|
+
recursive-include consenrich/refdata/ mm39_sparse.bed
|
|
11
|
+
recursive-include consenrich/refdata/ mm39_blacklist.bed
|
|
12
|
+
recursive-include consenrich/refdata/ dm6.sizes
|
|
13
|
+
recursive-include consenrich/refdata/ dm6_sparse.bed
|
|
14
|
+
recursive-include consenrich/refdata/ dm6_blacklist.bed
|
|
15
|
+
recursive-include docs/ figure_1aa.png
|
|
16
|
+
recursive-include docs/ ChIP_POL2RA_Demo.png
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: consenrich
|
|
3
|
+
Version: 0.0.1b1
|
|
4
|
+
Summary: Genome-wide extraction of reproducible continuous-valued signals hidden in noisy multisample functional genomics data
|
|
5
|
+
Author: Nolan H. Hamilton, Benjamin D. McMichael, Michael I. Love, Terrence S. Furey
|
|
6
|
+
Author-email: nolan.hamilton@unc.edu, bdmcmi@ad.unc.edu, milove@email.unc.edu, tsfurey@email.unc.edu
|
|
7
|
+
License: MIT
|
|
8
|
+
Keywords: genomics,functional genomics,epigenomics,epigenetics,signal processing,data fusion,state estimator,filter
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Science/Research
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
14
|
+
Requires-Python: >=3.9
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
Requires-Dist: numpy>=1.23
|
|
17
|
+
Requires-Dist: scipy>=1.11
|
|
18
|
+
Requires-Dist: pandas
|
|
19
|
+
Requires-Dist: pysam
|
|
20
|
+
Requires-Dist: pybedtools
|
|
21
|
+
Requires-Dist: deeptools
|
|
22
|
+
Requires-Dist: pyBigWig
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: pytest; extra == "dev"
|
|
25
|
+
Requires-Dist: sphinx; extra == "dev"
|
|
26
|
+
Requires-Dist: twine; extra == "dev"
|
|
27
|
+
|
|
28
|
+
# Consenrich
|
|
29
|
+
|
|
30
|
+
[](https://github.com/nolan-h-hamilton/Consenrich/actions/workflows/Tests.yml)
|
|
31
|
+
|
|
32
|
+
*Consenrich is a sequential genome-wide state estimator for extraction of reproducible, spatially-resolved, epigenomic signals hidden in noisy multisample HTS data.*
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
* **Input**:
|
|
37
|
+
* $m \geq 1$ Sequence alignment files `-t/--bam_files` corresponding to each sample in a given HTS experiment
|
|
38
|
+
* (*Optional*): $m_c = m$ control sample alignments, `-c/--control_files`, for each 'treatment' sample (e.g., ChIP-seq)
|
|
39
|
+
|
|
40
|
+
* **Output**: Real-valued 'consensus' epigenomic state estimates (BedGraph/BigWig) and uncertainty metrics.
|
|
41
|
+
* As a robust, spatially informative representation of multiple samples' epigenomic profiles, Consenrich-extracted signal tracks can present additional insight for a variety of conventional analyses aiming to construct encompassing regulatory characterizations of sample groups (e.g., [consensus peak calling](docs/peaks_demo.png), mixed-assay peak calling, etc.)
|
|
42
|
+
* Consenrich also offers potential for various [spectral analyses](docs/filter_comparison.png), e.g., targeted detection of signal patterns associated with specific regulatory properties/states.
|
|
43
|
+
|
|
44
|
+
Several technical features of Consenrich are discussed [below](#technical-features).
|
|
45
|
+
|
|
46
|
+
## Example Command-Line Use
|
|
47
|
+
|
|
48
|
+
* Run Consenrich on ten ATAC-seq samples in the current directory. Generate a BigWig signal track and inverse-variance-weighted residuals.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
consenrich --bam_files *.bam -g hg38 -o hg38_test_output.tsv --signal_bigwig demo_signal.bw --residual_bigwig demo_ivw_residuals.bw
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+

|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
* Use Consenrich for ChIP-seq enrichment analysis with treatment/control sample alignments (POL2RA, six donors' colon tissue samples). Generate separate BigWig output tracks for signal estimates and inverse-variance weighted residuals. Use fixed-width genomic intervals of 25bp:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
consenrich \
|
|
62
|
+
--bam_files \
|
|
63
|
+
ENCSR322JEO_POL2RA.bam \
|
|
64
|
+
ENCSR472VBD_POL2RA.bam \
|
|
65
|
+
ENCSR431EHE_POL2RA.bam \
|
|
66
|
+
ENCSR724FCJ_POL2RA.bam \
|
|
67
|
+
ENCSR974HQI_POL2RA.bam \
|
|
68
|
+
ENCSR132XRW_POL2RA.bam \
|
|
69
|
+
--control_files \
|
|
70
|
+
ENCSR322JEO_CTRL.bam \
|
|
71
|
+
ENCSR472VBD_CTRL.bam \
|
|
72
|
+
ENCSR431EHE_CTRL.bam \
|
|
73
|
+
ENCSR724FCJ_CTRL.bam \
|
|
74
|
+
ENCSR974HQI_CTRL.bam \
|
|
75
|
+
ENCSR132XRW_CTRL.bam \
|
|
76
|
+
-g hg38 --step 25 \
|
|
77
|
+
-o Consenrich_POL2RA.tsv \
|
|
78
|
+
--signal_bigwig Consenrich_POL2RA_CTRL_Signal.bw \
|
|
79
|
+
--residual_bigwig Consenrich_POL2RA_CTRL_IVW_Residuals.bw
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Output**
|
|
83
|
+

|
|
84
|
+
|
|
85
|
+
## Download/Install
|
|
86
|
+
|
|
87
|
+
Consenrich can be easily downloaded and installed from source:
|
|
88
|
+
|
|
89
|
+
1. `git clone https://github.com/nolan-h-hamilton/Consenrich.git`
|
|
90
|
+
2. `cd Consenrich`
|
|
91
|
+
3. `python setup.py sdist bdist_wheel`
|
|
92
|
+
4. `python -m pip install .`
|
|
93
|
+
5. Check installation: `consenrich --help`
|
|
94
|
+
|
|
95
|
+
## Technical Features
|
|
96
|
+
|
|
97
|
+
* Effectively models sample-and-region-varying noise to better integrate data across heterogeneous samples
|
|
98
|
+
* Balances biologically-informed *a priori* predictions with observed HTS data to determine final estimates
|
|
99
|
+
* Provides interpretable uncertainty quantification with respect to multiple model aspects
|
|
100
|
+
* Runs efficiently in linear time with respect to genome size.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Consenrich
|
|
2
|
+
|
|
3
|
+
[](https://github.com/nolan-h-hamilton/Consenrich/actions/workflows/Tests.yml)
|
|
4
|
+
|
|
5
|
+
*Consenrich is a sequential genome-wide state estimator for extraction of reproducible, spatially-resolved, epigenomic signals hidden in noisy multisample HTS data.*
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
* **Input**:
|
|
10
|
+
* $m \geq 1$ Sequence alignment files `-t/--bam_files` corresponding to each sample in a given HTS experiment
|
|
11
|
+
* (*Optional*): $m_c = m$ control sample alignments, `-c/--control_files`, for each 'treatment' sample (e.g., ChIP-seq)
|
|
12
|
+
|
|
13
|
+
* **Output**: Real-valued 'consensus' epigenomic state estimates (BedGraph/BigWig) and uncertainty metrics.
|
|
14
|
+
* As a robust, spatially informative representation of multiple samples' epigenomic profiles, Consenrich-extracted signal tracks can present additional insight for a variety of conventional analyses aiming to construct encompassing regulatory characterizations of sample groups (e.g., [consensus peak calling](docs/peaks_demo.png), mixed-assay peak calling, etc.)
|
|
15
|
+
* Consenrich also offers potential for various [spectral analyses](docs/filter_comparison.png), e.g., targeted detection of signal patterns associated with specific regulatory properties/states.
|
|
16
|
+
|
|
17
|
+
Several technical features of Consenrich are discussed [below](#technical-features).
|
|
18
|
+
|
|
19
|
+
## Example Command-Line Use
|
|
20
|
+
|
|
21
|
+
* Run Consenrich on ten ATAC-seq samples in the current directory. Generate a BigWig signal track and inverse-variance-weighted residuals.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
consenrich --bam_files *.bam -g hg38 -o hg38_test_output.tsv --signal_bigwig demo_signal.bw --residual_bigwig demo_ivw_residuals.bw
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
* Use Consenrich for ChIP-seq enrichment analysis with treatment/control sample alignments (POL2RA, six donors' colon tissue samples). Generate separate BigWig output tracks for signal estimates and inverse-variance weighted residuals. Use fixed-width genomic intervals of 25bp:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
consenrich \
|
|
35
|
+
--bam_files \
|
|
36
|
+
ENCSR322JEO_POL2RA.bam \
|
|
37
|
+
ENCSR472VBD_POL2RA.bam \
|
|
38
|
+
ENCSR431EHE_POL2RA.bam \
|
|
39
|
+
ENCSR724FCJ_POL2RA.bam \
|
|
40
|
+
ENCSR974HQI_POL2RA.bam \
|
|
41
|
+
ENCSR132XRW_POL2RA.bam \
|
|
42
|
+
--control_files \
|
|
43
|
+
ENCSR322JEO_CTRL.bam \
|
|
44
|
+
ENCSR472VBD_CTRL.bam \
|
|
45
|
+
ENCSR431EHE_CTRL.bam \
|
|
46
|
+
ENCSR724FCJ_CTRL.bam \
|
|
47
|
+
ENCSR974HQI_CTRL.bam \
|
|
48
|
+
ENCSR132XRW_CTRL.bam \
|
|
49
|
+
-g hg38 --step 25 \
|
|
50
|
+
-o Consenrich_POL2RA.tsv \
|
|
51
|
+
--signal_bigwig Consenrich_POL2RA_CTRL_Signal.bw \
|
|
52
|
+
--residual_bigwig Consenrich_POL2RA_CTRL_IVW_Residuals.bw
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Output**
|
|
56
|
+

|
|
57
|
+
|
|
58
|
+
## Download/Install
|
|
59
|
+
|
|
60
|
+
Consenrich can be easily downloaded and installed from source:
|
|
61
|
+
|
|
62
|
+
1. `git clone https://github.com/nolan-h-hamilton/Consenrich.git`
|
|
63
|
+
2. `cd Consenrich`
|
|
64
|
+
3. `python setup.py sdist bdist_wheel`
|
|
65
|
+
4. `python -m pip install .`
|
|
66
|
+
5. Check installation: `consenrich --help`
|
|
67
|
+
|
|
68
|
+
## Technical Features
|
|
69
|
+
|
|
70
|
+
* Effectively models sample-and-region-varying noise to better integrate data across heterogeneous samples
|
|
71
|
+
* Balances biologically-informed *a priori* predictions with observed HTS data to determine final estimates
|
|
72
|
+
* Provides interpretable uncertainty quantification with respect to multiple model aspects
|
|
73
|
+
* Runs efficiently in linear time with respect to genome size.
|