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 get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes 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.7.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: antibacterial-model-1.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 5eb47f7b7ae12fc6cc1f484d9e426c5fc1c35fc13b81025ac1c070366cc291eb
MD5 c70ff6c6c5702e3fd41a9293e9dbc52f
BLAKE2b-256 82648fe10bf300ac20825a471dfa6746c1965d7c5c006e647acfdec93fcccea9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for antibacterial_model-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 82e9881fda5c7263132938f0f3ef69892cfc576aab705ff66f95f4cf06566d5b
MD5 bff25dca05496c4ea11442b452ce02c5
BLAKE2b-256 7f47168d9cff6d609ef1be802cc3b3e33c81ab97b8c6d57021c2edbfd404a828

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