Spaces:
Sleeping
Sleeping
|
Download README.md from IBIBoW/FtsI_Classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.75 kB
-
https://huggingface.co/spaces/IBIBoW/FtsI_Classifier/resolve/main/README.md
- Command line
-
hf download hf://spaces/IBIBoW/FtsI_Classifier/README.md
-
curl -L -o README.md https://huggingface.co/spaces/IBIBoW/FtsI_Classifier/resolve/main/README.md
1.75 kB
| 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: | |
| ```bash | |
| 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) |