Identify any NGS library from a FASTQ file
SeqTypeAI classifies sequencing library type using a machine learning model trained on 12,000 curated samples across 12 assay classes. Upload a FASTQ file — we extract sequence-level features and return a ranked prediction with confidence scores, quality assessment, and a recommended processing pipeline.
No alignment required. Works on raw FASTQ files directly from the sequencer or a public repository. Classification takes a few seconds.
Drop a FASTQ file here
.fastq and .fastq.gz · max 50 MB · first 50,000 reads analyzed
or click to browse
How it works
Upload any .fastq or .fastq.gz file — R1 from a paired-end run, single-end, or a subsample.
Features extracted from the first 50,000 reads: GC content, read length, Tn5/MNase bias, k-mer composition, bisulfite conversion, barcode structure, and more.
Classified by a gradient-boosted model trained on 12,000 curated public samples. Returns ranked predictions with confidence scores.
Results include quality metrics, a recommended processing pipeline, and an AI assistant to discuss next steps.
Files larger than 50 MB should be subsampled first. See the documentation for subsampling commands.
Introduction
SeqTypeAI identifies the assay type of an NGS library from raw FASTQ data. It is designed for situations where metadata is missing, ambiguous, or untrusted — for example when reprocessing archived public data from SRA/ENA, auditing sample submissions from a sequencing core, or verifying that a delivered library matches the requested assay.
Classification is based entirely on the sequence content of the reads: nucleotide composition, read length distribution, k-mer frequencies, enzymatic bias signals (Tn5 insertion, MNase cleavage), bisulfite conversion signatures, and single-cell barcode structure. No alignment to a reference genome is required.
The model is a HistGradientBoostingClassifier trained on 12,000 samples (1,000 per class) downloaded from ENA/SRA and quality-filtered. Test accuracy is 91%, with macro AUC of 0.994 across all 12 classes.
Input requirements
File format
SeqTypeAI accepts plain FASTQ (.fastq, .fq) or gzip-compressed FASTQ (.fastq.gz, .fq.gz). Only the first 50,000 reads are used.
Which read to submit
For paired-end libraries, submit R1 only whenever possible. R2 is the cDNA insert for 10x Chromium assays and may reduce confidence for single-cell assay classification. For bulk assays (ATAC-seq, ChIP-seq, RNA-seq, WGS, WES) either read will classify correctly.
Interleaved paired-end files (R1 and R2 merged into a single file) are detected automatically. SeqTypeAI extracts R1 reads only and displays a warning.
Read count
The model performs best with at least 10,000 reads. Files with fewer reads may still classify correctly but confidence scores will be lower.
Subsampling large files
Files larger than 50 MB should be subsampled before uploading. The commands below extract 50,000 reads — all SeqTypeAI uses.
seqtk (recommended — random sampling)
seqtk sample -s42 input.fastq.gz 50000 | gzip > sample_50k.fastq.gz
zcat + head (no extra tools needed)
zcat input.fastq.gz | head -200000 | gzip > sample_50k.fastq.gz
200,000 lines = 50,000 reads (4 lines per FASTQ record).
Extract R1 from an interleaved file
seqtk seq -1 interleaved.fastq.gz | gzip > R1.fastq.gz
Supported assay classes
| Class key | Description | Key discriminating features |
|---|---|---|
| atac_seq | Bulk ATAC-seq | High Tn5 AT-bias at read start, moderate GC, 50–200 bp |
| sc_atac_seq | Single-cell ATAC-seq | R1 = 24–28 bp barcode + UMI; same Tn5 signal as bulk |
| cut_and_tag | CUT&Tag (pA-Tn5) | Tn5 bias similar to ATAC-seq; antibody-targeted so lower global enrichment |
| cut_and_run | CUT&RUN (pA-MNase) | MNase AT-bias at read start; variable fragment length |
| chip_seq | ChIP-seq | Low Tn5/MNase bias; repeat k-mer fraction < 0.04; moderate GC |
| rna_seq | Bulk RNA-seq | GC 45–55%, poly-A signal, read length 75–200 bp |
| sc_rna_seq | Single-cell RNA-seq (10x) | R1 = 28 bp (v3) or 26 bp (v2); high barcode match fraction |
| spatial | 10x Visium spatial | R1 = 28 bp spatial barcode + UMI; very low poly-A on R1 |
| bisulfite | WGBS | C fraction < 5% (C→T conversion); GC < 35% |
| wgs | Whole-genome sequencing | GC ~41%, repeat k-mer 0.005–0.025, read length ≥ 100 bp |
| wes | Whole-exome sequencing | GC ~49% (exon-enriched), very low repeat k-mer (< 0.04) |
| amplicon_16s | 16S rRNA amplicon | Fixed read length (V4 ~253 bp, V3–V4 ~464 bp), high entropy |
Confidence scores
Confidence scores are the model's predicted class probabilities, summing to 1.0 across all 12 classes. They are well-calibrated — a 90% confidence prediction is correct approximately 90% of the time.
Scores below 50% indicate genuine uncertainty, often because the library sits at the boundary between two classes (e.g. CUT&Tag vs ATAC-seq, or scRNA-seq vs Visium). In these cases, examine the second-ranked prediction and consider the biological context.
Quality assessment
After classification, SeqTypeAI evaluates the library against assay-specific quality thresholds derived from the training data. Each check is rated Pass, Marginal, or Fail. For a comprehensive QC assessment, use FastQC and assay-specific tools (ATACseqQC, RSeQC, Bismark's bismark2summary, etc.).
Pipeline recommendations
The Pipeline tab provides a step-by-step processing workflow for the predicted assay type, including adapter trimming, alignment, deduplication, and downstream analysis tools. Commands are provided as starting points — adjust parameters for your organism, sequencing depth, and analysis goals.
REST API
SeqTypeAI is accessible via a REST API. Interactive documentation is available at /docs.
POST /classify
curl -X POST https://cusanovichlab-seqtypeai.hf.space/classify \ -F "file=@sample_R1.fastq.gz" | python -m json.tool
Response fields
| Field | Type | Description |
|---|---|---|
| top_assay | string | Top predicted class key (e.g. atac_seq) |
| top_label | string | Human-readable label (e.g. Bulk ATAC-seq) |
| confidence | float | Probability of top prediction (0–1) |
| predictions | array | All 12 classes ranked by confidence |
| features | object | Extracted sequence features used for classification |
| qc_checks | array | Assay-specific quality checks with pass/warn/poor status |
| qc_overall | string | good, warn, or poor |
| reasoning | string | Brief explanation of classification |
| warnings | array | File-level warnings (e.g. interleaved detection) |
| model_version | string | Model version string |
GET /health
curl https://cusanovichlab-seqtypeai.hf.space/health
Limits & performance
| Parameter | Value |
|---|---|
| Max file size | 50 MB |
| Reads analyzed | First 50,000 |
| Min reads recommended | 10,000 |
| Classification time | ~2–5 seconds |
| Supported formats | .fastq, .fq, .fastq.gz, .fq.gz |
| Interleaved files | Supported (R1 extracted automatically) |
| Long-read platforms | Not supported (Illumina only) |
About SeqTypeAI
SeqTypeAI was developed in the Cusanovich Lab at the University of Arizona, Department of Cellular and Molecular Medicine. The lab specializes in single-cell genomics technology development and the study of gene regulation in complex diseases, with particular expertise in chromatin accessibility profiling.
Model
A HistGradientBoostingClassifier (scikit-learn) trained on 1,000 samples per class from ENA/SRA. Features are extracted from raw FASTQ reads: nucleotide frequencies, k-mer composition (2–4-mers), read length statistics, Tn5 and MNase enzymatic bias, bisulfite conversion metrics, GC distribution, poly-A signal, repeat content, and single-cell barcode structure. No reference alignment required.
Training data
Training samples were downloaded from ENA/SRA across 12 assay classes representing human and mouse genomics data. Each sample was quality-filtered to require at least 10,000 reads and exclude files with non-standard formats, interleaved paired-end reads, platform mismatches, and known contamination. Biological and technical diversity was ensured by shuffling and drawing from diverse studies.
Limitations
SeqTypeAI is trained on short-read Illumina data. Long-read platforms (PacBio, Oxford Nanopore) are not currently supported. Classification accuracy is lower for assay pairs with shared biochemistry: scATAC-seq vs bulk ATAC-seq, and scRNA-seq vs Visium spatial. These boundaries are improved by submitting R1 reads only for single-cell assays.
Source & citation
SeqTypeAI is open source. If you use this tool in your research, please cite the Cusanovich Lab. Source code and training pipeline are available on GitHub. Model artifacts are hosted on HuggingFace.
Contact
For questions about SeqTypeAI, please open an issue on GitHub or contact the Cusanovich Lab at the University of Arizona.