Bioinformatics for Data Engineers: FASTQ, Assays, RNA-Seq and Single-Cell Data
For a data engineer entering bioinformatics, the first obstacle is often vocabulary rather than technology. FASTQ, assays, RNA sequencing, single-cell matrices and Parquet all appear in discussions about data pipelines, but they describe different layers of the system. Treating them as interchangeable file formats makes the architecture unnecessarily confusing.
I approached bioinformatics from a data-platform perspective: what gets measured, what files are produced, what transformations turn those files into useful datasets, and how should the results be stored and governed?
Start with the assay
An assay is an experimental procedure for measuring a biological property. RNA sequencing, for example, measures RNA-derived sequence information to investigate gene expression. Other assays measure DNA variation, chromatin accessibility or protein abundance. Each assay has its own experimental design, metadata, quality controls and computational steps.
From a data-engineering perspective, an assay is closer to a source system with a specific data contract than a file format. The biological sample, library preparation, sequencing platform and protocol all affect how the data can be interpreted.
FASTQ: raw sequencing reads
A typical FASTQ record contains four lines: a read identifier, nucleotide sequence, separator, and encoded per-base quality scores. This is a synthetic example:
@read_001
ACGTACGT
+
IIIIIIII
In Phred+33 encoding, each I represents a quality score of 40. That score corresponds to an estimated base-call error probability of 10^-4. It is not a guarantee that the whole read is correct.
FASTQ files are often gzip-compressed and may be paired-end, meaning corresponding reads originate from opposite ends of a DNA fragment. A pipeline needs to preserve pairing, identifiers, quality encoding and provenance. Large FASTQ files are typically processed by specialized tools rather than loaded entirely into a dataframe.
RNA-seq: from reads to expression
A simplified bulk RNA-seq pipeline looks like this:
Biological sample -> library preparation -> sequencing
-> FASTQ reads -> QC / trimming as needed
-> alignment or transcript quantification
-> gene / transcript count matrix
-> statistical analysis and interpretation
Alignment-based pipelines may produce SAM or BAM files; other workflows use transcript-level quantification without conventional full alignment. Gene-level counts are usually associated with a reference genome and annotation version. Normalized expression and differential expression results are derived outputs, not raw sequencing data.
A bulk count matrix might have genes as rows and biological samples as columns. Biological replicates, treatment groups and batch information are critical metadata for downstream statistical analysis.
Single-cell RNA-seq changes the scale
Single-cell RNA-seq aims to resolve expression at the level of individual cells or nuclei rather than averaging across a sample. Many protocols use cell barcodes and unique molecular identifiers (UMIs) to assign reads to cells and count molecules. Not every protocol uses the same strategy.
The resulting expression matrix can contain tens of thousands of genes across hundreds of thousands of cells. It is usually sparse: most gene-cell combinations contain zero observed counts. Specialized formats such as AnnData/H5AD or sparse Matrix Market files can preserve that structure and associated biological metadata. Converting the entire matrix into a dense SQL table can be wasteful.
Where Parquet fits
Parquet is a columnar storage format for analytical data. It is useful for derived sample metadata, quality-control metrics, gene annotations, selected expression summaries and other tabular results. It is not inherently a replacement for FASTQ, BAM or sparse single-cell formats.
For example, an illustrative sample-QC table could contain:
| sample_id | assay | total_reads | mapped_fraction | reference_version |
|---|---|---|---|---|
| demo_001 | bulk RNA-seq | 30000000 | 0.91 | GRCh38 |
| demo_002 | bulk RNA-seq | 28000000 | 0.89 | GRCh38 |
These are fictional values. A data pipeline might write validated QC records to Parquet and query selected columns with Spark or DuckDB while retaining the original files in governed object storage.
Designing the platform
Separate immutable raw data, reproducible intermediate results and curated analytical outputs. Record sample identifiers, assay type, reference versions, pipeline code, tool versions, input checksums and run identifiers. Use a workflow system to manage dependencies and retries, and execute specialized bioinformatics tools near the data. Access to genomic and clinical metadata must follow applicable privacy, consent and security requirements.
The key distinction is that the data platform supports the science; it does not replace it. A well-designed pipeline makes biological analyses reproducible and scalable while preserving the meaning of the original measurements.
