Skip to content

Commit

Permalink
Minor edits in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Jan 13, 2024
1 parent 509a606 commit ff5cfa1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def convert_to_genetic_map_position(pos, genetic_map_pos=None, genetic_map_cm=No
If a genetic map is specified, then the genetic map positions are
either taken straight from it or interpolated from it. The genetic map
needs to contain physical positions and corresponding genetic positions.
needs to contain physical positions and corresponding genetic map positions.
See `PlinkGenMap.java` in the BEAGLE 4.1 source code for details.
:param numpy.ndarray pos: Physical positions (bp).
Expand Down Expand Up @@ -63,8 +63,8 @@ def get_weights(genotyped_pos, ungenotyped_pos, genotyped_cm, ungenotyped_cm):
lambda_m,x = [g(m + 1) - g(x)] / [g(m + 1) - g(m)],
where g(i) = genetic map position of marker i.
:param numpy.ndarray genotyped_pos: Site positions of genotyped markers.
:param numpy.ndarray ungenotyped_pos: Site positions of ungenotyped markers.
:param numpy.ndarray genotyped_pos: Physical positions of genotyped markers.
:param numpy.ndarray ungenotyped_pos: Physical positions of ungenotyped markers.
:param numpy.ndarray genotyped_cm: Genetic map positions of genotyped markers.
:param numpy.ndarray ungenotyped_cm: Genetic map positions of ungenotyped markers.
:return: Weights and marker interval start indices.
Expand Down Expand Up @@ -106,7 +106,7 @@ def get_mismatch_prob(pos, miscall_rate):
In BEAGLE, the mismatch probability is dominated by the allelic miscall rate.
By default, it is set to 0.0001 and capped at 0.50.
:param numpy.ndarray pos: Site positions.
:param numpy.ndarray pos: Physical positions.
:param float miscall_rate: Allelic miscall rate.
:return: Mismatch probabilities.
:rtype: numpy.ndarray
Expand Down Expand Up @@ -289,8 +289,8 @@ def interpolate_allele_prob(
:param numpy.ndarray sm: HMM state probability matrix at genotyped markers.
:param numpy.ndarray ref_h: Reference haplotypes subsetted to imputed markers.
:param numpy.ndarray genotyped_pos: Site positions at genotyped markers.
:param numpy.ndarray ungenotyped_pos: Site positions at ungenotyped markers.
:param numpy.ndarray genotyped_pos: Physical positions at genotyped markers.
:param numpy.ndarray ungenotyped_pos: Physical positions at ungenotyped markers.
:param numpy.ndarray genotyped_cm: Genetic map positions at genotyped markers.
:param numpy.ndarray ungenotyped_cm: Genetic map positions at ungenotyped markers.
:return: Interpolated allele probabilities.
Expand Down Expand Up @@ -355,7 +355,7 @@ def run_beagle(
:param numpy.ndarray ref_h: Reference haplotypes.
:param numpy.ndarray query_h: One query haplotype.
:param numpy.ndarray pos: Site positions of all the markers.
:param numpy.ndarray pos: Physical positions of all the markers.
:param float miscall_rate: Allelic miscall rate.
:param int ne: Effective population size.
:param numpy.ndarray genetic_map_pos: Physical positions of genetic map.
Expand Down Expand Up @@ -425,7 +425,7 @@ def run_tsimpute(
:param numpy.ndarray ref_ts: Tree sequence containing reference haplotypes.
:param numpy.ndarray query_h: One query haplotype.
:param numpy.ndarray pos: Site positions of all the markers.
:param numpy.ndarray pos: Physical positions of all the markers.
:param numpy.ndarray mu: Mutation rate.
:param numpy.ndarray rho: Recombination rate.
:param int precision: Precision when running LS HMM (default = 22).
Expand Down

0 comments on commit ff5cfa1

Please sign in to comment.