Viewer
Interactive viewer for the trained model.
Accessing the Viewer Page
Navigate to the Viewer by clicking the Viewer link in the top menu or the navigation bar.

Features

The Viewer page offers four main functionalities.
- Encoding sequences into latent space
- Decoding points from latent space into sequences
- Downloading sequences.
- Interactive selection of points in latent space
Let's explore each feature in detail.
Encoding sequences
You can encode sequences in two ways.
- Enter the sequence directly into the provided form.
- Upload a file in
.fastaformat.
After entering a sequence in the form, click the + button to encode and add it to the table.
The results appear in the Encoded sequences table below the latent plot.

In the Encoded sequences table, you have option to:
- Modify sequences: Double-click the cell in the
Random Regioncolumn. - Delete sequences: Click the trash icon.
- Toggle visibility in latent plot: Click the eye icon.
Warning
Each sequence must consist of A, C, G, T, or U. The ambiguous base N is not permitted.
Decoding points in latent space
The decoding module consists of two panels:
- Input panel: Select x and y coordinates of the points in the latent space.
- Output panel: View the decoded sequence and associated information.
The input panel includes a toggle for grid line visibility, helping you pinpoint exact coordinates in the latent space.
In the output panel, you will see the decoded sequence and a + button in the right. Clicking this button adds the sequence to the Decoded points table.

The Decoded points table allows you to:
- Modify coordinates: Double-click the respective cell in the
xandycolumns. - Delete sequences: Click the trash icon.
- Toggle visibility in latent plot: Click the eye icon.
Additional features in the output panel:
Weblogotoggle: Displays the weblogo at the specified coordinate, calculated from the pHMM decoder's raw output values. The x-axis represents sequence position, while the y-axis shows the score (log probability) of the base at each position.Secondary structuretoggle: Reveals the secondary structure of the decoded sequence, including 3'' and 5' flanking constant regions.
Downloading clusters
To download sequences from a specific cluster:
- Select the desired cluster from the dropdown menu.
- Click the
Downloadbutton.
Download options:
- Toggle
Download as Fasta format: Downloads the sequences in.fastaformat. - Toggle
Download as probabilities: Downloads the sequences and the probabilities in.csvformat.
Interactively selecting points in latent space
This feature utilizes the plotly.js library for an interactive experience.
To select points:
- Choose either the
Box SelectorLasso Selectbutton to change the selection mode.
- Click and drag your mouse to select points in the latent space. Unselected points are shown in gray, helping you focus on your selection.
Selected points are shown in Selected pointstable. You can save the selected points by clicking theDownload Allbutton in the table.