Skip to content
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

problem vcf format with #2

Open
mrouard opened this issue Mar 31, 2020 · 1 comment
Open

problem vcf format with #2

mrouard opened this issue Mar 31, 2020 · 1 comment

Comments

@mrouard
Copy link
Member

mrouard commented Mar 31, 2020

Hello,

For some reasons, VCF filtered by GATK v4 may produce a different tag by adding the assembly information next to the contig size.
##contig=<ID=mito8,length=456355,assembly=Musa_genomes_V2.fasta>

Then this error occurs as the scripts expects only a integer

Traceback (most recent call last): File "vcf2allPropAndCov.py", line 375, in <module> if __name__ == "__main__": __main__() File "vcf2allPropAndCov.py", line 338, in __main__ chr_info = get_chr_size(data) File "vcf2allPropAndCov.py", line 220, in get_chr_size return [split_on_eq[2].split(',')[0], int(split_on_eq[3])] ValueError: invalid literal for int() with base 10: '456355,assembly'

@guiguimartin
Copy link
Member

We modified the code so that there should be no problems now. Could you try and verify that it works now?
And sorry for the delay in response...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants