Manual Inspection Module

Manual inspection is a core component of TEamo and appears in multiple steps of the app. Its purpose is to allow the user to visually and structurally validate each TE consensus sequence combining outputs from TE+Aid and MCHelper.

More info about TE protein hits

Please note that TEamo may display complementary information, particularly for the TE structure and protein hits. MCHelper (left panel) obtains coding information with a multilayered approach:

  • hmmscan against “Pfam35.0.hmm” to detect TE protein domains in ORFs
  • blastx against “Dfam_3.7_curatedonly_aa.fasta” to look for curated TE proteins
  • tblastx against “Dfam_3.7_curatedonly.fa” to look for match between translation of the consensus and the Dfam consensus,

while TE+Aid (right panel) obtains ORFs longer than 400bp by executing getorf from emboss package and a blastp against “RepeatPeps.lib” database from Dfam.


Left Panel: Controls and Sequence Metadata

The left panel (grey background) provides full control over the inspection process:

  • Library under inspection: library that is under inspection (might have tmp_* prefix, a temporary library that stores the progress of the inspection)

  • Sequence selector: a dropdown menu to select which consensus sequence to inspect.

  • Trim left: a numeric input to set the left boundary of the consensus sequence. It might be set by clicking on the consensus coverage plot or by selecting a range in any of the other 3 plots.

  • Trim right: a numeric input to set the right boundary of the consensus sequence. It might be set by clicking on the consensus coverage plot or by selecting a range in any of the other 3 plots.

  • Trim seq: Generates a new trimmed subsequence and recalculates all structural analyses. This operation may take some time for long or complex TEs.

  • Wait for trimming (advanced option): When enabled, the app is blocked until trimming is finished. Experienced users may disable it to send trimming to background and continue inspecting other sequences while trimming is processed (the trimmed sequence will be moved to the end of the dropdown list).

  • Undo trimming Reverts the last trimming operation.

  • TE annotation: a dropdown menu showing the current TE classification. This should be changed if the classification is incorrect; the new classification is applied when clicking Save seq.

  • Show extended MSA: a checkbox that toggles the display of the Extended Multiple Sequence Alignment panel above the main view. See the Extended MSA section below for details.

  • Discard seq: removes the sequence from the library. Discarded sequences will not be included in downstream steps.

  • Save seq: saves the sequence with its current trimming (trimmed if a trimming is present, as is otherwise) and classification. Saved sequences go to:

    Step File (under data/<species>/<strain>/MCH_output/CompleteIncomplete/)
    1st MC CompleteModels/KeptModels/complete_kept_models.fa
    2nd MC CompleteModels/KeptModels/complete_kept_808080_recovered.fa
    3rd MC IncompleteModels/incomplete_808080_recovered.fa
  • Previous seq / Next seq and Re-classify (only in Finalize curation): see Finalize curation.

Structural information given by MCHelper

  • A table of coding domains with their MCHelper e-values
  • A TE structure table describing terminal repeats, their lengths, and coding regions

Right Panel: TE+Aid Visualizations

The right panel displays four interactive Plotly plots generated by TE-Aid.

Interactive zoom to set trim boundaries

All four TE+Aid plots are linked: when you click and drag (zoom in) on the x-axis of any of the four plots, the trim boundaries on the left panel are adjusted automatically to match the zoomed region. This allows you to quickly focus in the sequence region desired and the numeric input allows to set precise trimming boundaries.

To reset the view (and the trim boundaries) to the full sequence, double-click inside any plot.

What each plot shows

  1. Copy divergence relative to the consensus: each segment is a genomic copy aligned to the consensus. Red segments are full-length fragments (FLF), grey are partial copies. The more red segments and the closer they are to 0% divergence, the better.
  2. Genomic coverage of the TE: total number of genomic sequences covering each position of the consensus. TE classes have specific coverage profiles; refer to the curation guide by Goubert et al. (2022) for class-specific expectations.
  3. Consensus self-dotplot: inverted repeats appear as green diagonal lines (off the main diagonal); forward repeats and other internal structures appear as black diagonal clusters (e.g. clusters of short diagonal lines may indicate microsatellites or simple repeats within the element).
  4. TE structure and protein hits: ORFs (searched with getorf) are shown as horizontal rectangles (black border: + strand; red border: − strand), with coloured filled rectangles indicating protein hits against the TE protein database distributed with RepeatMasker.

Extended MSA

When you check "Show extended MSA" in the left panel, an additional alignment panel appears above the four TE+Aid plots. This panel shows a Multiple Sequence Alignment (MSA) built from the genomic copies extended by flanking sequence, generated by the extend_consensus pipeline:

  1. The consensus is searched in the genome with BLASTn (e-value ≤ 1e-20) and only the hits covering at least 90% of the consensus length are kept.
  2. Each hit is extended 50 bp on each side and the copies are aligned together with the consensus using MAFFT.
  3. The plot shows the consensus plus up to the 10 most conserved copies.

The first row is always the consensus, which therefore lacks the flanking regions. The flanks of the copies help to check whether the consensus boundaries are correct.

The extended MSA plot is an interactive heatmap where:

  • Each row is one aligned sequence (copy + flanking region)
  • Each column is one position in the alignment
  • Nucleotides are color-coded: A (blue), C (orange), G (green), T (red), gaps (light grey), N (dark grey), and IUPAC ambiguity codes (various colors)
  • Hover over any cell to see the copy name, position, and base
  • Zoom in (click and drag) to reveal individual nucleotide labels when fewer than 100 bp are visible; double-click to reset the view
  • Pan: hold Shift and drag to move along the alignment
Note:

If a message is shown instead of an alignment, it indicates one of:

  • "No MSA file available" — the alignment file was not found (typically because only one full-length copy was detected, or the pipeline has not yet finished running).
  • "Error loading MSA file" — a problem was encountered reading the alignment file (check that the file is in valid FASTA format and is not corrupted).