pybiolib 1.2.164.dev1__py3-none-any.whl → 1.2.166__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.
- biolib/_runtime/runtime.py +6 -11
- {pybiolib-1.2.164.dev1.dist-info → pybiolib-1.2.166.dist-info}/METADATA +1 -1
- {pybiolib-1.2.164.dev1.dist-info → pybiolib-1.2.166.dist-info}/RECORD +6 -6
- {pybiolib-1.2.164.dev1.dist-info → pybiolib-1.2.166.dist-info}/LICENSE +0 -0
- {pybiolib-1.2.164.dev1.dist-info → pybiolib-1.2.166.dist-info}/WHEEL +0 -0
- {pybiolib-1.2.164.dev1.dist-info → pybiolib-1.2.166.dist-info}/entry_points.txt +0 -0
biolib/_runtime/runtime.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import json
|
2
|
-
import logging
|
3
|
-
import os
|
4
2
|
import re
|
3
|
+
from pathlib import Path
|
5
4
|
from typing import Optional
|
6
5
|
|
7
6
|
from biolib import api
|
8
7
|
from biolib._internal.runtime import BioLibRuntimeError, BioLibRuntimeNotRecognizedError, RuntimeJobDataDict
|
8
|
+
from biolib.biolib_logging import logger
|
9
9
|
from biolib.typing_utils import cast
|
10
10
|
from biolib.utils.seq_util import SeqUtil
|
11
11
|
|
@@ -68,20 +68,15 @@ class Runtime:
|
|
68
68
|
if detecting a BioLib generated name, use ID of the first sequence in the fasta file
|
69
69
|
"""
|
70
70
|
|
71
|
-
def file_path_to_stem(file_path):
|
72
|
-
return os.path.splitext(os.path.basename(file_path))[0]
|
73
|
-
|
74
71
|
# Set job name to first header if FASTA text input (random BioLib file) detected
|
75
72
|
if re.match('^input_[A-Za-z0-9]+.*', path_to_fasta):
|
76
73
|
first_id = next(SeqUtil.parse_fasta(path_to_fasta)).id
|
77
|
-
|
78
|
-
|
74
|
+
result_name = first_id.replace(' ', '_')[:60]
|
79
75
|
else:
|
80
|
-
|
81
|
-
|
82
|
-
logging.debug(f"Setting job name to '{job_name}' from {path_to_fasta}")
|
76
|
+
result_name = Path(path_to_fasta).stem
|
83
77
|
|
84
|
-
|
78
|
+
logger.debug(f'Setting result name to "{result_name}" from {path_to_fasta}')
|
79
|
+
Runtime.set_result_name_prefix(result_name)
|
85
80
|
|
86
81
|
@staticmethod
|
87
82
|
def create_result_note(note: str) -> None:
|
@@ -26,7 +26,7 @@ biolib/_internal/types/resource_version.py,sha256=sLxViYXloDDUhTDFgjegiQCj097OM1
|
|
26
26
|
biolib/_internal/types/typing.py,sha256=D4EKKEe7kDx0K6lJi-H_XLtk-8w6nu2fdqn9bvzI-Xo,288
|
27
27
|
biolib/_internal/utils/__init__.py,sha256=p5vsIFyu-zYqBgdSMfwW9NC_jk7rXvvCbV4Bzd3As7c,630
|
28
28
|
biolib/_internal/utils/multinode.py,sha256=zWrQhcVK5u_xdWX2oIM-D_2fINqNPlqF_h71fu4K8LY,8279
|
29
|
-
biolib/_runtime/runtime.py,sha256=
|
29
|
+
biolib/_runtime/runtime.py,sha256=b6AnHtfJ2DmEspC02sOGLt7VjienFKWaiR2PmMKnC38,3931
|
30
30
|
biolib/api/__init__.py,sha256=mQ4u8FijqyLzjYMezMUUbbBGNB3iFmkNdjXnWPZ7Jlw,138
|
31
31
|
biolib/api/client.py,sha256=FRpdH5aI187b_I_4HUNi680v4iOP65z5f2RcUo8D8MA,3559
|
32
32
|
biolib/app/__init__.py,sha256=cdPtcfb_U-bxb9iSL4fCEq2rpD9OjkyY4W-Zw60B0LI,37
|
@@ -119,8 +119,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
119
119
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
120
120
|
biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
|
121
121
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
122
|
-
pybiolib-1.2.
|
123
|
-
pybiolib-1.2.
|
124
|
-
pybiolib-1.2.
|
125
|
-
pybiolib-1.2.
|
126
|
-
pybiolib-1.2.
|
122
|
+
pybiolib-1.2.166.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
123
|
+
pybiolib-1.2.166.dist-info/METADATA,sha256=8aAKdt7iWjDaX-qQrEUsnzJuuyjE_XkMCPMvByNMYoA,1507
|
124
|
+
pybiolib-1.2.166.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
125
|
+
pybiolib-1.2.166.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
126
|
+
pybiolib-1.2.166.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|