File: __init__.py

package info (click to toggle)
python-cooler 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,596 kB
  • sloc: python: 10,555; makefile: 198; sh: 31
file content (39 lines) | stat: -rw-r--r-- 844 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import numpy as np

MAGIC = "HDF5::Cooler"
MAGIC_SCOOL = "HDF5::SCOOL"
MAGIC_MCOOL = "HDF5::MCOOL"

URL = "https://github.com/open2c/cooler"
CHROM_DTYPE = np.dtype("S")
CHROMID_DTYPE = np.int32
CHROMSIZE_DTYPE = np.int32
COORD_DTYPE = np.int32
BIN_DTYPE = np.int64
COUNT_DTYPE = np.int32
CHROMOFFSET_DTYPE = np.int64
BIN1OFFSET_DTYPE = np.int64
PIXEL_FIELDS = ("bin1_id", "bin2_id", "count")
PIXEL_DTYPES = (("bin1_id", BIN_DTYPE), ("bin2_id", BIN_DTYPE), ("count", COUNT_DTYPE))


from ._create import (
    append,
    create,
    create_cooler,
    create_from_unordered,
    create_scool,
    rename_chroms,
)
from ._ingest import (
    ArrayLoader,
    BadInputError,
    ContactBinner,
    HDF5Aggregator,
    PairixAggregator,
    TabixAggregator,
    aggregate_records,
    sanitize_pixels,
    sanitize_records,
    validate_pixels,
)