consenrich 0.6.3b1__cp311-cp311-macosx_11_0_arm64.whl → 0.7.1b1__cp311-cp311-macosx_11_0_arm64.whl
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.
Potentially problematic release.
This version of consenrich might be problematic. Click here for more details.
- consenrich/cconsenrich.c +404 -404
- consenrich/cconsenrich.cpython-311-darwin.so +0 -0
- consenrich/consenrich.py +216 -62
- consenrich/core.py +30 -17
- consenrich/detrorm.py +12 -3
- consenrich/matching.py +444 -369
- consenrich/misc_util.py +29 -0
- {consenrich-0.6.3b1.dist-info → consenrich-0.7.1b1.dist-info}/METADATA +3 -3
- {consenrich-0.6.3b1.dist-info → consenrich-0.7.1b1.dist-info}/RECORD +13 -13
- {consenrich-0.6.3b1.dist-info → consenrich-0.7.1b1.dist-info}/WHEEL +0 -0
- {consenrich-0.6.3b1.dist-info → consenrich-0.7.1b1.dist-info}/entry_points.txt +0 -0
- {consenrich-0.6.3b1.dist-info → consenrich-0.7.1b1.dist-info}/licenses/LICENSE +0 -0
- {consenrich-0.6.3b1.dist-info → consenrich-0.7.1b1.dist-info}/top_level.txt +0 -0
consenrich/misc_util.py
CHANGED
|
@@ -62,6 +62,35 @@ def checkBamFile(bamFile: str) -> bool:
|
|
|
62
62
|
return has_index
|
|
63
63
|
|
|
64
64
|
|
|
65
|
+
def bamsArePairedEnd(bamFiles: List[str], maxReads: int = 1_000) -> List[bool]:
|
|
66
|
+
"""
|
|
67
|
+
Take a list of BAM files, return a list (bool) indicating whether
|
|
68
|
+
each BAM contains paired-end reads (True) or only single-end reads (False).
|
|
69
|
+
|
|
70
|
+
:param bamFiles: List of paths to BAM files
|
|
71
|
+
:type bamFiles: List[str]
|
|
72
|
+
:param maxReads: Maximum number of reads to check in each BAM file
|
|
73
|
+
:type maxReads: int
|
|
74
|
+
:return: List of booleans corresponding to each BAM file
|
|
75
|
+
:rtype: List[bool]
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
results = []
|
|
79
|
+
for path in bamFiles:
|
|
80
|
+
paired = False
|
|
81
|
+
seen = 0
|
|
82
|
+
with sam.AlignmentFile(path, "rb") as bam:
|
|
83
|
+
for rec in bam.fetch(until_eof=True):
|
|
84
|
+
if rec.is_paired:
|
|
85
|
+
paired = True
|
|
86
|
+
break
|
|
87
|
+
seen += 1
|
|
88
|
+
if maxReads is not None and seen >= maxReads:
|
|
89
|
+
break
|
|
90
|
+
results.append(paired)
|
|
91
|
+
return results
|
|
92
|
+
|
|
93
|
+
|
|
65
94
|
def getChromSizesDict(
|
|
66
95
|
sizes_file: str,
|
|
67
96
|
excludeRegex: str = r"^chr[A-Za-z0-9]+$",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: consenrich
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.1b1
|
|
4
4
|
Summary: Genome-wide estimation of signals hidden in noisy multi-sample HTS datasets
|
|
5
5
|
Author-email: "Nolan H. Hamilton" <nolan.hamilton@unc.edu>
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -43,8 +43,8 @@ Consenrich is an adaptive linear state estimator that yields genome-wide, uncert
|
|
|
43
43
|
|
|
44
44
|
Special emphasis is placed on computational efficiency, model interpretability, and practical utility for downstream tasks that require well-resolved genome-wide signal estimates and uncertainty quantification across samples, such as:
|
|
45
45
|
|
|
46
|
-
* Consensus detection of open chromatin regions, TF
|
|
47
|
-
* Candidate
|
|
46
|
+
* Consensus detection of open chromatin regions, TF binding, histone modification, etc.
|
|
47
|
+
* Candidate prioritization for differential analyses, functional validation, integrative modeling, etc.
|
|
48
48
|
|
|
49
49
|
[**See the Documentation**](https://nolan-h-hamilton.github.io/Consenrich/) for usage examples, installation details, configuration options, and an API reference.
|
|
50
50
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
consenrich-0.
|
|
2
|
-
consenrich-0.
|
|
3
|
-
consenrich-0.
|
|
4
|
-
consenrich-0.
|
|
5
|
-
consenrich-0.
|
|
6
|
-
consenrich-0.
|
|
7
|
-
consenrich/detrorm.py,sha256=
|
|
8
|
-
consenrich/misc_util.py,sha256=
|
|
1
|
+
consenrich-0.7.1b1.dist-info/RECORD,,
|
|
2
|
+
consenrich-0.7.1b1.dist-info/WHEEL,sha256=sunMa2yiYbrNLGeMVDqEA0ayyJbHlex7SCn1TZrEq60,136
|
|
3
|
+
consenrich-0.7.1b1.dist-info/entry_points.txt,sha256=EXIGcSTyc16vtPkfHJNs-aaSVoq6Pn5Ev5GeW1JCYn0,58
|
|
4
|
+
consenrich-0.7.1b1.dist-info/top_level.txt,sha256=jsWw8GC11dOKPcdULXk-ggW357CO-vTNW6ssryqa21Q,11
|
|
5
|
+
consenrich-0.7.1b1.dist-info/METADATA,sha256=k4w1b9xjG8desy5lYNQ1Kzsj_HcyFn7nqpgRx5ghcIY,2539
|
|
6
|
+
consenrich-0.7.1b1.dist-info/licenses/LICENSE,sha256=w09-aT0LFrH_cL3ShJWz-xusRpbThwTpdmBD08tc8EI,1074
|
|
7
|
+
consenrich/detrorm.py,sha256=KeAgkPkcvFa1-DW0PKlyf64qy7m19KMnGHe6xE60SDw,8876
|
|
8
|
+
consenrich/misc_util.py,sha256=OIjYvwbkW2SbTNhqFO1LnVFuHJK3syU2M1Vzo2SeLc4,3675
|
|
9
9
|
consenrich/constants.py,sha256=5YdNjeyeR1iGbYJXACpxLFS2xVBoyN9bqC7InXPdqKw,5063
|
|
10
10
|
consenrich/__init__.py,sha256=lg02bx0LdXDIQ7Q-tky01xo0tOXYTcJeXqaCXNSFFyA,320
|
|
11
|
-
consenrich/core.py,sha256=
|
|
12
|
-
consenrich/matching.py,sha256=
|
|
13
|
-
consenrich/consenrich.py,sha256=
|
|
14
|
-
consenrich/cconsenrich.cpython-311-darwin.so,sha256=
|
|
11
|
+
consenrich/core.py,sha256=FduUGzQftb2br-5UTelhiDuswdVMwmNJTnxz6TXayBI,52732
|
|
12
|
+
consenrich/matching.py,sha256=kuzGG9ZuPY2ykCQxlKLnvSfhz9V91Ff2iaWW1uMgE2o,28053
|
|
13
|
+
consenrich/consenrich.py,sha256=OLbId6cZL8HqnH1P1rK9qz2ufIObiePEubQIX7o5AMw,38370
|
|
14
|
+
consenrich/cconsenrich.cpython-311-darwin.so,sha256=BzEc-OS3aafslJm0Cy7IMWFBpxlI3tc_HnPVbh6Vu9g,392816
|
|
15
15
|
consenrich/cconsenrich.pyx,sha256=Wht-d6sUJ-zma0rNHx4DcAIsooFaSR_BdftjJxCLRv8,32604
|
|
16
|
-
consenrich/cconsenrich.c,sha256=
|
|
16
|
+
consenrich/cconsenrich.c,sha256=FifCjZP6ZQmEv-YH8pnfj4JnfGDC4VCyUovkwiYm0EY,2052512
|
|
17
17
|
consenrich/data/hg19.sizes,sha256=ewnSktA_Ps1BoiU3yeLNaJxJO-taq3uKE4-6JUnly1o,365
|
|
18
18
|
consenrich/data/mm10.sizes,sha256=sgHMQGBr6yEm4hKqeN3auQJdlMX4ZdqDQ23EdDmWedU,320
|
|
19
19
|
consenrich/data/hg38_blacklist.bed,sha256=zbamE4bP5JJT-ivyDp61LjvaI00Wo-vd0oKtFxy_u4E,14940
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|