SeqTypeAI NGS library classifier

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.

91% test accuracy AUC 0.994 12 assay classes 50k reads analyzed sequence features only no alignment needed

Drop a FASTQ file here

.fastq and .fastq.gz · max 50 MB · first 50,000 reads analyzed

or click to browse

How it works

1

Upload any .fastq or .fastq.gz file — R1 from a paired-end run, single-end, or a subsample.

2

Features extracted from the first 50,000 reads: GC content, read length, Tn5/MNase bias, k-mer composition, bisulfite conversion, barcode structure, and more.

3

Classified by a gradient-boosted model trained on 12,000 curated public samples. Returns ranked predictions with confidence scores.

4

Results include quality metrics, a recommended processing pipeline, and an AI assistant to discuss next steps.

ATAC-seqscATAC-seqCUT&RUNCUT&TagChIP-seqRNA-seqscRNA-seqSpatialBisulfiteWGSWES16S

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

Assay classes are defined by library preparation chemistry, not biological application. For example, CUT&Tag uses pA-Tn5 and produces reads biochemically similar to ATAC-seq — the classifier distinguishes them by signal strength and fragment length characteristics.
Class keyDescriptionKey discriminating features
atac_seqBulk ATAC-seqHigh Tn5 AT-bias at read start, moderate GC, 50–200 bp
sc_atac_seqSingle-cell ATAC-seqR1 = 24–28 bp barcode + UMI; same Tn5 signal as bulk
cut_and_tagCUT&Tag (pA-Tn5)Tn5 bias similar to ATAC-seq; antibody-targeted so lower global enrichment
cut_and_runCUT&RUN (pA-MNase)MNase AT-bias at read start; variable fragment length
chip_seqChIP-seqLow Tn5/MNase bias; repeat k-mer fraction < 0.04; moderate GC
rna_seqBulk RNA-seqGC 45–55%, poly-A signal, read length 75–200 bp
sc_rna_seqSingle-cell RNA-seq (10x)R1 = 28 bp (v3) or 26 bp (v2); high barcode match fraction
spatial10x Visium spatialR1 = 28 bp spatial barcode + UMI; very low poly-A on R1
bisulfiteWGBSC fraction < 5% (C→T conversion); GC < 35%
wgsWhole-genome sequencingGC ~41%, repeat k-mer 0.005–0.025, read length ≥ 100 bp
wesWhole-exome sequencingGC ~49% (exon-enriched), very low repeat k-mer (< 0.04)
amplicon_16s16S rRNA ampliconFixed 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

FieldTypeDescription
top_assaystringTop predicted class key (e.g. atac_seq)
top_labelstringHuman-readable label (e.g. Bulk ATAC-seq)
confidencefloatProbability of top prediction (0–1)
predictionsarrayAll 12 classes ranked by confidence
featuresobjectExtracted sequence features used for classification
qc_checksarrayAssay-specific quality checks with pass/warn/poor status
qc_overallstringgood, warn, or poor
reasoningstringBrief explanation of classification
warningsarrayFile-level warnings (e.g. interleaved detection)
model_versionstringModel version string

GET /health

curl https://cusanovichlab-seqtypeai.hf.space/health

Limits & performance

ParameterValue
Max file size50 MB
Reads analyzedFirst 50,000
Min reads recommended10,000
Classification time~2–5 seconds
Supported formats.fastq, .fq, .fastq.gz, .fq.gz
Interleaved filesSupported (R1 extracted automatically)
Long-read platformsNot 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.

12
assay classes
12k
training samples
377
sequence features
91%
test accuracy
0.994
macro AUC

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.

GitHub  ·  Lab website

Contact

For questions about SeqTypeAI, please open an issue on GitHub or contact the Cusanovich Lab at the University of Arizona.