KalinNonchev / gnomAD_DB

This package scales the huge gnomAD files to a SQLite database, which is easy and fast to query. It extracts from a gnomAD vcf the minor allele frequency for each variant.
MIT License
35 stars 10 forks source link

interval aggregation #6

Closed KalinNonchev closed 2 years ago

KalinNonchev commented 3 years ago

add interval aggregations such as

db.get_mafs_for_interval(chrom=21, interval_start=9825780, interval_end=9825799, query="AF", agg="mean")

for

  1. mean
  2. std
  3. var