Skip to content

Commit

Permalink
update pipeline for new dfe wit h-s relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscrsmith committed Aug 22, 2023
1 parent eb16df2 commit 6769863
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions workflows/ts2fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ def f(x):
mut_types = {}
for dfe in ts.metadata["stdpopsim"]["DFEs"]:
for mt in dfe["mutation_types"]:
mid = mt["slim_mutation_type_id"]
if not mid in mut_types:
mut_types[mid] = "neutral" if mt["is_neutral"] else "non_neutral"
mids = mt["slim_mutation_type_id"]
for mid in mids:
if not mid in mut_types:
mut_types[mid] = "neutral" if mt["is_neutral"] else "non_neutral"

site_class = np.empty(ts.num_sites, dtype=object)
for j, s in enumerate(ts.sites()):
Expand Down

0 comments on commit 6769863

Please sign in to comment.