Upload README.md via DNA Console (Portable Version)
Browse files
README.md
CHANGED
|
@@ -7,9 +7,12 @@ tags:
|
|
| 7 |
library_name: sklearn
|
| 8 |
---
|
| 9 |
|
| 10 |
-
# BioGuard DNA Classifier Ensemble
|
| 11 |
|
| 12 |
-
This repository contains a dual-model ensemble for DNA sequence analysis and virus classification,
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
## 🧬 Models Included
|
| 15 |
|
|
@@ -34,19 +37,27 @@ This repository hosts two distinct models specialized for different aspects of g
|
|
| 34 |
|
| 35 |
## 🚀 Usage
|
| 36 |
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
```python
|
| 40 |
-
import
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
|
|
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
```
|
| 51 |
|
| 52 |
## 📊 Training Meta
|
|
|
|
| 7 |
library_name: sklearn
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# BioGuard DNA Classifier Ensemble (Portable v1.1)
|
| 11 |
|
| 12 |
+
This repository contains a dual-model ensemble for DNA sequence analysis and virus classification, optimized for **portability and zero-dependency loading**.
|
| 13 |
+
|
| 14 |
+
> [!NOTE]
|
| 15 |
+
> **Version 1.1 Update**: This version has been refactored to decouple the models from custom feature extraction classes. It uses a raw scikit-learn format for maximum compatibility.
|
| 16 |
|
| 17 |
## 🧬 Models Included
|
| 18 |
|
|
|
|
| 37 |
|
| 38 |
## 🚀 Usage
|
| 39 |
|
| 40 |
+
Since these models use biological feature extraction, we provide a standalone `inference.py` script for easy usage.
|
| 41 |
+
|
| 42 |
+
1. Download all files (`.joblib` and `inference.py`).
|
| 43 |
+
2. Use the `inference.py` script:
|
| 44 |
|
| 45 |
```python
|
| 46 |
+
from inference import predict_dna
|
| 47 |
|
| 48 |
+
sequence = "ATGCTAGCTAGCTAG..."
|
| 49 |
+
results = predict_dna(sequence)
|
| 50 |
|
| 51 |
+
print(f"Genetic Type: {results['classification']}")
|
| 52 |
+
print(f"Virus Identity: {results['virus_identity']}")
|
| 53 |
+
```
|
| 54 |
|
| 55 |
+
Alternatively, you can load components manually:
|
| 56 |
+
```python
|
| 57 |
+
import joblib
|
| 58 |
+
classifier = joblib.load("dna_classifier.joblib")
|
| 59 |
+
scaler = joblib.load("scaler_rf.joblib")
|
| 60 |
+
# (Refer to inference.py for Feature Extraction logic)
|
| 61 |
```
|
| 62 |
|
| 63 |
## 📊 Training Meta
|