amberNPS-api
amperNPS-api is a convenient python API to make predictions lethal blood concentrations (LBC) of new psychoactive substances (NPS).
amberNPS is a streamlit application developed by Tarcisio Nascimento Correa. For further details please the publication at A QSAR-based application for the prediction of lethal blood concentration of new psychoactive substances
Installation
Install the latest version of amberNPS with pip:
pip install amberNPS
Example usage
Import the amberNPS class, instatiate it then call the predict method with the SMILES string:
>>> from amberNPS import amberNPS
>>> a = amberNPS()
>>> a = a.predict("Brc1cc2C(=NCc3nnc(C)n3c2cc1)c4ccccc4") # bromazolam
>>> preds
{'Drug Class': 'Benzodiazepines', 'LOLBC': 28.988149644904777,'LBC50': 151.32238377755087, 'HOLBC': 870.7153200659999}
Results are also stored as properties:
>>> a.LOLBC
28.988149644904777
>>> a.LBC50
151.32238377755087
>>> a.HOLBC
870.7153200659999
>>> a.drug_class
'Benzodiazepines'
>>> a.smiles
'Brc1cc2C(=NCc3nnc(C)n3c2cc1)c4ccccc4'
The raw predictions (log10 of concentrations above) can also be accessed.
As a list:
>>> a.lbc_preds
[1.0843620906924618, 0.36667941118940295, -0.3932936005597203]
Or using properties:
>>> a.pLOLBC
1.0843620906924618
>>> a.pLBC50
0.36667941118940295
>>> a.pHOLBC
0.3932936005597203
You can also render the image of the structure (this may or may not work depending on IDE):
a.structure
Documentation
The API reference is available at https://ambernps-api.readthedocs.io/en/latest/amberNPS.html#module-amberNPS.
Contributing
- Feature ideas and bug reports are welcome on the Issue Tracker.
- Fork the source code on GitHub, make changes and file a pull request.
License
PubChemPy is licensed under the MIT license.
Metadata
Release files for amberNPS 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ambernps-0.1.6.tar.gz | 1.2 MB | Without provenance | Details for ambernps-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ambernps-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for ambernps-0.1.6-py3-none-any.whl |
Total release size: 2.5 MB
Release files / ambernps-0.1.6.tar.gz
| Download URL | ambernps-0.1.6.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e9f68a96a91c0469fb074cc7465023b493358943d8651a661e5f3709af74c86
|
|
BLAKE2b-256 checksum How to use checksums |
0163f80f8debaadf57c000b7b5cc7db1c9276d2590c0819700800bc74726343d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / ambernps-0.1.6-py3-none-any.whl
| Download URL | ambernps-0.1.6-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aeff6ba9490aa2842fbb5518ace5d7c649605dd046dec0d10399a009393b0df3
|
|
BLAKE2b-256 checksum How to use checksums |
bfc616b23a24ef466c7a0e1df8b6cabe5cc679d580817e2bc33b740b495b62b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for amberNPS 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.