Skip to main content

IonNTxPred

A computational framework for predicting and designing ion channel-impairing proteins using alignment-based, machine learning, and protein language model-based methods.


📌 Introduction

IonNTxPred is developed to help researchers identify proteins and peptides that modulate ion channels such as sodium (Na⁺), potassium (K⁺), calcium (Ca²⁺), and others. It integrates traditional ML models, motif discovery, and state-of-the-art protein language models (PLMs) to deliver accurate predictions and insightful biological analysis. It employs large language model for predicting toxic activity against ion channel. The final model offers Prediction, Protein-Scanning, and Design modules, implemented using protein language models.

🔗 Visit the web server for more information: IonNTxPred Web Server

🔗 Visit the Hugging Face: IonNTxPred

📖 Please cite relevant content for complete details, including the algorithm behind the approach.


📚 Reference

Rathore et al. LLM-based Prediction and Designing of Ion Channel Impairing Proteins. #Coming Soon#


🖼️ IonNTxPred Workflow Representation

IonNTxPred Workflow

🧪 Quick Start for Reproducibility

Follow these steps to replicate the core results of our paper:

# 1. Clone the repository
git clone https://github.com/raghavagps/IonNTxPred.git
cd IonNTxPred

# 2. Set up the environment (conda recommended)
conda env create -f environment.yml
conda activate IonNTxPred

# 3. Download pre-trained models
# Visit: https://webs.iiitd.edu.in/raghava/IonNTxPred/download.html
# Download the model ZIP and extract it in the root directory

# 4. See the available optiopns
python ionntxpred.py -h

# 5. Run prediction on sample input
python ionntxpred.py -i example.fasta -o output.csv  -j 1 -m 1 -wd working_direcotory_path

🛠️ Installation Options

To install IonNTxPred via PIP, run:

pip install ionntxpred

To check available options, type:

ionntxpred -h

🔹 Standalone Installation

IonNTxPred is written in Python 3 and requires the following dependencies:

✅ Required Libraries

python=3.10.7
pytorch

Additional required packages:

pip install scikit-learn==1.5.2
pip install pandas==1.5.3
pip install numpy==1.25.2
pip install torch==2.1.0
pip install transformers==4.34.0
pip install joblib==1.4.2
pip install onnxruntime==1.15.1
Bio (Biopython): 1.81
tqdm: 4.64.1
torch: 2.6.0

🔹 Installation using environment.yml

  1. Create a new Conda environment:
conda env create -f environment.yml
  1. Activate the environment:
conda activate IonNTxPred

⚠️ Important Note- 1

  • Due to the large size of the model file, the model directory has been compressed and uploaded.
  • Download the zip file from Download Page.
  • Extract the file before using the code or model.

⚠️ Important Note- 2

  • Due to the large size of the model file, the model directory has been compressed and uploaded.
  • Download the zip file from Download Page.
  • Extract the file before using the code or model.

🔹 BLAST+ Dependency

IonNTxPred requires BLAST+ version 2.17.0+ for running the Hybrid model.

  • Download the blast binaries file from Download Page. Please download the BLAST+ binary compatible with your operating system:

  • Linux (x64): ncbi-blast-2.17.0+-x64-linux.tar.gz

  • macOS (x64/arm64): ncbi-blast-2.17.0+-x64-macosx.tar.gz

  • Windows (x64): ncbi-blast-2.17.0+-x64-win64.tar.gz

🔗 NCBI BLAST+ Download Page

After downloading:

# Example for Linux
tar -xvzf ncbi-blast-2.17.0+-x64-linux.tar.gz

---

## 🔬 Classification
**IonNTxPred** classifies peptides and proteins as **ion channel impairing or non-impairing** based on their primary sequence.

🔹 **Model Options**
- **ESM2-t33**
- **Hybrid model (ESM2-t33+BLAST)**: Default Mode **

---

## 🚀 Usage

### 🔹 Minimum Usage
```bash
ionntxpred.py -h

To run an example:

ionntxpred.py -i example.fasta

🔹 Full Usage

usage: ionntxpred.py [-h]
                   [-i INPUT]
                   [-o OUTPUT]
                   [-t THRESHOLD]
                   [-j {1,2,3,4,5}]
                   [-c {1,2,3,4}]
                   [-m {1,2}]
                   [-d {1,2}]
                   [-wd WORKING DIRECTORY]

Required Arguments

Argument Description
-i INPUT Input: Peptide or protein sequence (FASTA format or simple format)
-o OUTPUT Output file (default: outfile.csv)
-t THRESHOLD Threshold (0-1, default: 0.3)
-j {1,2,3,4,5} Job type: 1-Prediction, 2-Protein Scanning, 3-Design all possible mutants, 4- Motif Scanning, 5- BLAST Search,
-c {1,2,3,4} Ion channel type: 1: Na+, 2: K+, 3: Ca+, 4: Other
-m {1,2} Model selection: 1: ESM2-t33, 2: Hybrid (ESM2-t33 + BLAST)
-wd WORKING Working directory for saving results

📂 Input & Output Files

✅ Input File Format

IonNTxPred supports two formats:

  1. FASTA Format: (Example: example.fasta)
  2. Simple Format: (Example: example.seq, each sequence on a new line)

✅ Output File

  • Results are saved in CSV format.
  • If no output file is specified, results are stored in outfile.csv.

🔍 Jobs & Features

🔹 Job Types

Job Description
1️⃣ Prediction Predicts whether the input peptide/protein is an ion channel impairing or not.
2️⃣ Protein Scanning Identifies toxic regions in a protein sequence.
3️⃣ Design Generates and predicts all possible mutants.
4️⃣ Motif Scanning Identifies motifs using MERCI
5️⃣ BLAST Search Identifies toxins based BLAST hits

🔹 Additional Options

Option Description
-w {8-20} Window length (Protein Scan mode only, default: 12)
-d {1,2} Display: 1-Ion channel impairing only, 2-All peptides (default)

📑 Package Contents

File Description
INSTALLATION Installation instructions
LICENSE License information
README.md This file
IonNTxPred.py Python program for classification
example.fasta Example file (FASTA format)

📦 PIP Installation (Again for Reference)

pip install ionntxpred

Check options:

ionntxpred -h

🚀 Start predicting toxicity with IonNTxPred today!

🔗 Visit: IonNTxPred Web Server

Metadata

Release files for ionntxpred 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ionntxpred 1.2
File Size Uploaded Provenance Actions
ionntxpred-1.2.tar.gz 31.3 MB Without provenance Details for ionntxpred-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ionntxpred 1.2
File Interpreter ABI Platform Actions
ionntxpred-1.2-py3-none-any.whl Python 3 none any Details for ionntxpred-1.2-py3-none-any.whl

Total release size: 62.7 MB

Release files / ionntxpred-1.2.tar.gz

Download URL ionntxpred-1.2.tar.gz
Size 31.3 MB
Tags Source
SHA-256 checksum
How to use checksums
72b45e5a68e9705548b2f9c334160efb4b5bf029aaaa1b2d6cd61c39f7d5dffb
BLAKE2b-256 checksum
How to use checksums
9d8d940941a247972bafc8ac39700e98911219c78f8e719dbfb9f3939fc9494b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.7

Release files / ionntxpred-1.2-py3-none-any.whl

Download URL ionntxpred-1.2-py3-none-any.whl
Size 31.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
66b925e95e9e428401ce8ac3d8e844c3d4c4c55281e82851420c121bf550f97a
BLAKE2b-256 checksum
How to use checksums
d5fceb7d2ca817f99585699151cc17c59b97f5ba0bf82cb9a3dcf5f87fd2106a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.7

Security for ionntxpred 1.2

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.

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page