samtools / bcftools

This is the official development repository for BCFtools. See installation instructions and other documentation here http://samtools.github.io/bcftools/howtos/install.html
http://samtools.github.io/bcftools/
Other
681 stars 240 forks source link

annotate add INFO/tag form CHROM-POS-REF-ALT #2273

Open user-tq opened 2 months ago

user-tq commented 2 months ago

i know the Transfer FILTER values into an INFO tag

bcftools annotate -c INFO/NewTag:=FILTER B.bcf

but i want

bcftools annotate -c INFO/raw_pos:=%CHROM-%POS-%REF-%ALT  clinvar_20240902.vcf.gz 
# it not work

Is there a simple way to do this? I don't want to use tabix to obtain annotate.gz, because the original VCF is too large, and I always don't want to generate too many intermediate files