Skip to content

Error with dynamic values in bcftools annotate #2441

@awgymer

Description

@awgymer

I am trying to run a command which looks like the examples from the 1.21 release notes:

bcftools annotate -a ann.tsv.gz -c CHROM,POS,REF,ALT,SCORE,~STR -i'TAG={STR}' -k in.vcf
bcftools annotate -a ann.tsv.gz -c CHROM,POS,-,-,SCORE,~STR     -i'TAG={STR}' -k in.vcf

But I am getting:

Error: dynamic variables in -i/-e expressions can be currently used only with tab-delimited file, not with VCF (todo)

My full command is:

bcftools annotate \
    -c CHROM,FROM,TO,~SVT,-,CUSTOM_AF,-,-,- 
    --header-line '##INFO=<ID=CUSTOM_AF,Number=1,Type=Float,Description="Custom AF">' \
    -i'SVTYPE={SVT}' \
    --min-overlap 0.5:0.5 \
    -a custom.bed.gz \
    in.vcf 

The first row of my bed looks like:

1       11028   11063   DEL     35      0.017519300803542137    50      0       1

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