fusor 0.0.30.dev1__tar.gz → 0.0.31.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fusor-0.0.31.dev0/PKG-INFO +151 -0
- fusor-0.0.31.dev0/README.md +87 -0
- fusor-0.0.31.dev0/pyproject.toml +149 -0
- fusor-0.0.31.dev0/setup.cfg +4 -0
- fusor-0.0.31.dev0/src/fusor/__init__.py +6 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/__init__.py +12 -12
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/tpm3_pdgfrb.json +1 -1
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/exceptions.py +0 -4
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/fusor.py +93 -87
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/models.py +165 -249
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/nomenclature.py +12 -12
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/tools.py +8 -6
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/version.py +1 -1
- fusor-0.0.31.dev0/src/fusor.egg-info/PKG-INFO +151 -0
- fusor-0.0.31.dev0/src/fusor.egg-info/SOURCES.txt +30 -0
- fusor-0.0.31.dev0/src/fusor.egg-info/requires.txt +18 -0
- fusor-0.0.31.dev0/tests/test_fusor.py +1073 -0
- fusor-0.0.31.dev0/tests/test_models.py +928 -0
- fusor-0.0.31.dev0/tests/test_nomenclature.py +291 -0
- fusor-0.0.31.dev0/tests/test_tools.py +31 -0
- fusor-0.0.30.dev1/PKG-INFO +0 -142
- fusor-0.0.30.dev1/README.md +0 -114
- fusor-0.0.30.dev1/fusor/__init__.py +0 -34
- fusor-0.0.30.dev1/fusor/examples/README.md +0 -9
- fusor-0.0.30.dev1/fusor.egg-info/PKG-INFO +0 -142
- fusor-0.0.30.dev1/fusor.egg-info/SOURCES.txt +0 -30
- fusor-0.0.30.dev1/fusor.egg-info/not-zip-safe +0 -1
- fusor-0.0.30.dev1/fusor.egg-info/requires.txt +0 -14
- fusor-0.0.30.dev1/pyproject.toml +0 -41
- fusor-0.0.30.dev1/setup.cfg +0 -62
- fusor-0.0.30.dev1/setup.py +0 -5
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0}/LICENSE +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/alk.json +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/bcr_abl1.json +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/bcr_abl1_expanded.json +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/ewsr1.json +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/ewsr1_elements_only.json +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/ewsr1_no_assay.json +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/ewsr1_no_causative_event.json +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/igh_myc.json +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor/examples/tpm3_ntrk1.json +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor.egg-info/dependency_links.txt +0 -0
- {fusor-0.0.30.dev1 → fusor-0.0.31.dev0/src}/fusor.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: fusor
|
|
3
|
+
Version: 0.0.31.dev0
|
|
4
|
+
Summary: Computable object representation and validation for gene fusions
|
|
5
|
+
Author-email: Alex Wagner <alex.wagner@nationwidechildrens.org>, Kori Kuzma <kori.kuzma@nationwidechildrens.org>, James Stevenson <james.stevenson@nationwidechildrens.org>, Katie Stahl <kathryn.stahl@nationwidechildrens.org>, Jeremy Arbesfeld <jeremy.arbesfeld@nationwidechildrens.org>
|
|
6
|
+
License:
|
|
7
|
+
MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2021-2023 VICC
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
|
|
29
|
+
Project-URL: Homepage, https://github.com/cancervariants/fusor
|
|
30
|
+
Project-URL: Documentation, https://github.com/cancervariants/fusor
|
|
31
|
+
Project-URL: Changelog, https://github.com/cancervariants/fusor/releases
|
|
32
|
+
Project-URL: Source, https://github.com/cancervariants/fusor
|
|
33
|
+
Project-URL: Bug Tracker, https://github.com/cancervariants/fusor/issues
|
|
34
|
+
Classifier: Development Status :: 3 - Alpha
|
|
35
|
+
Classifier: Framework :: Pydantic
|
|
36
|
+
Classifier: Framework :: Pydantic :: 2
|
|
37
|
+
Classifier: Intended Audience :: Science/Research
|
|
38
|
+
Classifier: Intended Audience :: Developers
|
|
39
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
40
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
41
|
+
Classifier: Programming Language :: Python :: 3
|
|
42
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
43
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
45
|
+
Requires-Python: >=3.10
|
|
46
|
+
Description-Content-Type: text/markdown
|
|
47
|
+
License-File: LICENSE
|
|
48
|
+
Requires-Dist: pydantic==2.*
|
|
49
|
+
Requires-Dist: ga4gh.vrsatile.pydantic~=0.2.0
|
|
50
|
+
Requires-Dist: ga4gh.vrs~=0.8.1
|
|
51
|
+
Requires-Dist: biocommons.seqrepo
|
|
52
|
+
Requires-Dist: gene-normalizer~=0.1.40-dev1
|
|
53
|
+
Requires-Dist: cool-seq-tool~=0.3.0-dev1
|
|
54
|
+
Provides-Extra: tests
|
|
55
|
+
Requires-Dist: pytest; extra == "tests"
|
|
56
|
+
Requires-Dist: pytest-cov; extra == "tests"
|
|
57
|
+
Requires-Dist: pytest-asyncio; extra == "tests"
|
|
58
|
+
Provides-Extra: dev
|
|
59
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
60
|
+
Requires-Dist: pytest; extra == "dev"
|
|
61
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
62
|
+
Requires-Dist: pytest-asyncio; extra == "dev"
|
|
63
|
+
Requires-Dist: ruff==0.2.0; extra == "dev"
|
|
64
|
+
|
|
65
|
+
# FUSOR
|
|
66
|
+
|
|
67
|
+
[](https://pypi.python.org/pypi/fusor)
|
|
68
|
+
[](https://pypi.python.org/pypi/fusor)
|
|
69
|
+
[](https://pypi.python.org/pypi/fusor)
|
|
70
|
+
[](https://github.com/cancervariants/fusor/actions/checks.yaml)
|
|
71
|
+
|
|
72
|
+
<!-- description -->
|
|
73
|
+
FUSOR (**FUS**ion **O**bject **R**epresentation) provides modeling and validation tools for representing gene fusions in a flexible, computable structure.
|
|
74
|
+
<!-- /description -->
|
|
75
|
+
|
|
76
|
+
## Installation
|
|
77
|
+
|
|
78
|
+
### Package
|
|
79
|
+
|
|
80
|
+
To install FUSOR:
|
|
81
|
+
```shell
|
|
82
|
+
python3 -m pip install fusor
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### SeqRepo and UTA
|
|
86
|
+
|
|
87
|
+
FUSOR relies on data from [SeqRepo](https://github.com/biocommons/seqrepo) and the [Universal Transcript Archive (UTA)](https://github.com/biocommons/uta), supplied via [Cool-Seq-Tool](https://github.com/genomicmedlab/cool-seq-tool). See the [Cool-Seq-Tool installation instructions](https://coolseqtool.readthedocs.io/en/latest/install.html) for specifics on setting up SeqRepo and UTA.
|
|
88
|
+
|
|
89
|
+
To connect to the UTA database, you can use the default url (`postgresql://uta_admin@localhost:5433/uta/uta_20210129`). If you use the default url, you must either set the password using environment variable `UTA_PASSWORD` or setting the parameter `db_pwd` in the `FUSOR` class.
|
|
90
|
+
|
|
91
|
+
If you do not wish to use the default, you must set the environment variable `UTA_DB_URL` which has the format of `driver://user:pass@host:port/database/schema`.
|
|
92
|
+
|
|
93
|
+
### Gene Normalizer
|
|
94
|
+
|
|
95
|
+
`FUSOR` also relies on data from the [Gene Normalizer](https://github.com/cancervariants/gene-normalization), which you must download yourself. See the [README](https://github.com/cancervariants/gene-normalization#readme) for deploying the gene database.
|
|
96
|
+
|
|
97
|
+
## Development
|
|
98
|
+
|
|
99
|
+
### Setup
|
|
100
|
+
|
|
101
|
+
Clone the repo:
|
|
102
|
+
|
|
103
|
+
```shell
|
|
104
|
+
git clone https://github.com/cancervariants/fusor
|
|
105
|
+
cd fusor
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Create a virtual environment, and activate it:
|
|
109
|
+
|
|
110
|
+
```shell
|
|
111
|
+
python3 -m virtualenv venv
|
|
112
|
+
source venv/bin/activate
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Install test and dev dependencies:
|
|
116
|
+
|
|
117
|
+
```shell
|
|
118
|
+
python3 -m pip install -e '.[dev,tests]'
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Style
|
|
122
|
+
|
|
123
|
+
Code style is managed by [Ruff](https://github.com/astral-sh/ruff) and checked prior to commit.
|
|
124
|
+
|
|
125
|
+
```shell
|
|
126
|
+
python3 -m ruff format . && python3 -m ruff check --fix .
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
We use [pre-commit](https://pre-commit.com/#usage) to run conformance tests.
|
|
130
|
+
|
|
131
|
+
This performs checks for:
|
|
132
|
+
|
|
133
|
+
* Code style
|
|
134
|
+
* File endings
|
|
135
|
+
* Added large files
|
|
136
|
+
* AWS credentials
|
|
137
|
+
* Private keys
|
|
138
|
+
|
|
139
|
+
Before your first commit, run:
|
|
140
|
+
|
|
141
|
+
```shell
|
|
142
|
+
pre-commit install
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Unit tests
|
|
146
|
+
|
|
147
|
+
Unit testing is provided via `pytest`:
|
|
148
|
+
|
|
149
|
+
```shell
|
|
150
|
+
pytest
|
|
151
|
+
```
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# FUSOR
|
|
2
|
+
|
|
3
|
+
[](https://pypi.python.org/pypi/fusor)
|
|
4
|
+
[](https://pypi.python.org/pypi/fusor)
|
|
5
|
+
[](https://pypi.python.org/pypi/fusor)
|
|
6
|
+
[](https://github.com/cancervariants/fusor/actions/checks.yaml)
|
|
7
|
+
|
|
8
|
+
<!-- description -->
|
|
9
|
+
FUSOR (**FUS**ion **O**bject **R**epresentation) provides modeling and validation tools for representing gene fusions in a flexible, computable structure.
|
|
10
|
+
<!-- /description -->
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
### Package
|
|
15
|
+
|
|
16
|
+
To install FUSOR:
|
|
17
|
+
```shell
|
|
18
|
+
python3 -m pip install fusor
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### SeqRepo and UTA
|
|
22
|
+
|
|
23
|
+
FUSOR relies on data from [SeqRepo](https://github.com/biocommons/seqrepo) and the [Universal Transcript Archive (UTA)](https://github.com/biocommons/uta), supplied via [Cool-Seq-Tool](https://github.com/genomicmedlab/cool-seq-tool). See the [Cool-Seq-Tool installation instructions](https://coolseqtool.readthedocs.io/en/latest/install.html) for specifics on setting up SeqRepo and UTA.
|
|
24
|
+
|
|
25
|
+
To connect to the UTA database, you can use the default url (`postgresql://uta_admin@localhost:5433/uta/uta_20210129`). If you use the default url, you must either set the password using environment variable `UTA_PASSWORD` or setting the parameter `db_pwd` in the `FUSOR` class.
|
|
26
|
+
|
|
27
|
+
If you do not wish to use the default, you must set the environment variable `UTA_DB_URL` which has the format of `driver://user:pass@host:port/database/schema`.
|
|
28
|
+
|
|
29
|
+
### Gene Normalizer
|
|
30
|
+
|
|
31
|
+
`FUSOR` also relies on data from the [Gene Normalizer](https://github.com/cancervariants/gene-normalization), which you must download yourself. See the [README](https://github.com/cancervariants/gene-normalization#readme) for deploying the gene database.
|
|
32
|
+
|
|
33
|
+
## Development
|
|
34
|
+
|
|
35
|
+
### Setup
|
|
36
|
+
|
|
37
|
+
Clone the repo:
|
|
38
|
+
|
|
39
|
+
```shell
|
|
40
|
+
git clone https://github.com/cancervariants/fusor
|
|
41
|
+
cd fusor
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Create a virtual environment, and activate it:
|
|
45
|
+
|
|
46
|
+
```shell
|
|
47
|
+
python3 -m virtualenv venv
|
|
48
|
+
source venv/bin/activate
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Install test and dev dependencies:
|
|
52
|
+
|
|
53
|
+
```shell
|
|
54
|
+
python3 -m pip install -e '.[dev,tests]'
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Style
|
|
58
|
+
|
|
59
|
+
Code style is managed by [Ruff](https://github.com/astral-sh/ruff) and checked prior to commit.
|
|
60
|
+
|
|
61
|
+
```shell
|
|
62
|
+
python3 -m ruff format . && python3 -m ruff check --fix .
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
We use [pre-commit](https://pre-commit.com/#usage) to run conformance tests.
|
|
66
|
+
|
|
67
|
+
This performs checks for:
|
|
68
|
+
|
|
69
|
+
* Code style
|
|
70
|
+
* File endings
|
|
71
|
+
* Added large files
|
|
72
|
+
* AWS credentials
|
|
73
|
+
* Private keys
|
|
74
|
+
|
|
75
|
+
Before your first commit, run:
|
|
76
|
+
|
|
77
|
+
```shell
|
|
78
|
+
pre-commit install
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Unit tests
|
|
82
|
+
|
|
83
|
+
Unit testing is provided via `pytest`:
|
|
84
|
+
|
|
85
|
+
```shell
|
|
86
|
+
pytest
|
|
87
|
+
```
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "fusor"
|
|
3
|
+
authors = [
|
|
4
|
+
{name = "Alex Wagner", email = "alex.wagner@nationwidechildrens.org"},
|
|
5
|
+
{name = "Kori Kuzma", email = "kori.kuzma@nationwidechildrens.org"},
|
|
6
|
+
{name = "James Stevenson", email = "james.stevenson@nationwidechildrens.org"},
|
|
7
|
+
{name = "Katie Stahl", email = "kathryn.stahl@nationwidechildrens.org"},
|
|
8
|
+
{name = "Jeremy Arbesfeld", email = "jeremy.arbesfeld@nationwidechildrens.org"}
|
|
9
|
+
]
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 3 - Alpha",
|
|
13
|
+
"Framework :: Pydantic",
|
|
14
|
+
"Framework :: Pydantic :: 2",
|
|
15
|
+
"Intended Audience :: Science/Research",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Topic :: Scientific/Engineering :: Bio-Informatics",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Programming Language :: Python :: 3.10",
|
|
21
|
+
"Programming Language :: Python :: 3.11",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
]
|
|
24
|
+
requires-python = ">=3.10"
|
|
25
|
+
description = "Computable object representation and validation for gene fusions"
|
|
26
|
+
license = {file = "LICENSE"}
|
|
27
|
+
dependencies = [
|
|
28
|
+
"pydantic == 2.*",
|
|
29
|
+
"ga4gh.vrsatile.pydantic ~=0.2.0",
|
|
30
|
+
"ga4gh.vrs ~=0.8.1",
|
|
31
|
+
"biocommons.seqrepo",
|
|
32
|
+
"gene-normalizer ~=0.1.40-dev1",
|
|
33
|
+
"cool-seq-tool ~=0.3.0-dev1",
|
|
34
|
+
]
|
|
35
|
+
dynamic=["version"]
|
|
36
|
+
|
|
37
|
+
[project.optional-dependencies]
|
|
38
|
+
tests = ["pytest", "pytest-cov", "pytest-asyncio"]
|
|
39
|
+
dev = ["pre-commit", "pytest", "pytest-cov", "pytest-asyncio", "ruff==0.2.0"]
|
|
40
|
+
|
|
41
|
+
[project.urls]
|
|
42
|
+
Homepage = "https://github.com/cancervariants/fusor"
|
|
43
|
+
Documentation = "https://github.com/cancervariants/fusor"
|
|
44
|
+
Changelog = "https://github.com/cancervariants/fusor/releases"
|
|
45
|
+
Source = "https://github.com/cancervariants/fusor"
|
|
46
|
+
"Bug Tracker" = "https://github.com/cancervariants/fusor/issues"
|
|
47
|
+
|
|
48
|
+
[build-system]
|
|
49
|
+
requires = ["setuptools>=64.0"]
|
|
50
|
+
build-backend = "setuptools.build_meta"
|
|
51
|
+
|
|
52
|
+
[tool.setuptools.dynamic]
|
|
53
|
+
version = {attr = "fusor.version.__version__"}
|
|
54
|
+
|
|
55
|
+
[tool.setuptools.packages.find]
|
|
56
|
+
where = ["src"]
|
|
57
|
+
|
|
58
|
+
[tool.setuptools.package-data]
|
|
59
|
+
"fusor.examples" = ["*.json"]
|
|
60
|
+
|
|
61
|
+
[tool.pytest.ini_options]
|
|
62
|
+
addopts = "--cov=src --cov-report term-missing"
|
|
63
|
+
testpaths = ["tests"]
|
|
64
|
+
|
|
65
|
+
[tool.coverage.run]
|
|
66
|
+
branch = true
|
|
67
|
+
|
|
68
|
+
[tool.ruff]
|
|
69
|
+
src = ["src"]
|
|
70
|
+
|
|
71
|
+
[tool.ruff.lint]
|
|
72
|
+
select = [
|
|
73
|
+
"F", # https://docs.astral.sh/ruff/rules/#pyflakes-f
|
|
74
|
+
"E", "W", # https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
|
|
75
|
+
"I", # https://docs.astral.sh/ruff/rules/#isort-i
|
|
76
|
+
"N", # https://docs.astral.sh/ruff/rules/#pep8-naming-n
|
|
77
|
+
"D", # https://docs.astral.sh/ruff/rules/#pydocstyle-d
|
|
78
|
+
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
|
|
79
|
+
"ANN", # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
|
|
80
|
+
"ASYNC", # https://docs.astral.sh/ruff/rules/#flake8-async-async
|
|
81
|
+
"S", # https://docs.astral.sh/ruff/rules/#flake8-bandit-s
|
|
82
|
+
"B", # https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
|
|
83
|
+
"A", # https://docs.astral.sh/ruff/rules/#flake8-builtins-a
|
|
84
|
+
"C4", # https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
|
|
85
|
+
"DTZ", # https://docs.astral.sh/ruff/rules/#flake8-datetimez-dtz
|
|
86
|
+
"T10", # https://docs.astral.sh/ruff/rules/#flake8-datetimez-dtz
|
|
87
|
+
"EM", # https://docs.astral.sh/ruff/rules/#flake8-errmsg-em
|
|
88
|
+
"G", # https://docs.astral.sh/ruff/rules/#flake8-logging-format-g
|
|
89
|
+
"PIE", # https://docs.astral.sh/ruff/rules/#flake8-pie-pie
|
|
90
|
+
"T20", # https://docs.astral.sh/ruff/rules/#flake8-print-t20
|
|
91
|
+
"PT", # https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
|
|
92
|
+
"Q", # https://docs.astral.sh/ruff/rules/#flake8-quotes-q
|
|
93
|
+
"RSE", # https://docs.astral.sh/ruff/rules/#flake8-raise-rse
|
|
94
|
+
"RET", # https://docs.astral.sh/ruff/rules/#flake8-return-ret
|
|
95
|
+
"SIM", # https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
|
|
96
|
+
"PTH", # https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
|
|
97
|
+
"PGH", # https://docs.astral.sh/ruff/rules/#pygrep-hooks-pgh
|
|
98
|
+
"RUF", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
|
|
99
|
+
]
|
|
100
|
+
fixable = [
|
|
101
|
+
"I",
|
|
102
|
+
"F401",
|
|
103
|
+
"D",
|
|
104
|
+
"UP",
|
|
105
|
+
"ANN",
|
|
106
|
+
"B",
|
|
107
|
+
"C4",
|
|
108
|
+
"G",
|
|
109
|
+
"PIE",
|
|
110
|
+
"PT",
|
|
111
|
+
"RSE",
|
|
112
|
+
"SIM",
|
|
113
|
+
"RUF"
|
|
114
|
+
]
|
|
115
|
+
# ANN101 - missing-type-self
|
|
116
|
+
# ANN003 - missing-type-kwargs
|
|
117
|
+
# D203 - one-blank-line-before-class
|
|
118
|
+
# D205 - blank-line-after-summary
|
|
119
|
+
# D206 - indent-with-spaces*
|
|
120
|
+
# D213 - multi-line-summary-second-line
|
|
121
|
+
# D300 - triple-single-quotes*
|
|
122
|
+
# D400 - ends-in-period
|
|
123
|
+
# D415 - ends-in-punctuation
|
|
124
|
+
# E111 - indentation-with-invalid-multiple*
|
|
125
|
+
# E114 - indentation-with-invalid-multiple-comment*
|
|
126
|
+
# E117 - over-indented*
|
|
127
|
+
# E501 - line-too-long*
|
|
128
|
+
# W191 - tab-indentation*
|
|
129
|
+
# S321 - suspicious-ftp-lib-usage
|
|
130
|
+
# *ignored for compatibility with formatter
|
|
131
|
+
ignore = [
|
|
132
|
+
"ANN101", "ANN003",
|
|
133
|
+
"D203", "D205", "D206", "D213", "D300", "D400", "D415",
|
|
134
|
+
"E111", "E114", "E117", "E501",
|
|
135
|
+
"W191",
|
|
136
|
+
"S321",
|
|
137
|
+
]
|
|
138
|
+
|
|
139
|
+
[tool.ruff.lint.per-file-ignores]
|
|
140
|
+
# ANN001 - missing-type-function-argument
|
|
141
|
+
# ANN102 - missing-type-cls
|
|
142
|
+
# ANN2 - missing-return-type
|
|
143
|
+
# ANN201 - missing-return-type-undocumented-public-function
|
|
144
|
+
# ANN102 - missing-type-cls
|
|
145
|
+
# S101 - assert
|
|
146
|
+
# B011 - assert-false
|
|
147
|
+
# N805 - invalid-first-argument-name-for-method
|
|
148
|
+
"tests/*" = ["ANN001", "ANN2", "ANN102", "S101", "B011"]
|
|
149
|
+
"src/fusor/models.py" = ["ANN201", "N805", "ANN001", "ANN2", "ANN102"]
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
"""Provide programmatic access to example objects."""
|
|
2
2
|
import json
|
|
3
|
+
from pathlib import Path
|
|
3
4
|
|
|
4
|
-
from fusor import APP_ROOT
|
|
5
5
|
from fusor.models import AssayedFusion, CategoricalFusion
|
|
6
6
|
|
|
7
|
-
EXAMPLES_DIR =
|
|
7
|
+
EXAMPLES_DIR = Path(__file__).resolve().parents[0]
|
|
8
8
|
|
|
9
|
-
with
|
|
9
|
+
with (EXAMPLES_DIR / "alk.json").open() as f:
|
|
10
10
|
alk = CategoricalFusion(**json.load(f))
|
|
11
11
|
|
|
12
|
-
with
|
|
12
|
+
with (EXAMPLES_DIR / "bcr_abl1.json").open() as f:
|
|
13
13
|
bcr_abl1 = CategoricalFusion(**json.load(f))
|
|
14
14
|
|
|
15
|
-
with
|
|
15
|
+
with (EXAMPLES_DIR / "bcr_abl1_expanded.json").open() as f:
|
|
16
16
|
bcr_abl1_expanded = CategoricalFusion(**json.load(f))
|
|
17
17
|
|
|
18
|
-
with
|
|
18
|
+
with (EXAMPLES_DIR / "ewsr1.json").open() as f:
|
|
19
19
|
ewsr1 = AssayedFusion(**json.load(f))
|
|
20
20
|
|
|
21
|
-
with
|
|
21
|
+
with (EXAMPLES_DIR / "ewsr1_no_assay.json").open() as f:
|
|
22
22
|
ewsr1_no_assay = AssayedFusion(**json.load(f))
|
|
23
23
|
|
|
24
|
-
with
|
|
24
|
+
with (EXAMPLES_DIR / "ewsr1_no_causative_event.json").open() as f:
|
|
25
25
|
ewsr1_no_causative_event = AssayedFusion(**json.load(f))
|
|
26
26
|
|
|
27
|
-
with
|
|
27
|
+
with (EXAMPLES_DIR / "ewsr1_elements_only.json").open() as f:
|
|
28
28
|
ewsr1_elements_only = AssayedFusion(**json.load(f))
|
|
29
29
|
|
|
30
|
-
with
|
|
30
|
+
with (EXAMPLES_DIR / "igh_myc.json").open() as f:
|
|
31
31
|
igh_myc = CategoricalFusion(**json.load(f))
|
|
32
32
|
|
|
33
|
-
with
|
|
33
|
+
with (EXAMPLES_DIR / "tpm3_ntrk1.json").open() as f:
|
|
34
34
|
tpm3_ntrk1 = AssayedFusion(**json.load(f))
|
|
35
35
|
|
|
36
|
-
with
|
|
36
|
+
with (EXAMPLES_DIR / "tpm3_pdgfrb.json").open() as f:
|
|
37
37
|
tpm3_pdgfrb = AssayedFusion(**json.load(f))
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
class IDTranslationException(Exception): # noqa: N818
|
|
5
5
|
"""Indicate translation failure for provided ID value"""
|
|
6
6
|
|
|
7
|
-
pass
|
|
8
|
-
|
|
9
7
|
|
|
10
8
|
class FUSORParametersException(Exception): # noqa: N818
|
|
11
9
|
"""Signal incorrect or insufficient parameters for model constructor methods."""
|
|
12
|
-
|
|
13
|
-
pass
|