RepeatViewer User Manual 1.2.0 PDF

Chapter 6Annotations

Annotations (features) are named regions of a sequence: LTRs, TIRs, TSDs, protein domains, ORFs, tandem repeats, primer sites, or anything you mark by hand. They are shown in the Overview and in the alignment viewer, and can be moved between sequences and exported.

6.1Where annotations are stored

Every annotation of name.fa is saved in name.seqmap_RV.json next to it, whether it came from feature detection, a similarity search, Find, a TSD search or your own hand. This file keeps the colours, types and sources of the features and is the one true copy. It is hidden in the Files panel and follows its FASTA when you rename, move, copy or delete it.

GFF3, GTF and BED files are written only when you export (see Export). To get a GFF3 on every save as well, tick Also write GFF3 on every Save in the export window; the file is then name.fa_RV.gff3.

Adding an existing annotation file

Drag a GFF, GFF3, GTF or BED file onto the FASTA in the Files panel, or right-click the FASTA and choose Add Annotation…. Features are matched to records by sequence name (GFF column 1 = the FASTA header up to the first space), so the annotation file can have any name. The file itself is not moved or changed.

6.2The Annotation tab

Open a FASTA, switch to Overview, and open the Annotation tab of the side panel. It has four sections; click a title to open it.

The Annotation tab with Feature detection open.
Figure 6.1. The Annotation tab with Feature detection open.

Feature detection

Finds structural features in the current sequence in a few seconds, without any database. Tick what to look for and click Run:

Type What is found
LTR Long terminal repeats: direct repeats at both ends
TIR Terminal inverted repeats
Tandem Tandem repeats (with pytrf)
ORF Open reading frames
TSD Target site duplications next to LTRs or TIRs
PBS Primer binding sites (tRNA matches) just inside a 5′ LTR

Setting opens the parameters of each detector (minimum lengths, identities, ORF size and so on).

Similarity annotation

Searches the sequence against your annotation databases (protein domains such as CDD or REXdb, HMM profiles such as Pfam or Dfam, or a TE library) and adds the hits as features. Which databases appear here is set in File → Manage Database with the Annotation tick (see Manage Database). Setting sets E-values and other thresholds.

Similarity annotation lists the databases marked for annotation.
Figure 6.2. Similarity annotation lists the databases marked for annotation.

Manually add feature

Select a range on the ruler (drag), tick the feature type, and click Add. Setting chooses which types are listed.

Manually add feature.
Figure 6.3. Manually add feature.

Right-click a feature for Modify (name, type, strand, range), Change color, Copy sequence, Extract Sequence (write it to a new FASTA), Attach cytogenetic image… and Delete. Drag a selected feature's end to change its range. Right-click a selected range of the ruler for Add feature…, Copy Sequence and Extract Sequence.

Transfer annotation

Copies annotations from an annotated sequence (the source) onto the current sequence, for example from a curated reference element onto a new copy.

Transfer annotation.
Figure 6.4. Transfer annotation.

The whole source is lifted onto the target first (MAFFT for short sequences, minimap2 for long ones), and any features left over are placed by BLAST. Transferred features remember their identity and coverage.

Delete, Restore, Export, Save

6.3Export

Export in the Annotation tab, in the alignment viewer and in the multi-sequence overview, and Export Annotation… on a FASTA's right-click menu, all open the same window.

Export: choose the type and the file.
Figure 6.5. Export: choose the type and the file.
Type Writes
GFF3, GTF, BED The annotations as on screen, including unsaved changes
PDF, SVG The current view as a vector figure, ready for a journal
PNG The current view as an image, at the DPI you choose

The suggested file name follows the type: name.fa_RV.gff3 for annotations, name.fa_annotation.pdf for figures.

6.4Sequence Annotation (many files at once)

Tools → Annotate runs feature detection and similarity annotation on all selected files in one go, writing the results into each file's annotations. Use it to annotate a whole library before you look at the elements one by one.

The Sequence Annotation window.
Figure 6.6. The Sequence Annotation window.