-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError #9
Comments
@KasperH2 I apologize for the delay, you caught me during a cross country move. Please let me know if you want me to look into this further. |
Hello, I'm facing the same problem, did you manage to find a solution? Thanks. Marina |
Hello! Can I get a VCF and GenBank file to figure this out? Thank you! |
Hi Robert, Sorry for the delay! In the end I managed to run vcf-annotator. However, when I tried running with a genbank file directly downloaded from NCBI (this one), it didn't work, but when I made a gb file from a fasta and gff using seqret, it worked. Also, just for the record, my VCF files had some '*' characters that I had to remove to successfully run vcf-annotator. Thanks for your time, |
Thank you for bringing up I'll also play around with the GenBank file. |
@marimaro last request, do you by chance have a VCF that I could test. If not it's ok, I'll make a fake one that should match your issues |
Alright so I think the issue is,
So what I'm thinking is I'll add a check something like:
But it would be really useful to have a good example VCF. |
Ok, I think I fixed the KeyError issue. Example VCF
Example Genbank
Ouput annotated VCF
|
I will need an example for VCF's with '*' in them. Unless this is a good example: #6 (comment) |
Awesome! |
Here's another example if you're still looking into this @rpetit3 |
Awesome thank you @BioWilko |
I just pushed v0.7 with a fix for this issue: https://github.com/rpetit3/vcf-annotator/releases/tag/v0.7 Please let me know if that's not the case! |
The Key Error issue specifically, not the |
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!
The text was updated successfully, but these errors were encountered: