polyscript-pypi 0.1.0__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.
- MCP/server.py +770 -0
- polyscript/__init__.py +12 -0
- polyscript/brics/BRICSMod.py +1164 -0
- polyscript/brics/BRICS_utils.py +189 -0
- polyscript/brics/__init__.py +48 -0
- polyscript/classifier/__init__.py +270 -0
- polyscript/classifier/class_reference.py +951 -0
- polyscript/depolymerizer/__init__.py +576 -0
- polyscript/depolymerizer/mpi.py +390 -0
- polyscript/depolymerizer/reaction_reference.py +447 -0
- polyscript/polymerizer/__init__.py +22 -0
- polyscript/polymerizer/core.py +648 -0
- polyscript/polymerizer/mpi.py +860 -0
- polyscript/polymerizer/mpi_df.py +378 -0
- polyscript/polymerizer/utils.py +795 -0
- polyscript/utils/__init__.py +80 -0
- polyscript/utils/adapters.py +357 -0
- polyscript/utils/canon_analyze.py +193 -0
- polyscript/utils/executor.py +66 -0
- polyscript/utils/logger.py +331 -0
- polyscript/utils/mpi/__init__.py +33 -0
- polyscript/utils/mpi/checkpoint.py +263 -0
- polyscript/utils/mpi/logger.py +138 -0
- polyscript/utils/mpi/progress.py +134 -0
- polyscript/utils/mpi/protocol.py +113 -0
- polyscript/utils/mpi/resource.py +94 -0
- polyscript/utils/mpi/splitter.py +42 -0
- polyscript/utils/mpi_executor.py +167 -0
- polyscript/utils/mpi_validator.py +940 -0
- polyscript/utils/parsers.py +177 -0
- polyscript/utils/validators.py +201 -0
- polyscript_pypi-0.1.0.dist-info/METADATA +82 -0
- polyscript_pypi-0.1.0.dist-info/RECORD +57 -0
- polyscript_pypi-0.1.0.dist-info/WHEEL +5 -0
- polyscript_pypi-0.1.0.dist-info/licenses/LICENSE +21 -0
- polyscript_pypi-0.1.0.dist-info/top_level.txt +4 -0
- runners/adapt_dataframe.py +105 -0
- runners/brics_decompose.py +28 -0
- runners/canonicalization.py +46 -0
- runners/filter_candidates.py +54 -0
- runners/mpi_depolymerize.py +51 -0
- runners/mpi_runner.py +66 -0
- runners/mpi_runner_df.py +49 -0
- runners/mpi_validator.py +45 -0
- tests/conftest.py +10 -0
- tests/sample_gen.py +10 -0
- tests/test_brics.py +275 -0
- tests/test_classifier.py +201 -0
- tests/test_mpi_polymerize.py +170 -0
- tests/test_polymerize.py +206 -0
- tests/utils/test_adaptors.py +182 -0
- tests/utils/test_canonicalization.py +62 -0
- tests/utils/test_executor.py +101 -0
- tests/utils/test_logger.py +426 -0
- tests/utils/test_mpi_validator.py +159 -0
- tests/utils/test_parsers.py +150 -0
- tests/utils/test_validator.py +105 -0
polyscript/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""PolyScript: A chemical notation format and toolkit for polymer sequences.
|
|
2
|
+
|
|
3
|
+
PolyScript encodes polymer synthesis information as a structured string
|
|
4
|
+
containing monomers (SMILES), a reaction (SMARTS), and the resulting
|
|
5
|
+
polymer (SMILES/PSMILES), e.g.::
|
|
6
|
+
|
|
7
|
+
${monomer1}+{monomer2}=>{reaction_smarts}=>{polymer}$
|
|
8
|
+
|
|
9
|
+
The package provides utilities for parsing, validating, converting, and
|
|
10
|
+
analysing PolyScript sequences, including MPI-parallel batch validation
|
|
11
|
+
of large datasets.
|
|
12
|
+
"""
|