seismic wf
Purpose
seismic wf runs the entire SEISMIC-RNA pipeline end-to-end, from FASTQ
files (or any later-stage input) through alignment, mutation identification,
filtering, clustering, structure prediction, graphing, and optional export.
It is the only command most users need to invoke.
For each input file, wf resumes the pipeline from the step that produces
that file and runs everything downstream.
For example, a FASTQ goes through every step; a Filter report goes only
through Fold/Export/Graph.
Note
By default, the Cluster, Fold, Draw, and Export steps do not run.
Turn them on with --cluster, --fold, --draw, and --export
respectively.
Steps
wf runs these steps, in this order.
Each links to its own page, which describes that step in full.
seismic demult — split multiplexed FASTQ files into one file per reference by barcode. Off by default; turn on with
--demult.seismic align — trim the reads and align them to the reference sequences, producing one alignment map per reference.
seismic idmut — identify the mutations in every aligned read.
seismic filter — choose the region to analyze, then discard reads and positions of low quality or ambiguous information.
seismic filterscan — an alternative to Filter that tiles the reference and detects structural domains, then filters each domain separately. Off by default; turn on with
--scan, which replaces the Filter step (the two are mutually exclusive).seismic clusterscan — choose the number of clusters for each domain found by FilterScan. Runs only when both
--clusterand FilterScan results are present.seismic cluster — separate the reads into clusters, each corresponding to an alternative structure. Off by default; turn on with
--clusteror-k.seismic fold — predict secondary structures from the mutation rates. Off by default; turn on with
--fold.seismic draw — draw the predicted structures as images. Off by default; turn on with
--draw.seismic graph — plot mutational profiles, coverage, read histograms, cluster abundances, and (with
--fold) how well each structure agrees with the data. Individual graphs are turned on and off with their own--graph-*options; see Options below.seismic collate — assemble the graphs and drawings into one interactive HTML report. On by default; turn off with
--no-collate.seismic export — write the results as JSON for the seismic-graph web app. Off by default; turn on with
--export.
The table files that seismic table writes on its own are written directly by
the IDmut, Filter, and Cluster steps during wf, so wf has no separate
Table step; control which tables are written with the --idmut-pos-table,
--filter-pos-table, --cluster-pos-table and related options.
seismic pool, seismic join, and seismic duplex combine results across samples,
regions, or references, so they are never run automatically; invoke them
yourself between wf runs, then pass their output back into wf (or
directly into seismic fold).
Inputs
- Required
A FASTA file of one or more reference sequences (first positional argument; see FASTA: Reference sequences).
- Reads (any combination, optional)
-xpaired-end reads in two separate FASTQ files-ypaired-end reads interleaved in one FASTQ file-zsingle-end reads-X/-Y/-Zsame as above but for already-demultiplexed reads
- Intermediate files (any combination, optional)
Given as positional arguments after the FASTA:
SAM / BAM / CRAM alignment maps (see SAM, BAM, and CRAM: Alignment Maps)
IDmut, Filter, Cluster, or Table reports (see Report Formats)
Table CSVs (skip directly to Fold / Export / Graph)
See Specify Input Files for ways to list many input files at once (glob patterns, directory recursion, mixed positional and keyword inputs).
Outputs
seismic wf runs each step into the output directory given by
--out-dir (default ./out).
Most output paths are structured {out}/{sample}/{step}/{ref}/{region}/....
Refer to each step for the specific output structure: seismic align,
seismic idmut, seismic filter, seismic filterscan, seismic cluster,
seismic clusterscan, seismic fold, seismic graph, seismic draw, seismic collate,
seismic export.
Quick example
Run the entire pipeline on a paired-end FASTQ pair against refs.fa:
seismic wf -x sampleA_R1.fq -x sampleA_R2.fq refs.fa
Run with clustering, folding, and export turned on:
seismic wf --cluster --fold --export -x sampleA_R1.fq -x sampleA_R2.fq refs.fa
Resume from existing alignment maps and existing IDmut reports:
seismic wf refs.fa out/sampleA/align/refX.bam out/*/idmut/refY/idmut-report.json
Options
- Optional steps
--demult/--no-demult— run the Demult step (default: off).--scan/--no-scan— run FilterScan in place of Filter (default: off).--cluster/--no-cluster— run the Cluster step (default: off).--fold/--no-fold— run the Fold step (default: off).--draw/--no-draw— run the Draw step (default: off).--collate/--no-collate— run the Collate step (default: on).--export/--no-export— run the Export step (default: off).--max-clusters/-k— maximum number of clusters to try once the Cluster step runs (default: 0, i.e. no limit). Giving-ka positive number also turns on the Cluster step.
- Graphs
Each graph has its own option; those on by default are
--graph-mprof(mutational profiles),--graph-tmprof(profiles of all steps together),--graph-ncov(coverage),--graph-mhist(mutations per read),--graph-abundance(cluster abundances), and--graph-roc(agreement between structures and data, with--fold). Off by default are--graph-aucroll,--graph-giniroll,--graph-poscorr, and--graph-mutdist. See seismic graph.- Per-step options
Every option accepted by any individual pipeline command can be given to
seismic wf, except for--branch(use--wf-branchinstead; see Branches below). For the complete list of options and what each does, see the per-step pages (seismic demult, seismic align, seismic idmut, seismic filter, seismic filterscan, seismic cluster, seismic clusterscan, seismic fold, seismic graph, seismic draw, seismic collate, seismic export) and the auto-generated Command Line Reference.- Branches
--wf-branch STEP NAMERun one step of the workflow under a branch, writing its outputs to
{out}/{sample}/{STEP}_{NAME}/instead of the default directory. Give the step name followed by the branch name, and repeat the option to branch several steps, e.g.--wf-branch filter strict --wf-branch cluster strict.STEPmust be one ofdemult,align,idmut,filter,filterscan,cluster,clusterscan, orfold; any other name raises an error. See Branches.
- Global options
--out-dir— output directory (default./out).--num-cpus— number of parallel processes (see Parallelize Tasks).--force— overwrite existing output files.
Options and positional arguments can be mixed freely on the command line.
Caveats
The optional steps (Demult, FilterScan, Cluster, Fold, Draw, Export) are off by default; Collate is on by default.
The FASTA file must contain the same references as those used for any pre-existing BAM files or reports given as input. Mismatched references cause the IDmut step to fail; see seismic idmut.
All inputs and outputs share a single
--out-dir. Re-runningwfagainst the same--out-dirwithout--forcewill skip steps whose outputs already exist (issuing a warning for each existing output file).
Performance tips
Use
--num-cpus Nto parallelize across reads and references; see Parallelize Tasks.For very large datasets, tune
--batch-size(see seismic idmut).Resume a partially-completed run by re-invoking
wfwith the same--out-dir; only missing outputs are produced.
Common errors
seismic wf delegates to the individual pipeline commands, so its error
messages come from whichever step failed.
See the per-step pages for the exceptions each step can raise:
seismic align — alignment errors (missing reference, Bowtie2 failure)
seismic idmut — reference mismatch, insufficient reads, mapping quality
seismic filter — region/probe errors
seismic cluster — convergence and clustering failures
seismic fold — RNAstructure
DATAPATHnot set (see Install)
Common unexpected results
- No clustered outputs
You forgot
--cluster.- No structure models
You forgot
--fold.- No webapp JSON
You forgot
--export.- Empty output for some references
The Align step deletes BAM files that contain fewer than
--min-readsreads (default 1000) to prevent cluttering the output directory with BAM files that are too small to be useful in downstream steps.wfdid not run a step you expectedConfirm what inputs you passed.
wfonly runs the steps that recognize an input file you provided. For example, passing a table CSV file from the IDmut step (idmut-pos-table.csv) will not trigger the Filter step because Filter only accepts IDmut report JSON files (idmut-report.json).
See also
Specify Input Files — how to list many input files
Parallelize Tasks — how parallelism works
Log Messages — controlling verbosity and log files
Branches — run variant analyses under a different name
How SEISMIC-RNA Works — visual tour of each pipeline step
Tutorials — step-by-step worked examples