fusion-function 0.2.1__py3-none-any.whl
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.
- fusion_function/__init__.py +9 -0
- fusion_function/__main__.py +3 -0
- fusion_function/cli.py +27 -0
- fusion_function/data.py +2683 -0
- fusion_function/ensembl.py +149 -0
- fusion_function/fusion.py +1024 -0
- fusion_function/interpro.py +29 -0
- fusion_function/prebuilt.py +518 -0
- fusion_function/reference.py +112 -0
- fusion_function/reference_catalog.json +82 -0
- fusion_function/uniprot.py +315 -0
- fusion_function-0.2.1.dist-info/METADATA +98 -0
- fusion_function-0.2.1.dist-info/RECORD +16 -0
- fusion_function-0.2.1.dist-info/WHEEL +4 -0
- fusion_function-0.2.1.dist-info/entry_points.txt +3 -0
- fusion_function-0.2.1.dist-info/licenses/LICENSE +674 -0
fusion_function/cli.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Command-line entry points."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
import sys
|
|
7
|
+
from collections.abc import Sequence
|
|
8
|
+
|
|
9
|
+
from . import data
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def main(argv: Sequence[str] | None = None) -> int:
|
|
13
|
+
arguments = list(sys.argv[1:] if argv is None else argv)
|
|
14
|
+
if arguments and arguments[0] == "prepare-data":
|
|
15
|
+
return data.main(arguments[1:])
|
|
16
|
+
if arguments and arguments[0] == "export-reference":
|
|
17
|
+
from . import prebuilt
|
|
18
|
+
|
|
19
|
+
return prebuilt.main(arguments[1:])
|
|
20
|
+
parser = argparse.ArgumentParser(prog="fusion-function")
|
|
21
|
+
parser.add_argument(
|
|
22
|
+
"command",
|
|
23
|
+
choices=["prepare-data", "export-reference"],
|
|
24
|
+
help="Install, build or export the human reference",
|
|
25
|
+
)
|
|
26
|
+
parser.parse_args(arguments)
|
|
27
|
+
return 0
|