Skip to content

KeyError #9

@KasperH2

Description

@KasperH2

Hello
I tried using your program, but i keep getting the error

Traceback (most recent call last):
File "/home/pato/miniconda3/envs/vcf_anno/bin/vcf-annotator", line 393, in
annotator.annotate_vcf_records()
File "/home/pato/miniconda3/envs/vcf_anno/bin/vcf-annotator", line 67, in annotate_vcf_records
self.__gb.accession = record.CHROM
File "/home/pato/miniconda3/envs/vcf_anno/bin/vcf-annotator", line 220, in accession
self.__gb = self.records[value]
KeyError: 'K02718.1'

I am using a viral reference fasta and vcf and in the chromosome column of the vcf name is K02718.1.
I've used the command
vcf-annotator K02718.1.align.vcf K02718.1.gb

I've tried using vcf files generated by freebayes and vcf generated by GATK HaplotypeCaller

I tried changing the chrome column to one number, which gives the keyerror returning that number.
The style of the vcf is as follows:

image

Do you have an idea of the problem?
Thank you very much for your program and help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions