Skip to content

Commit 6aaee4f

Browse files
Will-Tylerjeromekelleher
authored andcommitted
Change local alleles default to false
1 parent 7c78a14 commit 6aaee4f

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

bio2zarr/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def list_commands(self, ctx):
152152
local_alleles = click.option(
153153
"--local-alleles/--no-local-alleles",
154154
show_default=True,
155-
default=True,
155+
default=False,
156156
help="Use local allele fields to reduce the storage requirements of the output.",
157157
)
158158

bio2zarr/vcf2zarr/icf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ def init(
11551155
if compressor is None:
11561156
compressor = ICF_DEFAULT_COMPRESSOR
11571157
if local_alleles is None:
1158-
local_alleles = True
1158+
local_alleles = False
11591159
vcfs = [pathlib.Path(vcf) for vcf in vcfs]
11601160
target_num_partitions = max(target_num_partitions, len(vcfs))
11611161

bio2zarr/vcf2zarr/verification.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,6 @@ def verify(vcf_path, zarr_path, show_progress=False):
170170
for colname in root.keys():
171171
if colname.startswith("call") and not colname.startswith("call_genotype"):
172172
vcf_name = colname.split("_", 1)[1]
173-
if vcf_name == "LAA" and vcf_name not in format_headers:
174-
continue # LAA could have been computed during the explode step.
175-
if vcf_name == "LPL" and vcf_name not in format_headers:
176-
continue # LPL could have been computed during the explode step.
177173
vcf_type = format_headers[vcf_name]["Type"]
178174
vcf_number = format_headers[vcf_name]["Number"]
179175
format_fields[vcf_name] = vcf_type, vcf_number, iter(root[colname])

tests/test_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
compressor=None,
1515
worker_processes=1,
1616
show_progress=True,
17-
local_alleles=True,
17+
local_alleles=False,
1818
)
1919

2020
DEFAULT_DEXPLODE_PARTITION_ARGS = dict()
@@ -24,7 +24,7 @@
2424
column_chunk_size=64,
2525
compressor=None,
2626
show_progress=True,
27-
local_alleles=True,
27+
local_alleles=False,
2828
)
2929

3030
DEFAULT_ENCODE_ARGS = dict(
@@ -54,7 +54,7 @@
5454
samples_chunk_size=None,
5555
show_progress=True,
5656
worker_processes=1,
57-
local_alleles=True,
57+
local_alleles=False,
5858
)
5959

6060
DEFAULT_PLINK_CONVERT_ARGS = dict(

tests/test_vcf_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ class Test1000G2020Example:
537537
@pytest.fixture(scope="class")
538538
def ds(self, tmp_path_factory):
539539
out = tmp_path_factory.mktemp("data") / "example.vcf.zarr"
540-
vcf2zarr.convert([self.data_path], out, worker_processes=0)
540+
vcf2zarr.convert([self.data_path], out, worker_processes=0, local_alleles=True)
541541
return sg.load_dataset(out)
542542

543543
def test_position(self, ds):

0 commit comments

Comments
 (0)