Skip to content

Commit

Permalink
Add asterisks to function args
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Feb 26, 2024
1 parent 8f0d427 commit 468e35b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def check_data(ref_h, query_h):
return True


def convert_to_genetic_map_positions(pos, genetic_map=None):
def convert_to_genetic_map_positions(pos, *, genetic_map=None):
"""
Convert physical positions (bp) to genetic map positions (cM).
Expand Down Expand Up @@ -525,6 +525,7 @@ def run_interpolation_beagle(
ref_h,
query_h,
pos,
*,
ne=1e6,
error_rate=1e-4,
genetic_map=None,
Expand Down Expand Up @@ -601,6 +602,7 @@ def run_tsimpute(
pos,
tp,
mp,
*,
precision=22,
genetic_map=None,
):
Expand Down Expand Up @@ -778,7 +780,7 @@ def compute_dosage_r_squared(gt_probs):
pass


def compute_allele_frequency(gt_probs, allele=1):
def compute_allele_frequency(gt_probs, *, allele=1):
"""
Estimate the frequency of an allele at a site from posterior genotype probabilities.
Expand Down Expand Up @@ -809,7 +811,7 @@ def compute_allele_frequency(gt_probs, allele=1):
return est_allele_count_1 / (2 * n)


def write_vcf(impdata, out_file, chr_name="1"):
def write_vcf(impdata, out_file, *, chr_name="1"):
"""
Print imputation results in VCF format, following the output of BEAGLE 4.1.
Expand Down

0 comments on commit 468e35b

Please sign in to comment.