Skip to content

Commit f10cb0e

Browse files
jkancheMuhammedHasanMuhammed Hasan Celik
authored
Restructure the package (#7)
* setting up the folder structure * move scripts to cli and setting up package meta for cli access * restructure the rest of the files * Refactor attributions (#8) * attribution refactoring low level api design * updates of api of attirbutions and cli * attribution cli * wandb login, resources -> hub, and depreated tools.interpret * update for multiple genes * cli update to support multiple genes and attribution methods * testcase fix * test ci fix * genome --------- Co-authored-by: Muhammed Hasan Celik <[email protected]> * vep added * vep implemented * vep logs and api update * decima vep bug fix * bug fix * tangermeme version * ci * attr window bug * fix of typo and depreceated * mutate function deleted and fix of string literal * Refactor vep (#9) * vep added * vep implemented * vep logs and api update * decima vep bug fix * bug fix * tangermeme version * ci * attr window bug * fix of typo and depreceated * mutate function deleted and fix of string literal --------- Co-authored-by: Muhammed Hasan Celik <[email protected]> * pr code review --------- Co-authored-by: Muhammed Hasan Celik <[email protected]> Co-authored-by: Muhammed Hasan Celik <[email protected]>
1 parent 24c22bb commit f10cb0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+13183
-2737
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
13+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1414

1515
name: Python ${{ matrix.python-version }}
1616
steps:

.gitignore

Lines changed: 171 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,182 @@
1-
# Temporary and binary files
2-
*~
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
33
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
47
*.so
5-
*.cfg
6-
!.isort.cfg
7-
!setup.cfg
8-
*.orig
9-
*.log
10-
*.pot
11-
__pycache__/*
12-
.cache/*
13-
.*.swp
14-
*/.ipynb_checkpoints/*
15-
.DS_Store
168

17-
# Project files
18-
.ropeproject
19-
.project
20-
.pydevproject
21-
.settings
22-
.idea
23-
.vscode
24-
tags
25-
26-
# Package files
27-
*.egg
28-
*.eggs/
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
2925
.installed.cfg
30-
*.egg-info
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
3134

32-
# Unittest and coverage
33-
htmlcov/*
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
3443
.coverage
3544
.coverage.*
36-
.tox
37-
junit*.xml
45+
.cache
46+
nosetests.xml
3847
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
3951
.pytest_cache/
52+
cover/
4053

41-
# Build and docs folder/files
42-
build/*
43-
dist/*
44-
sdist/*
45-
docs/api/*
46-
docs/_rst/*
47-
docs/_build/*
48-
cover/*
49-
MANIFEST
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# UV
98+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
#uv.lock
102+
103+
# poetry
104+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105+
# This is especially recommended for binary packages to ensure reproducibility, and is more
106+
# commonly ignored for libraries.
107+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108+
#poetry.lock
109+
110+
# pdm
111+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112+
#pdm.lock
113+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114+
# in version control.
115+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116+
.pdm.toml
117+
.pdm-python
118+
.pdm-build/
119+
120+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121+
__pypackages__/
122+
123+
# Celery stuff
124+
celerybeat-schedule
125+
celerybeat.pid
126+
127+
# SageMath parsed files
128+
*.sage.py
129+
130+
# Environments
131+
.env
132+
.venv
133+
env/
134+
venv/
135+
ENV/
136+
env.bak/
137+
venv.bak/
138+
139+
# Spyder project settings
140+
.spyderproject
141+
.spyproject
142+
143+
# Rope project settings
144+
.ropeproject
145+
146+
# mkdocs documentation
147+
/site
148+
149+
# mypy
150+
.mypy_cache/
151+
.dmypy.json
152+
dmypy.json
153+
154+
# Pyre type checker
155+
.pyre/
156+
157+
# pytype static type analyzer
158+
.pytype/
159+
160+
# Cython debug symbols
161+
cython_debug/
162+
163+
# PyCharm
164+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166+
# and can be added to the global gitignore or merged into this file. For a more nuclear
167+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
168+
#.idea/
169+
170+
# Ruff stuff:
171+
.ruff_cache/
172+
173+
# PyPI configuration file
174+
.pypirc
50175

51-
# Per-project virtualenvs
52-
.venv*/
53-
.conda*/
54-
.python-version
176+
# Cursor
177+
# Cursor is an AI-powered code editor.`.cursorignore` specifies files/directories to
178+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
179+
# refer to https://docs.cursor.com/context/ignore-files
180+
.cursorignore
181+
.cursorindexingignore
182+
wandb/

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ repos:
66
hooks:
77
- id: trailing-whitespace
88
- id: check-added-large-files
9+
args: ["--maxkb=2000"]
910
- id: check-ast
1011
- id: check-json
1112
- id: check-merge-conflict

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
furo
2+
myst-nb
13
# Requirements file for ReadTheDocs, check .readthedocs.yml.
24
# To build the module reference correctly, make sure every external package
35
# under `install_requires` in `setup.cfg` is also listed here!
46
# sphinx_rtd_theme
57
myst-parser[linkify]
68
sphinx>=3.2.1
7-
myst-nb
8-
furo
99
sphinx-autodoc-typehints

scripts/predict_genes.py

Lines changed: 0 additions & 94 deletions
This file was deleted.

setup.cfg

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ python_requires = >=3.9
4949
# For more information, check out https://semver.org/.
5050
install_requires =
5151
importlib-metadata; python_version<"3.8"
52+
click
53+
more_itertools
5254
wandb
5355
numpy
5456
torch
@@ -63,6 +65,9 @@ install_requires =
6365
captum
6466
anndata
6567
h5py
68+
pyBigWig
69+
pyarrow
70+
tangermeme<0.5
6671

6772
[options.packages.find]
6873
where = src
@@ -73,6 +78,8 @@ exclude =
7378
# Add here additional requirements for extra features, to install with:
7479
# `pip install decima[PDF]` like:
7580
# PDF = ReportLab; RXP
81+
optional =
82+
cyvcf2
7683

7784
# Add here test requirements (semicolon/line-separated)
7885
testing =
@@ -82,8 +89,8 @@ testing =
8289

8390
[options.entry_points]
8491
# Add here console scripts like:
85-
# console_scripts =
86-
# script_name = decima.module:function
92+
console_scripts =
93+
decima = decima.cli:main
8794
# For example:
8895
# console_scripts =
8996
# fibonacci = decima.skeleton:run

0 commit comments

Comments
 (0)