Hi,
I get this error when running augur filter, and I’m not quite sure how to investigate the problem. I run this build every week with Gisaid data, so I suspect there might be some strange strain names or something?
[Thu Aug 10 08:27:43 2023]
Job 16:
Subsample all sequences by 'country' scheme for build 'omicron_xbb' with the following parameters:
- group by:
- sequences per group:
- subsample max sequences:
- min-date: --min-date 2023-01-01
- max-date:
-
- exclude:
- include:
- query: --query '(country == '"'"'Norway'"'"') & (pango_lineage.str.startswith('"'"'XBB'"'"'))'
- priority:
Reason: Missing output files: results/omicron_xbb/sample-country.txt; Input files updated by another job: results/combined_metadata.tsv.xz
augur filter --metadata results/combined_metadata.tsv.xz --include defaults/include.txt --exclude defaults/exclude.txt --min-date 2023-01-01 --query '(country == '"'"'Norway'"'"') & (pango_lineage.str.startswith('"'"'XBB'"'"'))' --output-strains results/omicron_xbb/sample-country.txt 2>&1 | tee logs/subsample_omicron_xbb_country.txt
ERROR: Internal Pandas error when applying query:
'NoneType' object has no attribute 'str'
Ensure the syntax is valid per <https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#indexing-query>.
[Thu Aug 10 08:27:48 2023]
Error in rule subsample:
jobid: 16
input: results/combined_metadata.tsv.xz, defaults/include.txt, defaults/include.txt, defaults/exclude.txt
output: results/omicron_xbb/sample-country.txt
log: logs/subsample_omicron_xbb_country.txt (check log file(s) for error details)
conda-env: /nextstrain/build/.snakemake/conda/82d2d2badedd44ba5b8338b34064ad7d_
shell:
augur filter --metadata results/combined_metadata.tsv.xz --include defaults/include.txt --exclude defaults/exclude.txt --min-date 2023-01-01 --query '(country == '"'"'Norway'"'"') & (pango_lineage.str.startswith('"'"'XBB'"'"'))' --output-strains results/omicron_xbb/sample-country.txt 2>&1 | tee logs/subsample_omicron_xbb_country.txt
(one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)