seismic graph
Purpose
seismic graph creates plots from mutation rate tables and/or predicted
structures.
It is a group of subcommands, each producing a different plot type.
Subcommands
Run seismic graph {subcommand} --help for each subcommand’s full option list.
Subcommand |
Description |
|---|---|
|
Bar graph of mutation rate (or other relationship) per position |
|
Bar graph of the difference between two profiles per position |
|
Scatter plot comparing two profiles |
|
Rolling correlation between two profiles |
|
Rolling Gini coefficient along a profile |
|
Rolling signal-to-noise ratio along a profile |
|
Rolling AUC-ROC comparing a profile to a predicted structure |
|
Histogram of relationship values across positions |
|
Histogram of relationship values across reads |
|
Distribution of distances between mutations within reads |
|
Correlation between pairs of positions |
|
ROC curve comparing a mutation rate profile to a structure |
|
Bar graph of cluster abundances |
Inputs
- Table CSV files, fold CT files, or output directories
Subcommands that compare two datasets accept two sets of inputs. See Specify Input Files.
Outputs
{graph-type}.htmlInteractive HTML plot (viewable in any web browser).
{graph-type}.svgor{graph-type}.pngStatic image (depending on options).
Outputs go into {out}/{sample}/graph/{ref}/{reg}/.
Quick example
Plot mutation rate profiles for all filter outputs:
seismic graph profile out/
Compare two profiles:
seismic graph scatter out/sample-1/filter/ref-1 out/sample-2/filter/ref-1
Options
Common options shared by all graph subcommands include:
--rels CODES(-r)Which relationship(s) to graph (e.g.
mfor mutated,nfor unambiguous; defaultm).--use-ratio/--use-countGraph ratios (e.g. mutation rates) or raw counts (default:
--use-ratio).--graph-quantile FNormalize and winsorize ratios to this quantile before graphing (default 0.0, i.e. no normalization).
--cgroup {c|k|a}Put each cluster in its own file (
c), each number of clusters K in its own file (k), or all clusters in one file (a).--html/--no-htmlWrite an interactive HTML plot (default on).
--svg/--png/--pdfAlso write static SVG, PNG, and/or PDF images (default off).
--csv/--no-csvAlso write the graphed data as a CSV file (default on).
--forceOverwrite existing outputs.
See the auto-generated Command Line Reference for the complete per-subcommand option lists.
See also
seismic table — produces the mutation rate tables used as input
seismic fold — produces the CT files used by ROC/AUC subcommands