Author: Rishidharan Jayakumar
Affiliation: South Iredell High School, Statesville, NC
NeoScreen is a hybrid deep learning framework for virtual screening and target prediction in drug discovery. Combining ligand-based, structure-based, and graph-based approaches, NeoScreen leverages state-of-the-art techniques to achieve high accuracy and scalability.
project/
├── data/ # Data-related files
│ ├── descriptors/ # Molecular descriptors (e.g., RDKit features)
│ ├── processed/ # Processed datasets
│ ├── raw/ # Raw input data
├── notebooks/ # Jupyter notebooks for experimentation
├── result_files/ # Model outputs and results
├── src/ # Source code
│ ├── evaluation/ # Evaluation metrics and functions
│ │ ├── __init__.py
│ │ ├── metrics.py
│ ├── models/ # Model architectures
│ │ ├── __init__.py
│ │ ├── models.py
│ ├── training/ # Training-related scripts
│ │ ├── __init__.py
│ │ ├── data_processing.py
│ │ ├── train_model.py
│ ├── utils/ # Utility scripts
│ │ ├── __init__.py
│ │ ├── evaluation_metrics.py
│ │ ├── data_processing.py
├── tests/ # Test cases for models and training
├── README.md # Project documentation
├── run_pipeline.py # Main pipeline script to run the framework
├── .env # Environment variables
├── setup.py # Package setup file
- Hybrid Modeling:
- Combines SMILES-based transformer encoders and graph-based neural networks (GCN).
- Comprehensive Data Handling:
- Preprocessing tools for SMILES, molecular graphs, and descriptors.
- Advanced Metrics:
- Evaluates models using accuracy, ROC-AUC, precision, recall, and F1-score.
- End-to-End Pipeline:
- Supports training, evaluation, and testing with checkpointing and logging.
- Python 3.11.6
- DeepChem, PyTorch and PyTorch Geometric
- RDKit for molecular preprocessing
Install and Configure pyenv:
Ensure you have pyenv installed:
brew install pyenvAdd pyenv to your ~/.zshrc:
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"Source the .zshrc file to apply changes:
source ~/.zshrcInstall Python 3.11.6: Use pyenv to install and set Python 3.11.6 globally:
pyenv install 3.11.6
pyenv global 3.11.6-
Activate Python Environment: Create and activate the virtual environment:
python -m venv neoscreen_env source neoscreen_env/bin/activate -
Install Dependencies:
pip install -r requirements.txt- Configure DGL Backend: Ensure DGL uses the PyTorch backend::
mkdir -p ~/.dgl
echo '{ "backend": "pytorch" }' > ~/.dgl/config.json- Verify .zshrc Updates: Ensure your ~/.zshrc has the necessary paths::
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"- Source the .zshrc file::
source ~/.zshrcUse the run_pipeline.py script to train and evaluate the model.
python run_pipeline.pyEdit the CONFIG dictionary in run_pipeline.py to customize the training parameters:
CONFIG = {
"data_path": "data/processed/",
"batch_size": 32,
"input_dim_smiles": 512,
"num_node_features": 128,
"hidden_dim": 256,
"num_classes": 1,
"learning_rate": 0.001,
"epochs": 10,
"save_path": "result_files/best_model.pth",
}Run unit tests to verify the framework:
python -m unittest discover tests-
Data Preparation:
- Converts SMILES strings to molecular graphs.
- Splits data into training, validation, and test sets.
-
Model:
MolFusion: Combines SMILES and graph-based representations.
-
Training:
- Trains the model with checkpointing and logs validation metrics.
-
Evaluation:
- Computes metrics like accuracy, ROC-AUC, precision, recall, and F1-score.
data/: Contains raw and processed datasets.src/models/: Model definitions, includingMolFusion.src/training/: Scripts for data preprocessing and training.src/evaluation/: Evaluation metric functions.tests/: Unit tests for the framework.
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name. - Commit your changes:
git commit -m "Add feature". - Push to the branch:
git push origin feature-name. - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
This project was created by Rishidharan Jayakumar, a student at South Iredell High School, Troutman, NC.
- DEEPScreen: GitHub Repo
- DeepVS: GitHub Repo
- DeepLBVS: GitHub Repo
- PyRMD: GitHub Repo
- Supported by RDKit and PyTorch Geometric.