Skip to content

smpl_count() seems to work on mac but not on linux #2423

@magdadrozdz

Description

@magdadrozdz

Hello, first of all thank you for your response to my previous issue and adding the new function so quickly. I have tested it locally (mac) and it does exactly what I need. I've however ran into some issues when I tried to build a container with this bcftools version to run it on our HPC.
On my local machine and when the container is built for linux/arm64, the function works well. However, when the container is built with build --platform=linux/amd64, the new function throws an error:

bcftools query \
  -f '[%CHROM:%POS-%REF/%ALT\t%GT\t%LAA\t%LAD\t%SAMPLE\n]' \
  -i 'GT="het" & smpl_count(LAA)<2' \
  $example_vcf
Error occurred while processing the filter "GT="het" & smpl_count(LAA)<2". (nstack=1)

as opposed to the old error with the previous bcftools versions:

[filter.c:3317 filters_init1] Error: the tag "smpl_count" is not defined in the VCF header

everything else seems to work as expected, it's just the new function.

Here is the container that's giving me trouble: https://hub.docker.com/r/mgdrozdz/bcftools-dev-version

Is there anything I can do to mitigate this, or is there something else in the code that needs to be modified for the function to work on amd64?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions