Raw reads
From FASTQ to an aligned file
FASTQ files are raw reads. Quality-check and trim them before alignment, then align to the reference build you intend to use for downstream VCF, extraction, and SNP chip simulation work.
Raw reads are closest to the sequencer output. They preserve information before alignment choices, but they are large and require more processing. A typical workflow checks read quality, optionally trims adapters or low-quality ends, aligns reads to a reference, then sorts and indexes the resulting alignment.
If you plan to compare outputs with third-party services, choose the reference build intentionally. Aligning to hg38 and then trying to use hg19-specific annotations or SNP chip positions can produce confusing results unless you lift over or regenerate the appropriate files.
An explicit --aligner is always used as given, and combinations that make no sense (for example --aligner bwa with a PacBio platform) are rejected rather than silently changed. minimap2 accepts the PacBio preset names ccs and subread, mapped to map-hifi and map-pb. realign checks free disk space before starting and reuses previously extracted FASTQs when they exist. Ultima Genomics BAM/CRAMs (PL:ULTIMA) are recognized and aligned with BWA-MEM, preserving available flow tags (tp, t0) in the correct orientation. GATK supplies flow-mode duplicate marking; without it, samtools marking is used with a warning. bcftools uses -X ultima; GATK flow calling and DeepVariant's ULTIMA model additionally require flow metadata and tags.
Ultima data includes MyHeritage and Nebula/DNA360 WGS. Automatic DeepVariant ULTIMA selection requires an Ultima read group, its flow order (FO), and detected flow tags; prepare the experimental google/deepvariant:gh1100-ultima image for that path, which is not enabled on ARM64. MyHeritage CRAMs without flow tags are called as ordinary short reads instead: by default DeepVariant selects WGS, using google/deepvariant:1.10.0 on Linux x86_64/macOS or the locally built ARM64 image on Linux ARM64. The selected image must already be installed for the Docker path. Low-pass MyHeritage WGS (about 2x) is too shallow for reliable genotypes without imputation, which WGS Extract does not provide. info recognizes MyHeritage's Ultima read names (v0.6.6 and later).
Oxford Nanopore reads are detected from PL:ONT read groups or UUID read names (or set --platform ont): alignment uses minimap2's map-ont preset and keeps MM/ML methylation tags, DeepVariant selects ONT_R104 on x86-64, vcf sv uses Sniffles, and vcf clair3 is an optional Linux x86-64 caller. Whole-genome ONT calling is still unvalidated, not a supported end-to-end promise; see the Nanopore guide. Track real-data validation and caller/model work in #301.
Paired short-read realignment streams into BWA/BWA-MEM2 without FASTQ intermediates whenever one collate bucket fits in RAM beside alignment, including 30x genomes; otherwise it uses the file-based path. Fixed BWA batches and memory/disk preflight help reproducibility and planning, but do not guarantee runtime.