FtsI_Classifier / README.md
Muhamed-Kheir's picture
Update README.md
61e804a verified
|
Raw History Blame Contribute Delete
1.75 kB

A newer version of the Gradio SDK is available: 6.31.0

Upgrade
metadata
title: FtsI Classifier
emoji: πŸ“ˆ
colorFrom: gray
colorTo: red
sdk: gradio
sdk_version: 6.1.0
app_file: app.py
pinned: false
license: mit
short_description: Finding unique k-mer signatures among groups of sequences

Genomic Classification of Beta-Lactam Resistance

This repository provides a Python implementation of a genomic classification framework based on k-mer analysis of gene sequences (ftsI / penA) to predict beta-lactam susceptibility categories.

Description

The method identifies group-specific k-mers from allele sequences and uses them to classify isolates into resistance categories. The approach is designed to capture genomic patterns beyond predefined mutation rules.

This framework was developed and applied to:

  • Haemophilus influenzae (ftsI gene)
  • Neisseria meningitidis (penA gene)

Files

  • app.py β€” main application (Gradio interface)
  • kmer_unique.py β€” core k-mer extraction and filtering functions
  • requirements.txt β€” Python dependencies

Requirements

Python β‰₯ 3.9

Install dependencies:

pip install -r requirements.txt
## Usage

### Hugging Face interface

Run the app directly via the Hugging Face Space interface.

## Input

- FASTA file containing gene sequences (ftsI or penA)
- Sequences grouped by phenotype or category

## Output

- Predicted resistance category per sequence
- Identification of group-specific k-mer signatures

## Method overview

1. Extraction of k-mers from sequences  
2. Identification of unique k-mers per category  
3. Filtering based on frequency thresholds  
4. Classification of sequences based on k-mer matches  

## Citation

If you use this code, please cite:

[to be added manuscript reference]

## DOI

DOI: (10.5281/zenodo.19665426)