ttc-nccrp 0.1.1__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.
@@ -0,0 +1,90 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+
5
+ # C extensions
6
+ *.so
7
+
8
+ # Distribution / packaging
9
+ .Python
10
+ env/
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ *.egg-info/
23
+ .installed.cfg
24
+ *.egg
25
+
26
+ # PyInstaller
27
+ # Usually these files are written by a python script from a template
28
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
29
+ *.manifest
30
+ *.spec
31
+
32
+ # Installer logs
33
+ pip-log.txt
34
+ pip-delete-this-directory.txt
35
+
36
+ # Unit test / coverage reports
37
+ htmlcov/
38
+ .tox/
39
+ .coverage
40
+ .coverage.*
41
+ .cache
42
+ nosetests.xml
43
+ coverage.xml
44
+ *.cover
45
+
46
+ # Translations
47
+ *.mo
48
+ *.pot
49
+
50
+ # Django stuff:
51
+ *.log
52
+
53
+ # Sphinx documentation
54
+ docs/_build/
55
+
56
+ # PyBuilder
57
+ target/
58
+
59
+ # DotEnv configuration
60
+ .env
61
+
62
+ # Database
63
+ *.db
64
+ *.rdb
65
+
66
+ # Pycharm
67
+ .idea
68
+
69
+ # VS Code
70
+ .vscode/
71
+
72
+ # Spyder
73
+ .spyproject/
74
+
75
+ # Jupyter NB Checkpoints
76
+ .ipynb_checkpoints/
77
+
78
+ # exclude data from source control by default
79
+ /data/
80
+ /references/
81
+ # Mac OS-specific storage files
82
+ .DS_Store
83
+
84
+ # vim
85
+ *.swp
86
+ *.swo
87
+
88
+ # Mypy cache
89
+ .mypy_cache/
90
+ site/
@@ -0,0 +1 @@
1
+ 3.13
@@ -0,0 +1,10 @@
1
+
2
+ The MIT License (MIT)
3
+ Copyright (c) 2025, patlewig
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
+
@@ -0,0 +1,66 @@
1
+ Metadata-Version: 2.4
2
+ Name: ttc-nccrp
3
+ Version: 0.1.1
4
+ Summary: A simple python implementation of the Kroes TTC workflow
5
+ Author-email: Grace Patlewicz <grace@comptoxscience.com>
6
+ License: MIT
7
+ Requires-Python: >=3.13
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: numpy>=2.3.1
11
+ Requires-Dist: pandas>=2.3.1
12
+ Requires-Dist: rdkit>=2025.3.3
13
+ Provides-Extra: dev
14
+ Requires-Dist: ipykernel>=6.29.5; extra == "dev"
15
+ Requires-Dist: jupyter>=1.1.1; extra == "dev"
16
+ Requires-Dist: matplotlib>=3.10.3; extra == "dev"
17
+ Requires-Dist: seaborn>=0.13.2; extra == "dev"
18
+ Requires-Dist: scikit-learn>=1.7.0; extra == "dev"
19
+ Requires-Dist: openpyxl>=3.1.5; extra == "dev"
20
+ Requires-Dist: pyarrow>=20.0.0; extra == "dev"
21
+ Provides-Extra: docs
22
+ Requires-Dist: mkdocs>=1.6.1; extra == "docs"
23
+ Dynamic: license-file
24
+
25
+ # Python Kroes workflow implementation (ttc_nccrp)
26
+ ==============================
27
+
28
+ [![Powered by RDKit](https://img.shields.io/badge/Powered%20by-RDKit-3838ff.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXc3NwUFP8UPP9kZP+MjP+0tP////9ZXZotAAAAAXRSTlMAQObYZgAAAAFiS0dEBmFmuH0AAAAHdElNRQfmAwsPGi+MyC9RAAAAQElEQVQI12NgQABGQUEBMENISUkRLKBsbGwEEhIyBgJFsICLC0iIUdnExcUZwnANQWfApKCK4doRBsKtQFgKAQC5Ww1JEHSEkAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wMy0xMVQxNToyNjo0NyswMDowMDzr2J4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDMtMTFUMTU6MjY6NDcrMDA6MDBNtmAiAAAAAElFTkSuQmCC)](https://www.rdkit.org/)
29
+
30
+
31
+ The foundation is taken from `https://github.com/g-patlewicz/ttc_exclusions` but relying on alerts described in Benigni et al (2008) `https://publications.jrc.ec.europa.eu/repository/bitstream/JRC43157/eur%20report%20benigni%20130208%20final.pdf`
32
+
33
+ An updated workflow to facilitate assigning of substances through the Kroes et al workflow. Substances are assigned as inorganics, out of scope of TTC due to their TCDD like features, steroid moiety, high potency genotoxic carcinogens, presenting a genotoxicity alert and organophosphates/carbamates. A new optional offramp exists for PFAS substances.
34
+
35
+ Specific Updates:
36
+
37
+ 17-May-2026
38
+ - Adjusted simple aldehyde to cover formaldehyde
39
+ - Added new vinyl halides from Bailey et al Regul. Toxicol. Pharmacol. 2005; 42 (2) 225-35
40
+ - Adjusted hydrazine and nitroso patterns
41
+ - Added additional patterns for a number of other alerts
42
+ - Re-figured the logic for inorganics to capture alerting fragments for organic fragments when using SaltRemover.SaltRemover()
43
+
44
+ 19-May-2026
45
+
46
+ - Added offramp for PFAS
47
+ - Created validation set to evaluate initial performance and refine all alerts that were resulting in discrepancies
48
+
49
+ ## Installation
50
+
51
+ This package requires RDKit. Dependencies are captured in the pyproject.toml file.
52
+
53
+ `uv add ttc_nccrp`
54
+
55
+ ## Licensing
56
+
57
+ This implementation is licensed under **MIT**.
58
+
59
+ ## Citation
60
+
61
+ Please cite Patlewicz and Mihalchik (2026) Revisiting the Threshold of Toxicological Concern: a computational framework for structural classification, cross-scheme comparison and opportunities for refinement. *Computational Toxicology* *under review*
62
+
63
+ ## Acknowledgements
64
+
65
+ A handful of SMARTS patterns and ring detection logic were developed with assistance from Claude Haiku (Anthropic), with subsequent code review to verify correctness.
66
+
@@ -0,0 +1,42 @@
1
+ # Python Kroes workflow implementation (ttc_nccrp)
2
+ ==============================
3
+
4
+ [![Powered by RDKit](https://img.shields.io/badge/Powered%20by-RDKit-3838ff.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXc3NwUFP8UPP9kZP+MjP+0tP////9ZXZotAAAAAXRSTlMAQObYZgAAAAFiS0dEBmFmuH0AAAAHdElNRQfmAwsPGi+MyC9RAAAAQElEQVQI12NgQABGQUEBMENISUkRLKBsbGwEEhIyBgJFsICLC0iIUdnExcUZwnANQWfApKCK4doRBsKtQFgKAQC5Ww1JEHSEkAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wMy0xMVQxNToyNjo0NyswMDowMDzr2J4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDMtMTFUMTU6MjY6NDcrMDA6MDBNtmAiAAAAAElFTkSuQmCC)](https://www.rdkit.org/)
5
+
6
+
7
+ The foundation is taken from `https://github.com/g-patlewicz/ttc_exclusions` but relying on alerts described in Benigni et al (2008) `https://publications.jrc.ec.europa.eu/repository/bitstream/JRC43157/eur%20report%20benigni%20130208%20final.pdf`
8
+
9
+ An updated workflow to facilitate assigning of substances through the Kroes et al workflow. Substances are assigned as inorganics, out of scope of TTC due to their TCDD like features, steroid moiety, high potency genotoxic carcinogens, presenting a genotoxicity alert and organophosphates/carbamates. A new optional offramp exists for PFAS substances.
10
+
11
+ Specific Updates:
12
+
13
+ 17-May-2026
14
+ - Adjusted simple aldehyde to cover formaldehyde
15
+ - Added new vinyl halides from Bailey et al Regul. Toxicol. Pharmacol. 2005; 42 (2) 225-35
16
+ - Adjusted hydrazine and nitroso patterns
17
+ - Added additional patterns for a number of other alerts
18
+ - Re-figured the logic for inorganics to capture alerting fragments for organic fragments when using SaltRemover.SaltRemover()
19
+
20
+ 19-May-2026
21
+
22
+ - Added offramp for PFAS
23
+ - Created validation set to evaluate initial performance and refine all alerts that were resulting in discrepancies
24
+
25
+ ## Installation
26
+
27
+ This package requires RDKit. Dependencies are captured in the pyproject.toml file.
28
+
29
+ `uv add ttc_nccrp`
30
+
31
+ ## Licensing
32
+
33
+ This implementation is licensed under **MIT**.
34
+
35
+ ## Citation
36
+
37
+ Please cite Patlewicz and Mihalchik (2026) Revisiting the Threshold of Toxicological Concern: a computational framework for structural classification, cross-scheme comparison and opportunities for refinement. *Computational Toxicology* *under review*
38
+
39
+ ## Acknowledgements
40
+
41
+ A handful of SMARTS patterns and ring detection logic were developed with assistance from Claude Haiku (Anthropic), with subsequent code review to verify correctness.
42
+
@@ -0,0 +1,16 @@
1
+ # Description
2
+
3
+ ttc_nccrp is a python package aimed at profiling substances through the Kroes et al (2004) Threshold of Toxicological Concern (TTC) workflow.
4
+
5
+ ## Installation
6
+
7
+ UV install
8
+
9
+ ```uv add ttc_nccrp```
10
+
11
+ or clone the repository
12
+
13
+ ```git clone https:github.com/patlewig/ttc_nccrp.git```
14
+
15
+ then sync the dependencies using ```uv sync``
16
+
@@ -0,0 +1,38 @@
1
+ # Quickstart
2
+
3
+ ## To get started
4
+
5
+ Import the main functions
6
+
7
+ ```from ttc_nccrp.chm.chm import MoleculeProcessor```
8
+
9
+ ## Single chemical
10
+ Instantiate the MolecularProcessor()
11
+
12
+ ```mol = MolecularProcessor()```
13
+
14
+ Then add a chemical providing a identifier using the parameter `dtxsid` and a smiles with `smiles`
15
+
16
+ ```mol.add_chemical(dtxsid = 'dtx123', smiles = 'CCCCC(=O)')```
17
+
18
+ To invoke the Kroes decision tree use:
19
+
20
+ ```mol.decision_tree()```
21
+
22
+ ## Batch processing
23
+
24
+ Assuming that the list of substances of interest are in a tabular form such as within a CSV or Excel file.
25
+ Import the ```csv``` or ```excel``` into a pandas dataframe `df`. Ensure that there is an identifier column called ```dtxsid``` and a smiles column called ```smiles```.
26
+
27
+ Instantiate MoleculeProcessor as an instance as before:
28
+
29
+ ```mol = MolecularProcessor()
30
+ res = mol.process_batch(df)
31
+ ```
32
+
33
+ ```mol.process_batch(df)``` returns the original dataframe but with a new column called `final_TTC_category`
34
+
35
+ The outcome returns the TTC category triggered e.g. `DLC - TTC not applicable` or `GeneTox - TTC of 0.15 ug/day` or `Like Cramer class applicable`.
36
+
37
+
38
+
@@ -0,0 +1,11 @@
1
+ site_name: ttc_nccrp
2
+
3
+ nav:
4
+ - home: index.md
5
+ - quickstart: kroes.md
6
+
7
+
8
+ site_author: patlewig
9
+
10
+ theme: readthedocs
11
+
File without changes