Skip to main content

A model for predicting antibacterial activity from SMILES strings

Project description

Machine Learning model for identification of antibacterial compounds

A python package developed from a machine learning model for identifying antibacterial compounds from the SMILES format.

Getting Started

These instructions will inform you how to use and run our developed package on your local machine for development and testing purposes. Read below on how to deploy the project on a live system.

Installing

You can install the package using pip:

pip install antibacterial-model 

Usage

How to use the prediction package is as follows:

  1. Import Antibacterial model package.
  2. Create an instance of Antibacterial model.
  3. Use the model to predict antibacterial activity from a text file containing SMILES structures.
# import package  
from antibacterial_model import AntibacterialModel

# Create an instance of AntibacterialModel
model = AntibacterialModel()

# Use the model to make predictions
model.predict('Your_SMILES_file.txt', 'Your_Prediction_output.txt')

Finally, the output will be saved as a text file after prediction using the model.

Input and output file example

The input file must be a text file containing isomeric SMILES structures as shown in the example below:

# in input_file.txt
C1=CC=C(C(=C1)C(=O)O)O 
C1CCNC(C1)C2COC(O2)(C3=CC=CC=C3)C4=CC=CC=C4
C(C(C(C(C(CO)O)O)O)O)O
C1CC(CNC1)C(=O)NNC(=O)C2CCC3CN2C(=O)N3OS(=O)(=O)O
C1=CN=CC=C1N

The output file will be a text file containing SMILES structures and the prediction results as shown in the example:

# in output_file.txt
C1=CC=C(C(=C1)C(=O)O)O - Prediction : Active
C1CCNC(C1)C2COC(O2)(C3=CC=CC=C3)C4=CC=CC=C4 - Prediction : Inactive
C(C(C(C(C(CO)O)O)O)O)O - Prediction : Active
C1CC(CNC1)C(=O)NNC(=O)C2CCC3CN2C(=O)N3OS(=O)(=O)O - Prediction : Inactive
C1=CN=CC=C1N - Prediction : Inactive

Prediction result

The prediction output consists of 2 values:

  • Active: a substance with antibacterial properties
  • Inactive: a substance without antibacterial properties

Limitation

The developed model is suitable only for Python language and must install libraries to match the version used by the researchers to run the code through the model for prediction results

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antibacterial-model-1.0.8.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

antibacterial_model-1.0.8-py3-none-any.whl (4.2 MB view details)

Uploaded Python 3

File details

Details for the file antibacterial-model-1.0.8.tar.gz.

File metadata

  • Download URL: antibacterial-model-1.0.8.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for antibacterial-model-1.0.8.tar.gz
Algorithm Hash digest
SHA256 501fbcbdff72feb45195274f7eb7f6d5cd2bbca036b1fc7a1a72bbe92d4a3294
MD5 d803b4dbd7a3f2d6be34360a8bde3a39
BLAKE2b-256 3db8ee82e275f707bd0f93c6534413c4fa72d2ce94bdf791ec0dfd3e62c6532d

See more details on using hashes here.

File details

Details for the file antibacterial_model-1.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for antibacterial_model-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 563e93d7b0a5ddb334e30bb5745cab5e64d5aaf1c07a8c561b3c62cda578b02f
MD5 eeaae739a1e09a8781f96233d6af132f
BLAKE2b-256 62011a1ab285a674f3d9b14c973d027bda5bea5dbc7a6313ee30cd2e04e88449

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page