Page tree
Skip to end of metadata
Go to start of metadata

Introduction

This tutorial describes how to import sequence and annotations into IGB when your genome of interest is not available from an IGB QuickLoad or REST data source.

In this tutorial, we will demonstrate importing a bacterial genome (E. coli) using files downloaded from NCBI. Overall, to view custom genome and annotations in IGB properly, a Synonym File needs to be created.

Get genome data from NCBI

First, visit NCBI to retrieve the sequence data and annotations.

Download annotations file

  1. Click Send to: (on the right side of the record)
  2. Select the following:
    1. Complete Record
    2. File
    3. GenBank(Full)
  3. Click Create File

Save the file to your computer; by default, it will be named "sequence.gb".

If you change the name, be sure to use the ".gb" file extension so that IGB can recognize the file and the file format.

Download sequence file

  1. Click FASTA (on the left side of the record)
  2. Click Send to:
  3. Select the following:
    1. Complete Record
    2. File
    3. FASTA
  4. Click Create File

Save the file to your computer; by default, it will be named "sequence.fasta".

Make sure that the extension for the FASTA file is either '.fasta' or '.fa'. If the extension is '.txt', you can safely change it to '.fa'.

Create Synonyms File

When IGB shows the "sequence.gb" file, it uses the 'LOCUS' name from that file. To show the "sequence.fasta" file, IGB uses the 'sequence name' that follows the '>'.  Note, when the labels for each file type (FASTA sequence files, annotation files, BAM/alignment files, etc.) for the exact same chromosome/sequence are all different, IGB will treat each one as a separate chromosome; they will not be visualized together.

To overcome this, we enter 'synonyms'; IGB already has some internal synonyms, for example "1" and "chr1" are equivalent. You will need to know the sequence names of each of these files; if you are not sure, a quick way is to drag all of the files into IGB at the same time.

Determine 'sequence names' in sequence and annotation files:

  1. Drag "sequence.fasta" and "sequence.gb" into IGB
  2. In the Current Genome tab, look under Sequence(s)
    1. Note that the sequence name from "sequences.fasta" is NC_000913.3 and the sequence name from "sequence.gb" is NC_000913

Create synonym file

Now that we know the headers of the files we will create a tab-delimited 'personal synonym' file:

  1. Open a Text Editor
  2. On the first line, type 1, then press tab
  3. Type chr1, then press tab
    1. 1 and chr1 are standard names for the first chromosome, and many files use these as their headers. Typically, we always include these two options in a synonym file.
  4. Type in the header of the "sequence.gb" file, NC_000913, then press tab
  5. Type in the header of the "sequence.fasta" file, NC_000913.3
  6. Save this file with the name chromsome.txt

If you are making a synonym file for a multi-chromosomal organism, then make a new line in the file for each chromosome, and just add all of the 'names' associated with it (make sure that there is a 'tab' between each name!). If you include a file that has a new name, open chromosome.txt and add the name to the proper line.

Import Synonym File into IGB

In IGB:

  1. Click File > Preferences...
  2. Select the Data Sources tab
  3. Click the ellipses (three dots) next to Chromosome Synonyms File 
  4. Browse for the "chromosome.txt" file
  5. Restart IGB

Visualizing the Reference Sequence and Models

When you open the new instance of IGB, your synonyms will be loaded for you. At this point, we will open the files, "sequences.fasta" and "sequences.gb", so you can begin analysis of your own data. 

To open the sequence and annotation files:

  1. Click File > Open Genome from File...
    1. Browse for the "sequence.fasta" file
    2. Click OK
  2. Click File > Open File...
    1. Browse for the "sequence.gb" file
  3. Click the Load Data button


Both the reference sequence and gene models will load. You will be zoomed out, so the sequence will appear as a grey bar; as you zoom in the colors and nucleotides will become visible.

Keep in mind that if the name of the chromosome(s) is different in your files, you will have to add that name to "chromosome.txt" and then reopen IGB so it can load in the new information.

  • No labels