Skip to content

View Summary Reports

Parts of a SEGUL commandThe command segul view summary --input alignment-report.json --output aln-concat has five parts: the program segul, the command view for the task group, the subcommand summary for the task, the input --input alignment-report.json (file), and the option --output aln-concat (optional).segulProgramviewCommandtask groupsummarySubcommandtask--input alignment-report.jsonInputfile--output aln-concatOptionsoptional

Explore a summary report in your terminal, as tables or plots. It shows the same report SEGUI opens after a summary, so you can check results on a remote server or in a terminal session where a GUI is not available.

The viewer opens three reports:

SEGUL tells them apart from their content, so a report with an output prefix, such as uce_alignment-report.json, opens the same way:

Terminal window
segul view summary --input Align-Summary/alignment-report.json
Terminal window
segul view summary -i Read-Summary/read-report.json

Other files stop with a message that names the file.

SEGUL summary viewer showing a table of 300 loci sorted by number of sites
The Loci table of an alignment report, sorted by sites.

From top to bottom, the viewer shows:

  1. Toolbar: the file name, the kind of report, and its main counts, such as 120 taxa · 4,060 loci · DNA.
  2. Sections: Overview, then one section for each kind of item. An alignment report has Loci and Taxa; a read report has Samples; a distance report has Loci, Samples, Groups with grouping, and the Matrix and Group matrix sections. Each section shows how many items it holds. On the right, Table │ Plot marks the current view, and the plot shows whether it draws bars, a histogram, or a heatmap.
  3. Section content: the overview, or the items of a section as a table or a plot.
  4. Status bar: the selected item, the chosen column and its value, and the item's position, such as uce-12 · Sites: 412 · 12 of 4,060.

The viewer opens on the first table of items, the part most often wanted.

The overview lists the totals of the report on the left, with bar charts on the right. Press 1 to open it, and Tab to go on to the tables.

SEGUL summary viewer overview with alignment totals, a matrix completeness chart, and a character count chart
Overview of an alignment report.
  • Alignment report: the data type, taxa, loci, sites, characters, missing data, and GC and AT content, with the range and mean of locus length and taxa per locus. Conserved, variable, and parsimony informative sites show their count and share of all sites, with the loci that are fully conserved or have any variable or informative site. The charts show matrix completeness, as the loci with at least each share of taxa, and the count of each character.
  • Read report: the samples, reads, bases, mean read length, and Q30 bases across every sample, with a chart of reads by mean quality score across all samples.
  • Distance report: the data type, model, loci, samples, pairs, undefined pairs, the range, mean, and standard deviation of every pairwise distance, the median of the locus means, and the compared sites per pair, with a histogram of every pairwise distance across loci.

Every section of items, such as Loci, Taxa, or Samples, can be shown as a table or a plot. Press v (or F2) to switch between them. Both follow the chosen column, so you can read the numbers in the table, then switch to the plot to see how they spread.

The table has one row per item and one column per statistic.

  1. Press Tab, or the section number, such as 2 for Loci, to open a section.
  2. Press ← or → to choose a column. Its header is highlighted, and light lines separate the columns. Columns that do not fit the terminal scroll into view as you move to them, and the title says how many are hidden.
  3. Press ↑ or ↓ to select an item. The status bar shows its name, the chosen column and its value, and its position.
  4. Press s to sort by the chosen column, highest first. Press it again to sort lowest first, and once more to return to the report order. An arrow next to the column name shows the order.

The selected item stays selected when you sort, so the table may scroll to keep it in view. Press Home to go back to the first item. Items without a value, such as duplication from a Default mode run, go last.

Press v in a table to plot the chosen column. The plot draws one bar per item, in the same order as the table, with the minimum, median, and maximum in the title. Sort the table first to rank the items, as in this plot of the loci with the most sites:

SEGUL summary viewer bar plot of sites per locus, sorted from the longest locus
Sites per locus as bars, sorted highest first.

Press ← or → to plot another column, and ↑ or ↓ to move the selection. Press v again to return to the table.

Press h in the plot to count the items in ranges of the chosen column instead. Each bar shows how many items fall in its range. The range of the selected item is highlighted, and a note below the chart names it. Press h again for a heatmap.

SEGUL summary viewer histogram of locus lengths in ranges of 50 sites
Histogram of sites per locus.

The plot remembers the choice, so other columns also open as a histogram until you press h again.

Press h once more to draw every column as a heatmap, one row per item in the table order. Each column is colored from its lowest to its highest value, and missing values show as ·. The line below the heatmap shows the colors from low to high and the selected item's value in the chosen column. Choose the colors with --colormap. Press h again to return to the bars.

Alignment reports have these columns:

  • Loci: taxa, sites, conserved, variable, and parsimony informative sites, missing data (%), and GC content (%) for DNA.
  • Taxa: loci the taxon appears in, characters, missing characters, missing data (%), and GC content (%) for DNA.
SEGUL summary viewer table of six FASTQ samples with reads, bases, GC content, and quality
The Samples table of a read report.

Read reports list each sample's reads, bases, mean read length, N50, GC content, N content, Q20 and Q30 bases, mean quality, and reads with mean quality below 20. Duplication, adapters, and poly-G appear when the report has them.

Distance reports have these columns:

  • Loci: samples, sites, pairs, undefined pairs, the mean, median, standard deviation, minimum, and maximum distance, and the mean compared sites per pair.
  • Samples: loci, pairs, and the mean, standard deviation, minimum, and maximum distance to every other sample. Nearest is the distance to the nearest sample. With groups, Max within and Min between are the highest distance to a sample of the same group and the lowest to another group.
  • Groups: samples, pairs within the group, the mean, standard deviation, and maximum distance within the group, and the mean distance to the nearest group.

A distance report also has a Matrix section with the mean distance between every pair of samples, and a Group matrix section with the mean distance within and between groups. Rows are named, and columns are numbered by row. Press the arrow keys to move between cells; the status bar names the two items and their distance. Cells are colored from the lowest to the highest distance, leaving out each item with itself. Missing values show as ·.

Press F1 or ? in the viewer to see them.

KeysAction
Tab / Shift+TabNext / previous section
1 to 9Go to a section
v or F2Switch between table and plot
hCycle the plot: bars, histogram, heatmap
← / →Choose a column
sSort by the column: highest first, lowest first, report order
↑ / ↓Move the selection
Arrows in a matrixMove between cells
PgUp / PgDnMove a page (fn+↑ / fn+↓ on macOS)
Home / EndFirst / last item (fn+← / fn+→ on macOS)
Mouse wheelScroll
F1 or ?Show the key bindings
q, Esc, or Ctrl+CQuit
OptionDescription
-i, --inputalignment-report.json from segul align summary, read-report.json from segul read summary --mode complete, or distance-report.json from segul align distance
--themeColors for a dark (default) or light terminal
--colormapHeatmap colors: viridis (default), cividis, magma, inferno, plasma, blues, greens, ylgnbu, ylorrd, rdbu, puor, or brbg
--logLog file path. Default: segul.log

This material is based upon work supported by the National Science Foundation under grant numbers: DEB-1754393 and DEB-2244754. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation.