Skip to content

Commit

Permalink
make chunk_size param to output_vcf optional
Browse files Browse the repository at this point in the history
  • Loading branch information
aryarm authored Dec 20, 2024
1 parent d1f7e42 commit 2eafd95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion haptools/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def simgenotype(
sample_field,
no_replacement,
out,
chunk_size,
log,
chunk_size,
)
end = time.time()

Expand Down
6 changes: 4 additions & 2 deletions haptools/sim_genotype.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def output_vcf(
sample_field,
no_replacement,
out,
chunk_size,
log
log,
chunk_size = None,
):
"""
Takes in simulated breakpoints and uses reference files, vcf and sampleinfo,
Expand Down Expand Up @@ -71,6 +71,8 @@ def output_vcf(
output prefix
log: log object
Outputs messages to the appropriate channel.
chunk_size: int, optional
The max number of variants to write to a PGEN file together
"""

log.info(f"Outputting file {out}")
Expand Down

0 comments on commit 2eafd95

Please sign in to comment.