biolm-sdk 0.0.1__py2.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.
- biolm/__init__.py +78 -0
- biolm/cli.py +3546 -0
- biolm/cli_entry.py +119 -0
- biolm/cli_theme.py +121 -0
- biolm/client.py +119 -0
- biolm/core/__init__.py +1 -0
- biolm/core/asynch.py +351 -0
- biolm/core/auth.py +1042 -0
- biolm/core/const.py +169 -0
- biolm/core/expression_evaluator.py +142 -0
- biolm/core/http.py +1581 -0
- biolm/core/legacy/__init__.py +12 -0
- biolm/core/legacy/api.py +365 -0
- biolm/core/legacy/cls.py +185 -0
- biolm/core/payloads.py +44 -0
- biolm/core/seqflow_auth.py +204 -0
- biolm/core/utils.py +71 -0
- biolm/core/validate.py +157 -0
- biolm/datasets_mlflow.py +430 -0
- biolm/examples.py +574 -0
- biolm/hub/__init__.py +22 -0
- biolm/hub/catalog.py +103 -0
- biolm/hub/config.py +86 -0
- biolm/hub/data/__init__.py +0 -0
- biolm/hub/data/catalog.json +35 -0
- biolm/hub/discovery.py +113 -0
- biolm/io/__init__.py +22 -0
- biolm/io/csv.py +152 -0
- biolm/io/fasta.py +248 -0
- biolm/io/json.py +179 -0
- biolm/io/pdb.py +153 -0
- biolm/ltc.py +1 -0
- biolm/models.py +276 -0
- biolm/pipeline/__init__.py +150 -0
- biolm/pipeline/async_executor.py +377 -0
- biolm/pipeline/base.py +1615 -0
- biolm/pipeline/clustering.py +493 -0
- biolm/pipeline/data.py +3639 -0
- biolm/pipeline/datastore.py +11 -0
- biolm/pipeline/datastore_duckdb.py +2797 -0
- biolm/pipeline/filters.py +935 -0
- biolm/pipeline/generative.py +1840 -0
- biolm/pipeline/mlm_remasking.py +693 -0
- biolm/pipeline/pipeline_def.py +575 -0
- biolm/pipeline/utils.py +574 -0
- biolm/pipeline/visualization.py +648 -0
- biolm/progress.py +55 -0
- biolm/protocols.py +987 -0
- biolm/protocols_mlflow.py +835 -0
- biolm/volumes.py +75 -0
- biolm/workspaces.py +75 -0
- biolm_sdk-0.0.1.dist-info/METADATA +166 -0
- biolm_sdk-0.0.1.dist-info/RECORD +59 -0
- biolm_sdk-0.0.1.dist-info/WHEEL +6 -0
- biolm_sdk-0.0.1.dist-info/entry_points.txt +7 -0
- biolm_sdk-0.0.1.dist-info/licenses/AUTHORS.rst +13 -0
- biolm_sdk-0.0.1.dist-info/licenses/LICENSE +16 -0
- biolm_sdk-0.0.1.dist-info/top_level.txt +2 -0
- biolmai/__init__.py +17 -0
biolm/__init__.py
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""Top-level package for BioLM."""
|
|
2
|
+
__author__ = """Nikhil Haas"""
|
|
3
|
+
__email__ = "nikhil@biolm.ai"
|
|
4
|
+
__version__ = '0.0.1'
|
|
5
|
+
|
|
6
|
+
from biolm.core.http import BioLMApi, BioLMApiClient
|
|
7
|
+
from biolm.client import BioLM
|
|
8
|
+
from biolm.models import Model, predict, encode, generate
|
|
9
|
+
from biolm.protocols import Protocol
|
|
10
|
+
from biolm.workspaces import Workspace
|
|
11
|
+
from biolm.volumes import Volume
|
|
12
|
+
from biolm.examples import get_example, list_models
|
|
13
|
+
from biolm.io import (
|
|
14
|
+
load_fasta,
|
|
15
|
+
to_fasta,
|
|
16
|
+
load_csv,
|
|
17
|
+
to_csv,
|
|
18
|
+
load_pdb,
|
|
19
|
+
to_pdb,
|
|
20
|
+
load_json,
|
|
21
|
+
to_json,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
try:
|
|
25
|
+
from biolm import pipeline
|
|
26
|
+
_HAS_PIPELINE = True
|
|
27
|
+
except ImportError:
|
|
28
|
+
_HAS_PIPELINE = False
|
|
29
|
+
|
|
30
|
+
from typing import Optional, Union, List, Any
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
'BioLM',
|
|
34
|
+
'biolm',
|
|
35
|
+
'BioLMApi',
|
|
36
|
+
'BioLMApiClient',
|
|
37
|
+
'Model',
|
|
38
|
+
'Protocol',
|
|
39
|
+
'Workspace',
|
|
40
|
+
'Volume',
|
|
41
|
+
'predict',
|
|
42
|
+
'encode',
|
|
43
|
+
'generate',
|
|
44
|
+
'get_example',
|
|
45
|
+
'list_models',
|
|
46
|
+
'load_fasta',
|
|
47
|
+
'to_fasta',
|
|
48
|
+
'load_csv',
|
|
49
|
+
'to_csv',
|
|
50
|
+
'load_pdb',
|
|
51
|
+
'to_pdb',
|
|
52
|
+
'load_json',
|
|
53
|
+
'to_json',
|
|
54
|
+
]
|
|
55
|
+
if _HAS_PIPELINE:
|
|
56
|
+
__all__.append('pipeline')
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def biolm(
|
|
60
|
+
*,
|
|
61
|
+
entity: str,
|
|
62
|
+
action: str,
|
|
63
|
+
type: Optional[str] = None,
|
|
64
|
+
items: Union[Any, List[Any]],
|
|
65
|
+
params: Optional[dict] = None,
|
|
66
|
+
api_key: Optional[str] = None,
|
|
67
|
+
**kwargs
|
|
68
|
+
) -> Any:
|
|
69
|
+
"""Top-level convenience function that wraps the BioLM class and returns the result."""
|
|
70
|
+
return BioLM(
|
|
71
|
+
entity=entity,
|
|
72
|
+
action=action,
|
|
73
|
+
type=type,
|
|
74
|
+
items=items,
|
|
75
|
+
params=params,
|
|
76
|
+
api_key=api_key,
|
|
77
|
+
**kwargs
|
|
78
|
+
)
|