Skip to content

Commit

Permalink
Rerun analyses for submission.
Browse files Browse the repository at this point in the history
  • Loading branch information
watronfire committed Nov 15, 2024
1 parent edafa6f commit c0163a8
Show file tree
Hide file tree
Showing 33 changed files with 1,090,330 additions and 1,089,412 deletions.
4 changes: 2 additions & 2 deletions analyses/estimate-introductions/estimate-introductions.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _identity_func( node ):
node_dict["earliest_date"] = min( children_dates )
node_dict["latest_date"] = max( children_dates )
inclusion_dates = [date for child, date in zip( node_dict["children.names"], children_dates ) if
not inclusion_dict[child]]
not inclusion_dict.get( child, True )] # Some taxa might be missing from the dictionary/metadata because they were removed as duplicates after the beast run. However, these are all workshop sequences so we can set missing to True.
try:
node_dict["earliest_date_ncg"] = min( inclusion_dates )
node_dict["latest_date_ncg"] = max( inclusion_dates )
Expand Down Expand Up @@ -139,4 +139,4 @@ def parse_lineages( trees, burnin, trait, states, metadata, output ):
args = parser.parse_args()

print( f"Parsing lineages for states: {args.states}")
parse_lineages( args.trees, args.burnin, args.trait, args.states, args.metadata, args.output )
parse_lineages( args.trees, args.burnin, args.trait, args.states, args.metadata, args.output )
Loading

0 comments on commit c0163a8

Please sign in to comment.