OTUs

Overview

In Virtool, references are collections of OTUs (organization taxonomic unit), their isolates, and genomic sequences.

Virtool references are fully editable and tracked. The data is used to identify potential pathogen infections in Illumina libraries derived from your samples.

Structure

An OTU typically represents a single pathogen species.

Each OTU is itself a collection of isolates. In Virtool, isolates include strains, genotypes, or variants of the same OTU. An isolate can have one or more genome sequences attached to it.

An OTU must contain one or more isolates and each isolate must have one or more sequences attached to it.

Here is the structure of a single viral OTU containing one isolate and its sequences:

Isolate naming

Virtool isolates are named with two pieces of information: the source type and source name. This naming system was inspired by the way isolate information is stored in GenBank records.

A source type is the first word in the isolate name and is a classification keyword used by the publisher of the sequence. Examples include strain, genotype, culture, and variant. Source type keywords aren’t standardized in GenBank.

A source name is the unique second part of the isolate name that identifies the isolate.

Here are some examples of isolate names, source types, and source names:

NameSource TypeSource Name
Isolate AIsolateA
Isolate ShenyangIsolateShenyang
Variant BVariantB
Genotype 6Genotype6

Schemas

In Virtool, OTU schemas are a way of defining what each isolate in the OTU should look like.

Schemas allow you to define what sequence segments should be present in isolates created for the OTU. Once a schema is defined, users can mark each sequence in the isolate with the segment it represents. Assigning a segment to a sequence has the following effects:

  • sequences in the OTU detail view are sorted according to the schema order
  • sequences in the OTU detail view sequence headers display the segment name instead of the definition
  • sequences coverage charts in Pathoscope are sorted by the schema order

History

All changes made to OTUs are tracked. Change records include a description of what was changed, the timestamp, and the user responsible.

The history for an OTU can be viewed in its detail view under the History tab. Changes are separated into those that have been made since the last index build (Unbuilt Changes) and those included in previous builds (Built Changes) by clicking on the icon.

See more information about history.

Browse OTUs

The examples in this guide use Abaca Bunchy Top Virus (ABTV) and Tobacco Mosaic Virus (TMV), with SXFQ as the name of an isolate.

The OTUs that belong to a Virtool reference can be easily browsed and edited. To start browsing member OTUs for a given reference:

  1. Click References in the main navigation bar

    This shows a list of all references.

    References list

  2. Click the reference of interest

    This opens the detail view for the reference.

    Banana Viruses reference

  3. Navigate to the OTUs tab

    This view shows the OTUs that belong to the reference

    Banana Viruses OTUs

  4. Click an OTU item to view its detail page

    ABTV Detail

Create an OTU

Creating a new OTU for a given reference requires only a name. You can optionally provide an abbreviation like those commonly used for viruses.

  1. Click under the OTUs tab

    Create OTU button

    A dialog appears with a form for creating a new OTU.

    Create OTU dialog

  2. Enter a name and optionally an abbreviation for the new virus

    Create OTU dialog filled out

  3. Click Save to create the new OTU

    It should now appear in the list of OTUs for this reference.

    New OTU in modified state

  4. Click the newly created OTU

    This navigates to the OTU’s detail view. Notice that there is a warning indicating that the OTU isn’t ready for use in analyses.

    New OTU detail

Edit an OTU

The name or abbreviation for an OTU can be changed after its creation.

  1. Navigate to the detail view for the OTU you want to edit

    Bad Banana Detail

  2. Click the icon in the top-right

    This displays the edit dialog. Note that you don’t see this icon if you don’t have modification rights on the parent reference.

    Edit dialog

  3. Change any of the fields and click Save

    The abbreviation is changed in this example.

    Edit dialog changes

Remove an OTU

  1. Navigate to the detail view for the OTU you want to delete.

    Remove OTU

  2. Click the topmost next to the OTU name

    A dialog box like the one below shows up to confirm the deletion of the OTU.

    Confirm removal of OTU

  3. Click the Confirm button to permanently remove the OTU

    The OTU is removed from the OTUs list and the index must be rebuilt to include this change in future analyses.

    Remove OTU

Add an isolate

Isolates are how sequence data is organized within the OTU record. Read about isolates in the section overview.

  1. Navigate to the detail view for an OTU

    TMV with one existing isolate

  2. Click Add Isolate to the right of the Isolates heading

    This displays a dialog for creating isolates.

    Add isolate initial

  3. Fill the form with your source type and source name values

    Notice that the Isolate Name field changes with the other two fields. Both fields are optional and the isolate name is Unnamed if they’re both empty. Isolate names don’t have to be unique within an OTU.

    Add isolate dialog filled

  4. Save the changes by clicking Save

    The new isolate appears in the isolate editor

    Virus detail with one empty isolate

Edit an isolate

  1. Navigate to the OTU whose isolate you would like to edit

    Edit TMV

  2. Select the isolate you want to edit

    Isolate SXFQ is selected in this example. This isolate is new and has no sequences associated with it.

    TMV with Isolate SXFQ selected

  3. Click the icon next to the isolate

    A dialog box shows up like the one below. The fields are populated with the current isolate data.

    Dialog box for editing an isolate

  4. Make the necessary changes to the isolate

    In this example, the source name changes to TMV-WS06.

    Edited Isolate

  5. Click Save

    The new changes are reflected in the OTU detail view.

    New changes to OTU name displayed

Remove an isolate

  1. Select the isolate you would like to remove

    Delete new isolate

  2. Click the next to the isolate name

    A removal confirmation dialog like the one shown below appears.

    Confirm removal of isolate

  3. Click the Confirm button to permanently delete the isolate

    The isolate should now be removed from the Isolates list.

    Isolate is removed from list

Add a sequence

  1. Select the isolate you want to add a sequence to

    TMV with Isolate SXFQ selected

  2. Click the Add Sequence link near the Sequences heading

    This displays the Add Sequence dialog

    Sequence addition dialog

  3. Fill out the form fields

    You can pull sequence records from GenBank by entering a valid GenBank accession in the Accession field and clicking the icon.

    Sequence addition dialog with completed form

  4. Click Save to create the new virus

    It appears in the isolate editor.

    TMV with sequence added for Isolate SXFQ

  5. Click the sequence entry to expand it

    Sequence Record

Edit a sequence

  1. Select the isolate and sequence you want to edit

    Here, sequence JX993906.1 is selected in Isolate SXFQ.

    Sequence Record

  2. Click the icon in the sequence header

    The Edit Sequence dialog appears.

    Edit sequence dialog box

  3. Make your changes to the sequence

    Here, the host field was changed from Solanum lycopersicum to Tomato.

    Edit sequence dialog box with change to host field

  4. Click Save to save your edits

    Notice that the changes have been applied on the sequence record.

    Updated sequence record

Remove a sequence

  1. Select the sequence you want to remove

    Here, sequence JX993906.1 is selected in Isolate SXFQ.

    Sequence Record

  2. Click the next to the sequence header

    A dialog box like the one shown below shows up.

    Confirm removal of the sequence

  3. Click Confirm to permanently delete the isolate

    The sequence should now be removed from the Sequences list.

    Isolate is removed from list

Add a segment

  1. Navigate to an OTU you want to define a schema for

    This example uses Abutilon mosaic virus (AbMV). Notice that AbMV has two genome segments: DNA-A and DNA-B.

    Abutilon mosaic virus detail

  2. Navigate to the Schema tab.

    Schema Overview

  3. Click Add Segment

    The Add Segment dialog box appears.

    Add Segment

  4. Fill the form field

    Give the segment a name and select a Molecule Type. AbMV has a circular single-stranded DNA genome.

    The Segment Required checkbox indicates that the segment must be present in an isolate for is to be valid.

    Add Segment

  5. Click Save to add the segment

    The new DNA-A segment is displayed in the schema list.

    DNA-A added to AbMV schema

  6. Add DNA-B to finish populating the schema

    Both segments added to AbMV schema

Edit a segment

  1. Locate the segment you want to edit

    The name of DNA-A is changed.

    DNA-A is edited

  2. Click the icon

    The Edit Segment dialog appears. The form is populated with the current segment data.

    Edit segment dialog

  3. Make your changes to the segment

    Here, the name changes from DNA-A to DNA A.

    Edit segment dialog with changes

  4. Click Save

    The updated name appears under the Schema tab.

    DNA-A was changed to DNA A

Use a segment

Once you have defined a schema for an OTU, you can set a segment on each isolate sequence when adding or editing them.

  1. Check the schema for the OTU

    DNA-A and DNA-B are defined for AbMV. The segments are ordered alphabetically.

    Schema for AbMV

  2. Navigate to the OTU tab and select and isolate

    AbMV isolates before segment assignment

  3. Select a sequence

    Here, NC_001929 is selected. Notice that the Segment field isn’t configured.

    AbMV with NC_001929

  4. Click the icon

    The Edit Sequence dialog appears.

    Sequence edit dialog for NC_001929

  5. Click the Segment dropdown

    The segments defined in the schema are available for selection.

    Sequence edit dialog with Segment dropdown

  6. Select the segment for your sequence

    Here, select DNA-B to match the information from the GenBank-sourced definition for the sequence.

    Sequence edit dialog with segment set

  7. Click Save

    The change to the Segment field is reflected in the sequence record and the sequence header contains the segment name instead of the sequence definition.

    AbMV sequence list with segment change reflected

  8. Set the segment for the other sequence

    When this has been done, the Sequences list is ordered according to the schema.

    AbMV sequence list ordered according to schema

Reorder a schema

  1. Select an OTU and isolate and note the current sequence ordering

    These sequences have a segment set and are ordered based on the OTU schema.

    AbMV sequence list ordered according to schema

  2. Navigate to the OTU Schema tab

    The segments are currently ordered alphabetically.

    AbMV schema with both segments

  3. Drag and drop the segments to reorder them

  4. Return to the isolate from Step 1

    Note that the sequence ordering has changed to match the schema.

    AbMV schema with both segments

Remove a segment

  1. Navigate to the schema page for an OTU

    Schema for AbMV

  2. Click the icon on a segment

    The Remove Segment dialog appears.

    Confirm removal of segment

  3. Click Confirm button to remove the segment

    The segment is removed from the schema segment list.

    Segment removed