Skip to content

Commit 7e77044

Browse files
Fix overly strict causal sample date
1 parent 181d2c5 commit 7e77044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sc2ts/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ def get_recombinant_samples(ts):
13201320
# Search the subtree for a causal sample.
13211321
for v in tree.nodes(u, order="levelorder"):
13221322
child = ts.node(v)
1323-
if child.is_sample() and child.metadata["date"] == recomb_date:
1323+
if child.is_sample() and child.metadata["date"] <= recomb_date:
13241324
edge = ts.edge(tree.edge(v))
13251325
assert edge.left == 0 and edge.right == ts.sequence_length
13261326
causal_sample = child

0 commit comments

Comments
 (0)