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/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.6.3b1
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 footprints, nucleosome occupancy, histone modification
47
- * Candidate selection and boundary refinement for differential analyses, fine-mapping, reporter assays, etc.
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.6.3b1.dist-info/RECORD,,
2
- consenrich-0.6.3b1.dist-info/WHEEL,sha256=sunMa2yiYbrNLGeMVDqEA0ayyJbHlex7SCn1TZrEq60,136
3
- consenrich-0.6.3b1.dist-info/entry_points.txt,sha256=EXIGcSTyc16vtPkfHJNs-aaSVoq6Pn5Ev5GeW1JCYn0,58
4
- consenrich-0.6.3b1.dist-info/top_level.txt,sha256=jsWw8GC11dOKPcdULXk-ggW357CO-vTNW6ssryqa21Q,11
5
- consenrich-0.6.3b1.dist-info/METADATA,sha256=MAf49unrS7M1GZ0pU2s5TJAk2ZYJ3pJ6nfxlUXiMFm8,2563
6
- consenrich-0.6.3b1.dist-info/licenses/LICENSE,sha256=w09-aT0LFrH_cL3ShJWz-xusRpbThwTpdmBD08tc8EI,1074
7
- consenrich/detrorm.py,sha256=aJf4uZy2qgDIFfkOpTPJw2akVZ6H8-K64UZ63C6aZBw,8508
8
- consenrich/misc_util.py,sha256=SoUCgiON_9dbRbrZQoN2NlitDn6fhOgxe4hBYmWvZaI,2726
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=RYRBVNoRCFlOYaD_KHApzIy9CcYIoewPT160o8IlM24,52302
12
- consenrich/matching.py,sha256=UdZfuoDxeiPLgwtu246rYnNrF4QQRUUeezo5Xcbn_4Y,27725
13
- consenrich/consenrich.py,sha256=f2ZvuQO5AsSS5oo2vxekMGpeEzLSsee04CKXFknr7FI,35486
14
- consenrich/cconsenrich.cpython-311-darwin.so,sha256=tlE_iCFWNfkpQQthQrC_y5VJ8Qdg640mw_B-YLvs8YE,392816
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=fL1mF_9kyb1rt1Hi4ryX-0FdFwUT-KzYCRS_HCye_Cc,2052512
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