Skip to content

Commit

Permalink
Report how many strains were excluded by the --exclude-all flag
Browse files Browse the repository at this point in the history
Outputs how many "available strains" were initially dropped by the
`--exclude-all` flag.
  • Loading branch information
huddlej committed Feb 25, 2021
1 parent 13dcd38 commit 26ec5b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions augur/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def run(args):

# Exclude all strains by default.
if args.exclude_all:
num_excluded_by_all = len(available_strains)
seq_keep = set()

# remove strains explicitly excluded by name
Expand Down Expand Up @@ -561,6 +562,8 @@ def run(args):
if num_excluded_by_lack_of_metadata:
print(f"\t{num_excluded_by_lack_of_metadata} had no metadata")

if args.exclude_all:
print(f"\t{num_excluded_by_all} of these were dropped by `--exclude-all`")
if args.exclude:
print("\t%i of these were dropped because they were in %s" % (num_excluded_by_name, args.exclude))
if args.exclude_where:
Expand Down

0 comments on commit 26ec5b6

Please sign in to comment.