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

Column type set to VARCHAR(10) despite setting Type=Float in VCF file #47

Open
marivalen opened this issue Aug 6, 2018 · 3 comments
Open

Comments

@marivalen
Copy link

Good Afternoon,

I have the following line in my VCF file:

##INFO=<ID=gnomAD_exome_ALL,Number=1,Type=Float,Description="gnomAD_exome_ALL frequency annotation">

despite this what I see when I use db_info on a database created with vcf2db is:

variant_impacts gnomad_exome_all VARCHAR(10)

Is there any way to change this? Am I setting the type wrong? At the moment since that field is treated as a string I cannot make use to the frequency information to compare my variants.

Kind Regards,
Maria

@brentp
Copy link
Member

brentp commented Aug 6, 2018

can you show the full output of the vcf2db command that you used to create the database?

@marivalen
Copy link
Author

marivalen commented Aug 30, 2018

The only thing besides the database that vcf2db outputs is:

/usr/lib/python2.7/dist-packages/sqlalchemy/sql/sqltypes.py:185: SAWarning: Unicode type received non-unicode bind param value '1'. (this warning may be suppressed after 10 occurrences) (util.ellipses_string(value),))
/usr/lib/python2.7/dist-packages/sqlalchemy/sql/sqltypes.py:185: SAWarning: Unicode type received non-unicode bind param value '2'. (this warning may be suppressed after 10 occurrences) (util.ellipses_string(value),))

Do you want me to also show what db_info returns on the database?

@brentp
Copy link
Member

brentp commented Aug 30, 2018

can you verify that you hvae the latest vcf2db? and if so, can you share a 1 line VCF so I can recreate the problem you are seeing?

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