seismic idmut
Note
idmut was named relate in versions before v0.25.0.
See the project CHANGELOG.md for the full rename list.
Purpose
seismic idmut (“identify mutations”) reads each aligned read and records,
position by position, whether each base was a match, a substitution (and which
one), a deletion, an insertion, or ambiguous.
Its output is the foundation for every downstream analysis in SEISMIC-RNA.
Inputs
- Reference FASTA file
First positional argument. Must be the same FASTA used during alignment. See FASTA: Reference sequences.
- Alignment map files (SAM / BAM / CRAM)
One or more alignment files as additional positional arguments. Each file must be named after the single reference it was aligned to (minus the extension). See Specify Input Files.
Outputs
All outputs go into {out}/{sample}/idmut/{ref}/.
idmut-batch-{num}.brickleOne batch of per-read, per-position mutation calls. See Brickle: Compressed Python Objects.
idmut-report.jsonSummary of settings and results. See IDmut Report.
Quick example
Identify mutations in two alignment maps from sample-1:
seismic idmut refs.fa out/sample-1/align/ref-1.bam out/sample-1/align/ref-2.bam
Options
- Quality filtering
--min-phred NFlag base calls with Phred score below N as ambiguous (default 25).
--min-mapq NDiscard reads with mapping quality below N (default 25).
--min-reads N(-N)Skip alignment files with fewer than N reads (default 1000).
- Indel handling
--ambindel/--no-ambindelReport all possible placements of each indel in repetitive regions (default on). Disable with
--no-ambindelfor a speed-up with minimal accuracy loss on low-indel data.--insert3/--insert5Anchor each insertion on the base to its 3’ side (
--insert3, the default) or its 5’ side (--insert5).
- Read trimming
--clip-end5 N/--clip-end3 NIgnore N positions from the 5’ / 3’ end of every read (default 4 each).
--overhangs/--no-overhangsInclude bases in mate overhangs when computing mutations (default on).
- Strand handling
--sep-strands/--mix-strandsSplit output into forward- and reverse-strand reads (default off).
--rev-label LABELSuffix added to reverse-strand reference names (default
-rev).
- Branches
--branch NAME(-b)Write outputs to
{out}/{sample}/idmut_{NAME}/. See Branches.
- Performance
--batch-size NMaximum reads per batch (default 65536). Smaller batches use less memory but create more output files. See Parallelize Tasks.
--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
- IDmut crashes or uses too much memory
Reduce
--batch-sizeand/or--num-cpus.- No output for a reference
Either every alignment file for that reference was filtered by
--min-readsor--min-mapq, or the file names did not match the reference names.- Indels spread across repetitive regions
Expected behavior with
--ambindelon. See Algorithms.
See also
seismic align — produces the alignment files this step consumes
seismic filter — next step: filter reads and positions
SAM, BAM, and CRAM: Alignment Maps, Brickle: Compressed Python Objects, IDmut Report