Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Scool format support #201

Merged
merged 19 commits into from
Jul 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cooler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""
from ._version import __version__, __format_version__
from .api import Cooler, annotate
from .create import create_cooler, rename_chroms
from .create import create_cooler, rename_chroms, create_scool
from .reduce import merge_coolers, coarsen_cooler, zoomify_cooler
from .balance import balance_cooler
from .util import binnify, read_chromsizes, fetch_chromsizes
Expand Down
4 changes: 3 additions & 1 deletion cooler/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
__version__ = "0.8.8"
__version__ = "0.8.8-dev"
__format_version__ = 3
__format_version_scool__ = 1

4 changes: 3 additions & 1 deletion cooler/create/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import numpy as np

MAGIC = u"HDF5::Cooler"
MAGIC_SCOOL = u"HDF5::SCOOL"

URL = u"https://github.com/mirnylab/cooler"
CHROM_DTYPE = np.dtype("S")
CHROMID_DTYPE = np.int32
Expand All @@ -28,4 +30,4 @@
ContactBinner,
)

from ._create import create_cooler, create, create_from_unordered, append, rename_chroms
from ._create import create_cooler, create, create_from_unordered, append, rename_chroms, create_scool