Skip to main content

Utility for reaction modeling using graph grammar

Project description

medchemfilters

Overview

medchemfilters is a Python-based utility designed to streamline virtual screening in drug discovery. It features MCFilter, a comprehensive module for calculating molecular properties and filtering compounds according to well-established pharmaceutical guidelines such as Ro5, Pfizer, and GSK rules.

Installation

To install and set up medchemfilters, follow these steps:

  1. Clone the repository:
    git clone https://github.com/your-username/medchemfilters.git
    cd medchemfilters
    
  2. Install required Python packages:
    pip install -r requirements.txt
    

Usage

In a Jupyter Notebook

For interactive use, such as in a Jupyter notebook, follow this example to utilize the MCFilter:

from medchemfilters.ADMET.filters import MCFilter

# Initialize MCFilter with default settings
filter = MCFilter()

# Calculate molecular descriptors for a SMILES string
smiles = "CCO"
results = filter.calculate_des(smiles)
print(results)

Command-Line Interface

MCFilter can also be executed from the command line to process either individual SMILES strings or batches from a CSV file:

  • Processing a Single SMILES String:

    python main.py "CCO"
    
  • Processing SMILES from a CSV File:

    python main.py path/to/input.csv --smiles_column column_name --output path/to/output.csv
    

Command-Line Options

  • input: A single SMILES string or the path to a CSV file containing SMILES strings.
  • -c, --smiles_column: Specifies the column name in the CSV that contains SMILES strings (default: smiles).
  • -o, --output: Specifies the output file path for processed results. If not provided, results will be displayed in the terminal.
  • -j, --jobs: The number of parallel jobs for processing (default: 1).
  • -v, --verbose: Sets the verbosity level of the output (default: 0, silent).

Requirements

Python 3.9 or higher is required. All dependencies are listed in the requirements.txt file.

License

medchemfilters is open-source software licensed under the MIT License. See the LICENSE file for more details.

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

medchemfilters-0.0.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

medchemfilters-0.0.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file medchemfilters-0.0.1.tar.gz.

File metadata

  • Download URL: medchemfilters-0.0.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for medchemfilters-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ef812636570a17c45675231e961e088a2bdd841282ffd1b0a9fa554c2d5984bf
MD5 8452fbf7e8cea06fe0516d9233760074
BLAKE2b-256 e752ae4abac535728dc891f66616673e05e72bb3fc10efdaf3349c3da9bd4ad3

See more details on using hashes here.

File details

Details for the file medchemfilters-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: medchemfilters-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for medchemfilters-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 13b913ceaf41828cd74e1a063538c5adf8b57db0933891336e4a7fdf486c8ebf
MD5 550df77c09679f3e0411f39841a98e41
BLAKE2b-256 0ec67a205a91b790172a8f87b10b6fe4b87f8dadffca0a9c42fccfbb5c67dab2

See more details on using hashes here.

Supported by

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