Skip to content

Commit

Permalink
Some notes on metadata tracing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromekelleher committed Sep 6, 2024
1 parent 05d977d commit d855036
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sc2ts/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,15 @@ def match_path_ts(samples, ts, path, reversions):
"samples": [sample.strain for sample in samples],
"path": [seg.asdict() for seg in path],
}
# FIXME this doesn't work because we don't actually
# use this node in the output trees. What we probably want to
# do is create a unique ID that we put into the metadata of
# every node we ultimately attach from this tree. That could
# be a hash of the sample IDs, I guess. It could record
# the number of samples also, usefully. Basically we want
# to enable tracing around the larger tree later, and to
# figure out which nodes were added at as part of a particular
# group, on a particular day.
tables.nodes.add_row(time=1, metadata={"sc2ts": md})
path = samples[0].path
site_id_map = {}
Expand Down

0 comments on commit d855036

Please sign in to comment.