seismic align
Purpose
seismic align maps sequencing reads to reference sequences.
It first uses fastp to trim low-quality bases and adapter sequences, then uses
Bowtie2 to align reads, and finally filters out low-quality or low-coverage
alignments.
The output is one BAM file per sample/reference combination, ready for IDmut.
Requires fastp (≥ 0.23) and Bowtie2 (≥ 2.5) as external dependencies.
Inputs
- Reference FASTA
Positional argument.
- FASTQ files
Pass reads with
--fastqz(-z, single-end),--fastqy(-y, paired interleaved), or--fastqx(-x, paired separate files). For pre-demultiplexed FASTQ files, use--dmfastqz(-Z),--dmfastqy(-Y), or--dmfastqx(-X).
Outputs
All outputs go into {out}/{sample}/align/.
{ref}.bamAligned, sorted, indexed BAM file, named after the reference.
align-report.jsonSummary of alignment statistics. See Align Report.
Unaligned reads are written to FASTQ files in the same directory
(--bt2-un is on by default).
Quick example
Align paired-end reads in separate files to a reference:
seismic align ref.fa -x sample1_R1.fastq.gz sample1_R2.fastq.gz
Options
- Read trimming (fastp)
--fastp/--no-fastpRun fastp before alignment (default on).
--fastp-3/--no-fastp-3Trim low-quality bases from 3’ ends of reads (default on).
--fastp-5/--no-fastp-5Trim low-quality bases from 5’ ends of reads (default off).
--fastp-adapter-trimming/--no-fastp-adapter-trimmingTrim adapter sequences (default on).
--fastp-adapter-1 SEQ/--fastp-adapter-2 SEQSpecify adapter sequences for read 1 and read 2 (default: auto-detect).
--fastp-poly-g {auto|yes|no}Trim poly(G) tails, common in two-color sequencing (default auto).
--fastp-min-length NDiscard reads shorter than N bases after trimming (default 9).
- Alignment (Bowtie2)
--bt2-local/--bt2-end-to-endAlign in local mode (default) or end-to-end mode.
--bt2-orient {fr|rf|ff}Expected orientation of paired-end mates (default
fr).--bt2-X NMaximum paired-end alignment length in bases (default 600).
--bt2-I NMinimum paired-end alignment length in bases (default 0).
- Post-alignment filters
--min-mapq NDiscard reads with mapping quality below N (default 25).
--min-reads N(-N)Discard a BAM file if it has fewer than N reads (default 1000).
- Strand separation
--sep-strands/--mix-strandsSplit each BAM into forward- and reverse-strand reads (default off).
--rev-label LABELSuffix added to the reference name for reverse-strand reads (default
-rev).
- Other
--phred-enc NPhred score encoding (default 33).
--branch NAME(-b)Write outputs to
{out}/{sample}/align_{NAME}/. See Branches.
- Performance
--num-cpus N— multiprocessing; see Parallelize Tasks.--force— overwrite existing outputs.
The auto-generated Command Line Reference lists every option with its current default.
Common unexpected results
- Very few reads align
Check that the reference FASTA matches the organism and genome build of your sample. If fastp discards most reads, lower
--fastp-min-lengthor disable adapter trimming.- BAM file skipped (too few reads)
The BAM passed
--min-mapqbut fell below--min-reads. Lower--min-readsor check for contamination.- Paired reads treated as single-end
Verify that mate files are truly paired and named correctly when using
-x.
See also
seismic demult — demultiplex before aligning if needed
seismic idmut — next step: call mutations from the aligned reads