Skip to content

Commit 49e75c7

Browse files
Move ICF code into icf.py
Note quite a clean break between modules, but not bad and a good step in the right direction.
1 parent d08b24d commit 49e75c7

File tree

8 files changed

+1350
-1335
lines changed

8 files changed

+1350
-1335
lines changed

bio2zarr/cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import numcodecs
99
import tabulate
1010

11-
from . import plink, provenance, vcf, vcf_utils
11+
from . import icf, plink, provenance, vcf, vcf_utils
1212

1313
logger = logging.getLogger(__name__)
1414

@@ -167,7 +167,7 @@ def check_overwrite_dir(path, force):
167167
def get_compressor(cname):
168168
if cname is None:
169169
return None
170-
config = vcf.ICF_DEFAULT_COMPRESSOR.get_config()
170+
config = icf.ICF_DEFAULT_COMPRESSOR.get_config()
171171
config["cname"] = cname
172172
return numcodecs.get_codec(config)
173173

@@ -198,7 +198,7 @@ def explode(
198198
"""
199199
setup_logging(verbose)
200200
check_overwrite_dir(icf_path, force)
201-
vcf.explode(
201+
icf.explode(
202202
icf_path,
203203
vcfs,
204204
worker_processes=worker_processes,
@@ -235,7 +235,7 @@ def dexplode_init(
235235
"""
236236
setup_logging(verbose)
237237
check_overwrite_dir(icf_path, force)
238-
work_summary = vcf.explode_init(
238+
work_summary = icf.explode_init(
239239
icf_path,
240240
vcfs,
241241
target_num_partitions=num_partitions,
@@ -263,7 +263,7 @@ def dexplode_partition(icf_path, partition, verbose, one_based):
263263
setup_logging(verbose)
264264
if one_based:
265265
partition -= 1
266-
vcf.explode_partition(icf_path, partition)
266+
icf.explode_partition(icf_path, partition)
267267

268268

269269
@click.command
@@ -274,7 +274,7 @@ def dexplode_finalise(icf_path, verbose):
274274
Final step for distributed conversion of VCF(s) to intermediate columnar format.
275275
"""
276276
setup_logging(verbose)
277-
vcf.explode_finalise(icf_path)
277+
icf.explode_finalise(icf_path)
278278

279279

280280
@click.command

0 commit comments

Comments
 (0)