You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ augur filter \
--metadata metadata.tsv \
--exclude-where nonexistent_column='value' \
--output-strains out.txt
0 strains were dropped during filtering
2 strains passed all filters
Run with --query:
$ augur filter \
--metadata metadata.tsv \
--query nonexistent_column!='value' \
--output-strains out.txt
...
pandas.core.computation.ops.UndefinedVariableError: name 'nonexistent_column' is not defined
Possible solution
Both exclusion options should be consistent, though behavior could be any of the following:
Pass silently (current behavior for --exclude-where)
Pass with warning
Error (current behavior for --query, but raise a custom FilterException to hide internal pandas implementation)
Your environment: if running Nextstrain locally
augur 14.0.0
The text was updated successfully, but these errors were encountered:
Current Behavior
--exclude-where nonexistent_column='value'
ignores the missing column silently--query nonexistent_column!='value'
raises a pandasUndefinedVariableError
Expected behavior
--exclude-where nonexistent_column='value'
and--query nonexistent_column!='value'
should produce the same effect.How to reproduce
Setup:
Run with
--exclude-where
:Run with
--query
:Possible solution
Both exclusion options should be consistent, though behavior could be any of the following:
--exclude-where
)--query
, but raise a customFilterException
to hide internal pandas implementation)Your environment: if running Nextstrain locally
augur 14.0.0
The text was updated successfully, but these errors were encountered: