Importing Annotations from CSV

It is possible to import annotations for a sequence from an annotations table stored in CSV format.

To import annotations from a CSV file, right-click on a Project View and select Import ‣ Import annotations from CSV. The following dialog box will appear:

You need to specify the file from which to read the annotations table (required):

And specify the format of and the path to the file into which to write the annotations table (required):

Check Add result file to project to link the annotations to the currently opened sequence.

To use a separator for splitting the table, check the Column separator item and specify the separator symbols. You can also press Guess to attempt to detect the separator from the input file.

Alternatively, you can press Edit to modify the script that specifies the separator for each parsed line. It is possible to use the line number in the script.

Using the arrows, you can exclude the necessary number of lines at the beginning of the document from parsing. You can also skip all lines that start with the specified text.

By pressing Preview, you can view the current annotations table (produced from the input file with the specified parameter values). The input file contents will also be shown at the bottom part of the dialog.

The preview table headline indicates the types of information contained in the corresponding columns. By default, the values are [ignored]. To specify a column role, click on the corresponding headline element:

The annotation start and end positions must be specified. It is possible to add an offset to every read start position by checking the Add offset checkbox, and to shorten annotations by one from the end by unchecking the Inclusive checkbox.

When all the roles are specified, press Run. With the Add to project checkbox checked and a Sequence View opened, if successful, you will see the Sequence View with annotations linked: