Skip to main content

A SUBLYME pipeline for Uncovering Bacteriophage Lysins in Metagenomic Datasets

Project description

SUBLYME

Software for Uncovering Bacteriophage LYsins in MEtagenomic datasets

Table of Contents
  1. About the Project
  2. Getting Started
  3. Usage details
  4. Output format

About the Project

SUBLYME is a tool to identify bacteriophage lysins. It utilizes the highly informative ProtT5 protein embeddings to make predictions and was trained using proteins in the PHALP database.

Getting started

SUBLYME has been packaged in PyPI for ease of use. The source code can be downloaded from GitHub.

Prerequisites

A GPU is recommended to compute embeddings for large datasets.

The full list of dependencies can be found in requirements.txt.

Dependencies are taken care of by pip.

python/3.11.5
joblib==1.2.0
numpy==1.26.4
pandas==2.2.1
torch==2.3.0
scipy==1.13.1
scikit-learn==1.3.0
transformers==4.43.1
sentencepiece==0.2.0

Installation

First create a virtual environment in python 3.11.5. For example:

conda create -n sublyme_env python=3.11.5
conda activate sublyme_env

From pypi:

pip install sublyme

Usage

sublyme test/input.faa -t 4

From source:

git clone https://github.com/Rousseau-Team/sublyme.git
cd sublyme
pip install -e requirements.txt

ex. python3 src/sublyme/sublyme.py test/input.faa -t 4 --models_folder src/sublyme/models

Usage details

A fasta file of protein sequences or a csv file of protein embeddings can be used as input.

Specifying the option --only_embeddings will only compute embeddings. This step is much faster with a GPU. The embeddings file can then be reinputted using the same command (without --only_embeddings) and specifying the new file as input file.

Options:

  • input_file: Path to input file containing protein sequences (.fa*) or protein embeddings (.csv) that you wish to annotate.
  • --threads (-t): Number of threads (default 1).
  • --output_folder (-o): Path to the output folder. Default folder is ./outputs/.
  • --models_folder (-m): Path to folder containing pretrained models (lysin_miner.pkl, val_endo_clf.pkl). Default is src/sublyme/models.
  • --only_embeddings: Whether to only calculate embeddings (no lysin prediction).

Output format

The output consists of a csv file with a column for the final prediction and one column each for probabilities associated to lysins, endolysins and VALs.

Ex.

pred lysin endolysin VAL
lysin|endolysin 0.98 0.95 0.05
Na 0.01 Na Na

Note that the endolysin/VAL classifier is one multiclass classifier, implying that their probabilities will always add up to one and that the classifier will always assign one of these to be true.

Also, the endolysin/VAL classifier is only applied to proteins first predicted as being lysins (lysin proba >0.5).

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

sublyme-1.2.tar.gz (13.9 MB view details)

Uploaded Source

Built Distribution

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

sublyme-1.2-py3-none-any.whl (13.9 MB view details)

Uploaded Python 3

File details

Details for the file sublyme-1.2.tar.gz.

File metadata

  • Download URL: sublyme-1.2.tar.gz
  • Upload date:
  • Size: 13.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sublyme-1.2.tar.gz
Algorithm Hash digest
SHA256 e60d55d5b0ede53502dcf7bd46be3ba978338bfcde23a741f607e3f7b988114f
MD5 d2028a944e342366c3edd27152179a53
BLAKE2b-256 a39e4b4aeee60fb13d996c6c1ac2ab5d987f5922ffd00665446058b478db00cf

See more details on using hashes here.

File details

Details for the file sublyme-1.2-py3-none-any.whl.

File metadata

  • Download URL: sublyme-1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sublyme-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ed923172a965201cafc88b20d0251ae94480121110aa9c730c42a962b86bdf1
MD5 2caee9d983ecb1c8ab91bf83f29a8855
BLAKE2b-256 fe5b0fa23f4990d30e4db775c65e4d2be96ae5f82890152737b2f91d4cbd3f95

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