rcsb.workflow 0.62__tar.gz → 0.63__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.
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/HISTORY.txt +2 -0
- {rcsb_workflow-0.62/rcsb.workflow.egg-info → rcsb_workflow-0.63}/PKG-INFO +1 -1
- rcsb_workflow-0.63/rcsb/workflow/cli/ChemSearchIndexExec.py +65 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/cli/__init__.py +1 -1
- {rcsb_workflow-0.62 → rcsb_workflow-0.63/rcsb.workflow.egg-info}/PKG-INFO +1 -1
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb.workflow.egg-info/SOURCES.txt +1 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb.workflow.egg-info/entry_points.txt +1 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/setup.py +8 -1
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/LICENSE +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/MANIFEST.in +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/README.md +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/__init__.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/__init__.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/bcif/__init__.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/bcif/task_functions.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/chem/ChemCompFileWorkflow.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/chem/ChemCompImageWorkflow.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/chem/ChemCompSearchIndexWorkflow.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/chem/__init__.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/cli/BcifExec.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/cli/ExDbExec.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/cli/ImgExec.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/targets/ProteinTargetSequenceExecutionWorkflow.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/targets/ProteinTargetSequenceWorkflow.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/targets/__init__.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/wuw/BcifWorkflow.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/wuw/ExDbWorkflow.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/wuw/PdbCsmImageWorkflow.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/wuw/WuwUtils.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/wuw/__init__.py +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb.workflow.egg-info/dependency_links.txt +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb.workflow.egg-info/not-zip-safe +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb.workflow.egg-info/requires.txt +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb.workflow.egg-info/top_level.txt +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/requirements.txt +0 -0
- {rcsb_workflow-0.62 → rcsb_workflow-0.63}/setup.cfg +0 -0
|
@@ -56,3 +56,5 @@
|
|
|
56
56
|
4-Sep-2025 - V0.60 Update requirements and docker file
|
|
57
57
|
10-Sep-2025 - V0.61 Return without error in bcif task functions, update content prefixes
|
|
58
58
|
30-Sep-2025 - V0.62 Let jpg gen use model file over URL
|
|
59
|
+
9-Sep-2025 - V0.63 Add ChemSearchIndex from weekly-update-workflow so it can be a cli call instead
|
|
60
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
|
|
2
|
+
from rcsb.workflow.chem.ChemCompSearchIndexWorkflow import ChemCompSearchIndexWorkflow
|
|
3
|
+
import argparse
|
|
4
|
+
import logging
|
|
5
|
+
|
|
6
|
+
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s]-%(module)s.%(funcName)s: %(message)s")
|
|
7
|
+
logger = logging.getLogger()
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def main():
|
|
11
|
+
"""Build indices and configuration files required to support the chemical search service."""
|
|
12
|
+
parser = argparse.ArgumentParser()
|
|
13
|
+
parser.add_argument("--cachePath", required=True, help="Cache path.")
|
|
14
|
+
parser.add_argument("--ccUrlTarget", required=True, help="Chem comp url target.")
|
|
15
|
+
parser.add_argument("--birdUrlTarget", required=True, help="Bird url target.")
|
|
16
|
+
parser.add_argument("--channel", required=True, help="Channel.")
|
|
17
|
+
parser.add_argument("--useCache", action="store_true", default=False, required=True, help="Should it use the cache.")
|
|
18
|
+
parser.add_argument("--ccFileNamePrefix", required=True, help="Chem comp file name prefix.")
|
|
19
|
+
parser.add_argument("--numProc", required=True, help="Number of procs for makeIndices.")
|
|
20
|
+
parser.add_argument("--blHostName", required=True, help="Build locker host name.")
|
|
21
|
+
parser.add_argument("--blUploadPathUnsynced", required=True, help="Build locker upload path unsynced.")
|
|
22
|
+
parser.add_argument("--sftpUserName", required=True, help="SFTP username.")
|
|
23
|
+
parser.add_argument("--sftpUserPassword", required=True, help="SFTP user password.")
|
|
24
|
+
args = parser.parse_args()
|
|
25
|
+
|
|
26
|
+
# Build chemical indices -
|
|
27
|
+
logger.info("Using cache path %r", args.cachePath)
|
|
28
|
+
logger.info("Using ccFileNamePrefix %s", args.ccFileNamePrefix)
|
|
29
|
+
ccidxWf = ChemCompSearchIndexWorkflow(cachePath=args.cachePath, ccFileNamePrefix=args.ccFileNamePrefix)
|
|
30
|
+
okI = ccidxWf.makeIndices(
|
|
31
|
+
args.ccUrlTarget, args.birdUrlTarget, numProc=int(args.numProc), useCache=args.useCache
|
|
32
|
+
)
|
|
33
|
+
logger.info("Chemical search index build completed with status %r", okI)
|
|
34
|
+
#
|
|
35
|
+
okS = False
|
|
36
|
+
if okI:
|
|
37
|
+
# Store chemical indices for future use -
|
|
38
|
+
sftpHost = args.blHostName
|
|
39
|
+
okS = ccidxWf.stashIndices(
|
|
40
|
+
"sftp://" + sftpHost,
|
|
41
|
+
args.blUploadPathUnsynced,
|
|
42
|
+
bundleLabel=args.channel.upper(),
|
|
43
|
+
userName=args.sftpUserName,
|
|
44
|
+
pw=args.sftpUserPassword,
|
|
45
|
+
)
|
|
46
|
+
logger.info("Chemical search index stashed with status %r", okS)
|
|
47
|
+
else:
|
|
48
|
+
msg = "Chemical search index completed with status %r" % okI
|
|
49
|
+
raise ValueError(msg)
|
|
50
|
+
#
|
|
51
|
+
|
|
52
|
+
if not okS:
|
|
53
|
+
error_msg = "Failed to stash chemical search index data"
|
|
54
|
+
raise ValueError(error_msg)
|
|
55
|
+
|
|
56
|
+
message = "Chemical Search Index completed with status %r stash status %r" % (okI, okS)
|
|
57
|
+
logger.info("Completion message is %s", message)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
if __name__ == "__main__":
|
|
61
|
+
try:
|
|
62
|
+
main()
|
|
63
|
+
except Exception as err:
|
|
64
|
+
fail_msg = f"Run failed {err}"
|
|
65
|
+
raise RuntimeError(fail_msg) from err
|
|
@@ -21,6 +21,7 @@ rcsb/workflow/chem/ChemCompImageWorkflow.py
|
|
|
21
21
|
rcsb/workflow/chem/ChemCompSearchIndexWorkflow.py
|
|
22
22
|
rcsb/workflow/chem/__init__.py
|
|
23
23
|
rcsb/workflow/cli/BcifExec.py
|
|
24
|
+
rcsb/workflow/cli/ChemSearchIndexExec.py
|
|
24
25
|
rcsb/workflow/cli/ExDbExec.py
|
|
25
26
|
rcsb/workflow/cli/ImgExec.py
|
|
26
27
|
rcsb/workflow/cli/__init__.py
|
|
@@ -49,7 +49,14 @@ setup(
|
|
|
49
49
|
"Programming Language :: Python :: 3.10",
|
|
50
50
|
],
|
|
51
51
|
# entry_points={"console_scripts": ["cactvs_annotate_mol=rcsb.workflow.cactvsAnnotateMol:main"]},
|
|
52
|
-
entry_points={
|
|
52
|
+
entry_points={
|
|
53
|
+
"console_scripts": [
|
|
54
|
+
"exdb_wf_cli=rcsb.workflow.cli.ExDbExec:main",
|
|
55
|
+
"imgs_exec_cli=rcsb.workflow.cli.ImgExec:main",
|
|
56
|
+
"bcif_exec_cli=rcsb.workflow.cli.BcifExec:main",
|
|
57
|
+
"chem_search_index_cli=rcsb.workflow.cli.ChemSearchIndexExec:main"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
53
60
|
# The following is somewhat flakey --
|
|
54
61
|
# dependency_links=[],
|
|
55
62
|
install_requires=packagesRequired[1:],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rcsb_workflow-0.62 → rcsb_workflow-0.63}/rcsb/workflow/targets/ProteinTargetSequenceWorkflow.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|