Skip to content

Commit

Permalink
Skip writing force-inclusions a second time
Browse files Browse the repository at this point in the history
This fixes double-writing of the same record.
  • Loading branch information
victorlin committed Jun 30, 2022
1 parent 0bfd28a commit 4859b5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions augur/filter.py
Expand Up @@ -1429,6 +1429,10 @@ def run(args):
output_log_writer.writerow(filtered_strain)

if group_by:
# Prevent force-included sequences from being included again during
# subsampling.
seq_keep = seq_keep - distinct_force_included_strains

# If grouping, track the highest priority metadata records or
# count the number of records per group. First, we need to get
# the groups for the given records.
Expand Down

0 comments on commit 4859b5d

Please sign in to comment.