We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bf7913 commit fe90034Copy full SHA for fe90034
.gitignore
@@ -156,4 +156,4 @@ Thumbs.db
156
# Common editor files
157
*~
158
*.swp
159
-_scratch/
+_scratch/
src/dask_ngs/_index.py
@@ -10,6 +10,7 @@
10
COMPRESSED_POSITION_SHIFT = 16
11
UNCOMPRESSED_POSITION_MASK = 0xFFFF
12
BLOCKSIZE = 65536
13
+BAM_PSEUDO_BIN = 37450
14
15
16
def read_bai(path: str):
@@ -36,7 +37,7 @@ def read_bai(path: str):
36
37
# bin number
38
bin_id = int.from_bytes(f.read(4), **int_kwargs)
39
- if bin_id == 37450:
40
+ if bin_id == BAM_PSEUDO_BIN:
41
# This is an entry that describes the "pseudo-bin" for the
42
# reference, using the same byte layout as normal bins but
43
# interpreted differently.
0 commit comments