File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77name = " 1kgp_chr20"
88path = " data/1kgp_chr20.vcz"
99# First 5Mb for development
10- regions = " chr20:1-10000000"
10+ # regions = "chr20:1-10000000"
1111include = ' TYPE="snp"'
1212
1313# wget https://ftp.ensembl.org/pub/release-115/variation/vcf/homo_sapiens/homo_sapiens-chr20.vcf.gz
@@ -24,9 +24,7 @@ name = "ancestors"
2424path = " data/ancestors.vcz" # output path for the ancestor store
2525sources = [" 1kgp_chr20" ] # which source(s) to build from
2626max_gap_length = 500_000
27- genotype_encoding = " one_bit"
28- # samples_chunk_size = 1000 # default: 1000 (ancestor dimension)
29- # variants_chunk_size = 1000 # default: 1000 (site dimension)
27+ samples_chunk_size = 100
3028
3129[match ]
3230output = " data/output.trees" # output tree sequence path
Original file line number Diff line number Diff line change 4141# Default constants
4242# ---------------------------------------------------------------------------
4343DEFAULT_MAX_GAP_LENGTH = 500_000
44- DEFAULT_SAMPLES_CHUNK_SIZE = 1000
45- DEFAULT_VARIANTS_CHUNK_SIZE = 1000
44+ DEFAULT_SAMPLES_CHUNK_SIZE = 100
45+ DEFAULT_VARIANTS_CHUNK_SIZE = 50_000
4646DEFAULT_GENOTYPE_ENCODING = 0 # 0 = eight-bit, 1 = one-bit
4747DEFAULT_COMPRESSOR = "zstd"
4848DEFAULT_COMPRESSION_LEVEL = 7
Original file line number Diff line number Diff line change @@ -502,8 +502,8 @@ def match(
502502 if progress :
503503 pbar = tqdm .tqdm (
504504 total = len (job_list ),
505- desc = f"Group { gi + 1 } / { num_groups } " ,
506- unit = "haplotypes " ,
505+ desc = f"Group { gi } ( { num_groups } ) " ,
506+ unit = "haps " ,
507507 )
508508 results = []
509509 for job , result in match_iter :
Original file line number Diff line number Diff line change 4848import queue
4949import threading
5050import time as _time
51+ import warnings
5152from typing import Any
5253
5354import numpy as np
@@ -2088,8 +2089,6 @@ def __init__(
20882089 chunks_fit ,
20892090 )
20902091 if cb > 0 and chunks_fit < 2 :
2091- import warnings
2092-
20932092 warnings .warn (
20942093 f"Cache can hold fewer than 2 chunks from source "
20952094 f"'{ name } ' (chunk={ cb / (1024 * 1024 ):.1f} MiB, "
You can’t perform that action at this time.
0 commit comments