Skip to content

Commit 1944acb

Browse files
authoredFeb 22, 2024
Duckdb query engine (#10)
* added basic interface for query engine * Added explanations * added query step protocol to query engine interface * Update duckdb version to 0.9.1 * Add support for DuckDBPyRelation in dataframe models and query engine * added examples to query engine interface * Refactor RegionFilter to Snipper * Add GenomicDataSchema protocol and implement position field and contact order methods * added single region selection implementation * Add anchor validation in Snipper class * blackify * Refactor code and fix imports * pixels snipping tests passing * Refactor code formatting * pylint and black * added documentation for snipping * updated documentation * renamed region columns * untested offset transformation * regionoffset working * Remove unused imports and fixtures * Refactor imports and fix formatting issues * Update imports and ignore additional flake8 warnings * Add tests for offset aggregation functions in query engine * added additional test for column name * added tests for aggregation on dense input * added addiitonal tests for offsetaggregation * Add region_number attribute to QueryStepDataSchema and ContactSchema; implemented new aggregation method * added documentation * updated documenatation page * added use case for contact counting * implemented PR changes * added duckdb parquet reader function * added check for data mode * added case whne regions are nested * renamed BasicQuery, QueryResult and Snipper * fixed typos in query_engine_interface * code review comments for uery engine usage * added string parsing for enums * added capability to specify a subset of positions for offsetaggregation * added explicit rejection of contacts to offsetaggregation * added expliict windowsize handling * renamed window size * Renamed offset to distance
1 parent 6f0e2ea commit 1944acb

34 files changed

+5299
-905
lines changed
 

‎.pre-commit-config.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
repos:
2+
- repo: https://github.com/asottile/reorder-python-imports
3+
rev: v3.12.0
4+
hooks:
5+
- id: reorder-python-imports
6+
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
7+
args: [--py38-plus]
8+
- repo: https://github.com/PyCQA/flake8
9+
rev: 6.1.0
10+
hooks:
11+
- id: flake8
12+
args: ["--ignore=E501,W503,W291"]
13+
- repo: https://github.com/pre-commit/mirrors-mypy
14+
rev: v1.7.1
15+
hooks:
16+
- id: mypy
17+
additional_dependencies: [types-all]
18+
exclude: ^testing/resources/
19+
- repo: https://github.com/psf/black-pre-commit-mirror
20+
rev: 23.12.1
21+
hooks:
22+
- id: black
23+
# It is recommended to specify the latest version of Python
24+
# supported by your project here, or alternatively use
25+
# pre-commit's default_language_version, see
26+
# https://pre-commit.com/#top_level-default_language_version
27+
language_version: python3.11
28+
- repo: local
29+
hooks:
30+
- id: pylint
31+
name: pylint
32+
entry: pylint
33+
language: system
34+
types: [python]
35+
args: ["--disable=C0301,W0511"]

0 commit comments

Comments
 (0)