Skip to content

bcftools consensus with deletion at POS 1 incorrect #1330

Closed
@SoapZA

Description

Test script:

#!/usr/bin/env sh

cat > v.vcf <<- EOF
	##fileformat=VCFv4.2
	##fileDate=20201023
	##source=foo
	##reference=chr1
	##INFO=<ID=DP,Number=1,Type=Integer,Description="Total Depth">
	#CHROM	POS	ID	REF	ALT	QUAL	FILTER	INFO
	chr1	1	del	GA	A	20	PASS	DP=100
EOF

cat > chr1.fasta <<- EOF
	>chr1
	GACT
EOF

bgzip v.vcf
bcftools index v.vcf.gz
bcftools consensus -f chr1.fasta v.vcf.gz

bcftools 1.10.2 (correct):

>chr1
ACT
Applied 1 variants

bcftools 1.11 (incorrect):

>chr1
GCT
Applied 1 variants

Activity

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

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