seismic demult
Purpose
seismic demult splits one or more multiplexed FASTQ files into per-sample
FASTQ files by matching barcode sequences embedded in the reads.
Use it when multiple samples were pooled before sequencing and share a single
FASTQ file, distinguished only by their barcodes.
Requires seqkit (≥ 2.10.1).
Inputs
- Multiplexed FASTQ files
Pass reads with
--fastqz(-z, single-end),--fastqy(-y, paired interleaved), or--fastqx(-x, paired separate files). For FASTQ files that are already partially demultiplexed and need re-sorting, use--dmfastqz(-Z),--dmfastqy(-Y), or--dmfastqx(-X).- Reference FASTA
Positional argument. Required so SEISMIC-RNA knows which reference name corresponds to each barcode.
Outputs
All outputs go into {out}/{sample}/demult/.
Reads that do not match any barcode go into an unmatched subdirectory.
Quick example
Demultiplex a single-end FASTQ with two barcodes defined on the command line:
seismic demult ref.fa -z reads.fastq.gz \
--barcode sample1 ACGTACGT 5 \
--barcode sample2 TTGGCCAA 5
Options
- Define barcodes
--barcode NAME SEQ POSSpecify one barcode: its name (must match a reference in the FASTA), DNA sequence, and 1-based position in the read. Repeat for each sample.
--refs-meta FILEAlternatively, read barcode definitions from a CSV file. See Metadata for References.
--barcode-start N/--barcode-end NWhen all barcodes occupy the same region, set the 0-based start and end positions (half-open) of that region (default 0 for both).
--read-pos NExpected 1-based position of the barcode in the read; defaults to
--barcode-startwhen not set.
- Matching tolerance
--mismatch-tolerance NAllow up to N mismatches between a read and the expected barcode (default 0). Use caution above 2 — computation grows factorially with mismatches.
--index-tolerance NAllow the barcode to appear up to N bases away from the expected position (default 0).
--allow-n/--no-allow-nCount N bases as valid mismatches (default off). Requires
--mismatch-tolerance ≥ 1; increases memory use.
- Other
--phred-enc NPhred score encoding of the FASTQ files (default 33).
--branch NAME(-b)Write outputs to
{out}/{sample}/demult_{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.
See also
seismic align — next step: map demultiplexed reads to the reference
Metadata for References — CSV format for
--refs-meta