Skip to content

Filtering expressions #871

Closed
Closed
@bgb-ipl

Description

@bgb-ipl

Hi,

I have a concern using some filtering expressions with bcftools view (version 1.9). Let say I have 5 individuals and one is missing : GT 0/0 ./. 0/1 0/0 0/0.

I want to filter based on missingness >=20% so the the example above should be filtered.

When I use the F_MISSING :
bcftools view -e "F_MISSING>=0.2" test.vcf : the site is not filtered
bcftools view -e "F_MISSING=>1/5" test.vcf : the site is filtered

It is the same using F_PASS :
bcftools view -e 'F_PASS(GT=="mis")>=0.2' test.vcf : the site is not filtered
bcftools view -e 'F_PASS(GT=="mis")>=1/5' test.vcf : the site is filtered

I wonder why 0.2 and 1/5 have not the same behaviour.

Best,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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