Skip to main content

BaClasT -- Bacterial Classification Tool

Fast classification of assembled bacterial genomes into ESKAPE pathogen species using k-mer frequency profiling.

Install

uv add baclast

CLI

baclast --predict genome.fna
baclast --predict genomes/ -o results.csv

Python

import src.classifier as baclast

baclast.predict(file="genome.fna")
baclast.to_csv(baclast.predict(file="genome.fna"), "results.csv")

What it classifies

ESKAPE pathogens (E. faecium, S. aureus, K. pneumoniae, A. baumannii, P. aeruginosa, E. cloacae) plus an "Other" class for non-ESKAPE bacteria. Includes centroid-based out-of-distribution detection.

How it works

Computes 4-mer frequency profiles (256 features) from genome assemblies and classifies with a Random Forest. A bundled pre-trained model is included -- no training data or setup required.

Requirements

Python >= 3.12, biopython, scikit-learn, joblib, numpy.

License

MIT

Metadata

Release files for baclast 0.1.1

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

Source distribution (sdist)

Source distribution for baclast 0.1.1
File Size Uploaded
baclast-0.1.1.tar.gz 208.4 kB Details

Built distribution (wheel)

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

Total release size: 421.8 kB

Release files / baclast-0.1.1.tar.gz

Download URL baclast-0.1.1.tar.gz
Size 208.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7a55a8e11b874aabc0b5110ff6458bbe800b4d248b70c81d53bc428df76d706b
BLAKE2b-256 checksum
How to use checksums
00e445755117fa20c109e81cfe2972a2aa60cccb3da7cff475409ca36367d660
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.16

Release files / baclast-0.1.1-py3-none-any.whl

Download URL baclast-0.1.1-py3-none-any.whl
Size 213.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98c01399df31d30aa0ea854ce82434dbc76d42c1b099a9d279a9089ff5ea550d
BLAKE2b-256 checksum
How to use checksums
3636f1187885a3a8d2389b7f3b5412179c1836c00161046c7ef3a07588bcffc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.16

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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