Problem
Genomic classification requires processing tens of millions of noisy, high-dimensional DNA sequences without losing strand direction or quality information.
Genomic classification requires processing tens of millions of noisy, high-dimensional DNA sequences without losing strand direction or quality information.
A sequencing research pipeline that batches paired FASTQ reads, applies all-base Q30 filtering, creates DNABERT-6 embeddings and compares Random Forest and neural-network experiments.
The repository documents 46,968,954 quality-filtered reads and 768-dimensional embeddings. Its headline classification scores are treated as exploratory because the committed evaluation path is not a clean held-out test.
Genomic classification at read scale is as much a data-engineering challenge as a modeling task. This project starts from paired FASTQ runs representing primary breast-cancer and normal breast-tissue accessions, converts them into 100,000-read Parquet batches, and retains sequences at least 100 bases long only when every base meets the Q30 quality threshold. The resulting workflow documents 46,968,954 high-quality reads across forward and backward collections, giving the study a reproducible path from raw sequencing files to model-ready records.
Each filtered sequence is transformed with the pretrained DNABERT-6 model. The implementation builds overlapping 6-mers, tokenizes to a maximum of 512 tokens, and extracts the 768-dimensional representation of the first transformer token in small GPU-aware batches. Forward and backward read embeddings are then explored separately through tuned Random Forest and dense neural-network experiments, with Optuna for hyperparameter search, Weights & Biases for run tracking, and UMAP for visual inspection. This separates scalable feature generation from downstream classifier design.
The strongest portfolio story is the engineered research pipeline rather than a diagnostic accuracy claim. The README reports 97.5% accuracy and 0.9753 AUC for the forward Random Forest, but the committed notebook fits the final estimator on the full embedding set before scoring a 20% slice drawn from that same set. In addition, each class comes from a single SRA accession, so millions of reads do not provide patient-level diversity. These results are exploratory, accession-specific experiments requiring independent sample-level validation.
Biopython FASTQ parsing with 100,000-read Parquet batches.
Strict minimum-length and all-base Q30 filtering.
DNABERT-6, overlapping 6-mer tokenization and 768-dimensional embeddings.
Approximately 1.15 million sampled embeddings in the committed forward-model experiment.
Random Forest, dense neural-network, Optuna, UMAP and experiment-tracking workflows.