-
-
Notifications
You must be signed in to change notification settings - Fork 7
KeyError #9
Description
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:
Do you have an idea of the problem?
Thank you very much for your program and help!
