@@ -271,7 +271,8 @@ def infer(
271
271
:type recombination_rate: float, msprime.RateMap
272
272
:param float mismatch_ratio: The probability of a mismatch relative to the median
273
273
probability of recombination between adjacent sites: can only be used if a
274
- recombination rate has been set (default: 1)
274
+ recombination rate has been set (default: ``None`` treated as 1 if
275
+ ``recombination_rate`` is set).
275
276
:param bool path_compression: Whether to merge edges that share identical
276
277
paths (essentially taking advantage of shared recombination breakpoints).
277
278
:param bool post_process: Whether to run the :func:`post_process` method on the
@@ -336,7 +337,10 @@ def infer(
336
337
)
337
338
if record_provenance :
338
339
tables = inferred_ts .dump_tables ()
339
- record = provenance .get_provenance_dict (command = "infer" )
340
+ record = provenance .get_provenance_dict (
341
+ command = "infer" ,
342
+ mismatch_ratio = mismatch_ratio ,
343
+ )
340
344
tables .provenances .add_row (record = json .dumps (record ))
341
345
inferred_ts = tables .tree_sequence ()
342
346
return inferred_ts
@@ -452,7 +456,8 @@ def match_ancestors(
452
456
:type recombination_rate: float, msprime.RateMap
453
457
:param float mismatch_ratio: The probability of a mismatch relative to the median
454
458
probability of recombination between adjacent sites: can only be used if a
455
- recombination rate has been set (default: 1)
459
+ recombination rate has been set (default: ``None`` treated as 1 if
460
+ ``recombination_rate`` is set).
456
461
:param bool path_compression: Whether to merge edges that share identical
457
462
paths (essentially taking advantage of shared recombination breakpoints).
458
463
:param int num_threads: The number of match worker threads to use. If
@@ -486,7 +491,9 @@ def match_ancestors(
486
491
tables .provenances .add_row (timestamp = timestamp , record = json .dumps (record ))
487
492
if record_provenance :
488
493
record = provenance .get_provenance_dict (
489
- command = "match_ancestors" , source = {"uuid" : ancestor_data .uuid }
494
+ command = "match_ancestors" ,
495
+ source = {"uuid" : ancestor_data .uuid },
496
+ mismatch_ratio = mismatch_ratio ,
490
497
)
491
498
tables .provenances .add_row (record = json .dumps (record ))
492
499
ts = tables .tree_sequence ()
@@ -541,7 +548,8 @@ def augment_ancestors(
541
548
:type recombination_rate: float, msprime.RateMap
542
549
:param float mismatch_ratio: The probability of a mismatch relative to the median
543
550
probability of recombination between adjacent sites: can only be used if a
544
- recombination rate has been set (default: 1)
551
+ recombination rate has been set (default: ``None`` treated as 1 if
552
+ ``recombination_rate`` is set).
545
553
:param bool path_compression: Whether to merge edges that share identical
546
554
paths (essentially taking advantage of shared recombination breakpoints).
547
555
:param int num_threads: The number of match worker threads to use. If
@@ -574,7 +582,10 @@ def augment_ancestors(
574
582
ts = manager .get_augmented_ancestors_tree_sequence (sample_indexes )
575
583
if record_provenance :
576
584
tables = ts .dump_tables ()
577
- record = provenance .get_provenance_dict (command = "augment_ancestors" )
585
+ record = provenance .get_provenance_dict (
586
+ command = "augment_ancestors" ,
587
+ mismatch_ratio = mismatch_ratio ,
588
+ )
578
589
tables .provenances .add_row (record = json .dumps (record ))
579
590
ts = tables .tree_sequence ()
580
591
return ts
@@ -628,7 +639,8 @@ def match_samples(
628
639
:type recombination_rate: float, msprime.RateMap
629
640
:param float mismatch_ratio: The probability of a mismatch relative to the median
630
641
probability of recombination between adjacent sites: can only be used if a
631
- recombination rate has been set (default: 1)
642
+ recombination rate has been set (default: ``None`` treated as 1 if
643
+ ``recombination_rate`` is set).
632
644
:param bool path_compression: Whether to merge edges that share identical
633
645
paths (essentially taking advantage of shared recombination breakpoints).
634
646
:param array_like indexes: An array of indexes into the sample_data file of
@@ -706,7 +718,10 @@ def match_samples(
706
718
if record_provenance :
707
719
tables = ts .dump_tables ()
708
720
# We don't have a source here because tree sequence files don't have a UUID yet.
709
- record = provenance .get_provenance_dict (command = "match_samples" )
721
+ record = provenance .get_provenance_dict (
722
+ command = "match_samples" ,
723
+ mismatch_ratio = mismatch_ratio ,
724
+ )
710
725
tables .provenances .add_row (record = json .dumps (record ))
711
726
ts = tables .tree_sequence ()
712
727
return ts
0 commit comments