Skip to content

Commit

Permalink
feat: use chunking when reading from PGENs in simgenotype (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryarm authored Feb 7, 2025
1 parent 4c22846 commit 5ae546d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
- { python: "3.13", os: "ubuntu-latest", session: "tests" }
# - { python: "3.13", os: "ubuntu-latest", session: "tests" }
# - { python: "3.11", os: "windows-latest", session: "tests" }
- { python: "3.9", os: "macos-13", session: "tests" }
- { python: "3.12", os: "macos-latest", session: "tests" }
Expand Down
2 changes: 1 addition & 1 deletion haptools/sim_genotype.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def output_vcf(
# IE sample HG00097 is index 1 in a list of samples [HG00096 HG00097 HG00098]
# create sample dictionary that holds sample name to the index in the vcf file for quick access
if variant_file.endswith(".pgen"):
vcf = GenotypesPLINK(variant_file, log=log)
vcf = GenotypesPLINK(variant_file, chunk_size=chunk_size, log=log)
else:
vcf = GenotypesVCF(variant_file, log=log)

Expand Down
1 change: 0 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def tests(session: Session) -> None:
session.conda_install(
"coverage[toml]",
"pytest",
"numpy>=1.20.0",
channel="conda-forge",
)
install_handle_python_numpy(session)
Expand Down

0 comments on commit 5ae546d

Please sign in to comment.