Skip to content

Data Formats Reference

A summary of the file formats you’ll meet most often in personal genomics and transcriptomics. Following Sid’s case, we start from expression (RNA) and move toward variants (DNA). The formats are grouped into those two tracks.

The raw reads a sequencer produces, with quality scores. Both RNA-seq and DNA sequencing start here. Four lines per read.

@SEQ_ID
GATTTGGGGTTCAAAGCAG
+
!''*((((***+))%%%++

Reads aligned to a reference (genome or transcriptome). SAM is text, BAM is its compressed binary form. Handled with samtools.


The final output of bulk RNA-seq. Rows = genes, columns = samples, values are expression.

gene tumor_01 tumor_02 normal_01
MDM2 842.1 93.4 88.0
TP53 210.5 198.2 205.7
UnitMeaning
countsNumber of reads aligned to a gene (raw)
CPM / TPM / FPKMNormalized by library size and gene length (for comparing across samples)

Quantification tools: featureCounts, Salmon, kallisto. Alignment: STAR, HISAT2.

Because each cell is read separately, the matrix is huge and sparse: usually cells × genes.

FormatContents
.h5ad (AnnData)The Python (scanpy) standard. Matrix plus cell/gene metadata in one file
.rds (Seurat)The standard object in the R ecosystem
10x MatrixMarketA set of three: matrix.mtx + barcodes.tsv + features.tsv

Tools: scanpy (Python), Seurat (R). Sid’s ①③ treatments and the 19%→89% T-cell analysis came from this data.


A list of variants relative to a reference: the central format for whole-exome (WES) and whole-genome (WGS) analysis.

#CHROM POS ID REF ALT QUAL FILTER INFO
1 11856378 rs1801133 G A 99 PASS ...

Filter, query, and merge with bcftools.

Tab-separated text. Genotypes for the hundreds of thousands of variants a SNP chip measures: the most common raw data a testing lab returns.

ColumnMeaning
rsiddbSNP variant identifier (rs...)
chromosomeChromosome
positionCoordinate (relative to a genome build, usually GRCh37)
genotypeThe two alleles (e.g. AA, AG)

DBUse
GTExPer-tissue normal expression reference (the baseline for “high/low” expression)
dbSNPVariant identifiers and basic info
ClinVarClinical significance (pathogenicity)
gnomADAllele frequency in populations
SNPediaCommunity phenotype interpretation