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

question regarding sqlite Blob #948

Closed
dridk opened this issue Nov 6, 2020 · 3 comments
Closed

question regarding sqlite Blob #948

dridk opened this issue Nov 6, 2020 · 3 comments

Comments

@dridk
Copy link

dridk commented Nov 6, 2020

Hi,

I see you store sample data ( like genotype ) as blob into sqlite database.
I am really curious how do you query this fields in raw sql ?
for instance, how to get variant where sample boby is heterozygous ?

@brentp
Copy link
Collaborator

brentp commented Nov 6, 2020

Hi, we have to decode the blob to do any queries on genotypes so it's not very efficient. If you use vcf2db.py there is an option to put the genotypes into a separate table that can be indexed.
We recommend to use slivar instead of gemini unless you have specific use for gemini.

@dridk
Copy link
Author

dridk commented Nov 6, 2020

Thanks !
I m creating my own GUI application based on sqlite like you. So, I am investigating how other project is doing :
You can have a look here!
https://github.com/labsquare/cutevariant

Thanks ! I didn't know slivar !

@brentp
Copy link
Collaborator

brentp commented Nov 6, 2020

cutevariant looks nice!

@brentp brentp closed this as completed Nov 6, 2020
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