In this module, we will learn:
- what a reference genome is and what it contains
- details about the FASTA and GTF formats
- to appreciate the differences in gene identifiers
- how to download a reference genome
Differential Expression Workflow
Here we will set the stage for the next steps by discussing reference
genomes, which are integral to genome alignments and gene/isoform
quantification. Along the way we will touch on some things to be aware
of.
Reference Genomes
A reference genome consists of the reference
sequence and, optionally, any number of genomic
annotations that describe attributes about that sequence.
Examples of annotations include:
- Gene models consisting of the location and other information about
genes.
- Variants consisting of the location of common or rare genetic
variants, their alleles, and frequencies.
- Small RNAs consisting of the location and other information about
various types of small RNAs.
Of particular relevance to us for this workshop are the reference
sequence and gene models.
Reference Sequence
Reference sequence is stored in FASTA files. They
are similar to FASTQ files in their storage of sequence information, but
their format is a little different in a couple ways:
- Records are separated by lines beginning with
>
instead of @
.
- Only the sequence is stored in a FASTA file, there is no notion of
quality attached to the nucleotides.
>chrM
GATCACAGGTCTATCACCCTATTAACCACTCACGGGAGCTCTCCATGCAT
TTGGTATTTTCGTCTGGGGGGTGTGCACGCGATAGCATTGCGAGACGCTG
GAGCCGGAGCACCCTATGTCGCAGTATCTGTCTTTGATTCCTGCCTCATT
CTATTATTTATCGCACCTACGTTCAATATTACAGGCGAACATACCTACTA
AAGTGTGTTAATTAATTAATGCTTGTAGGACATAATAATAACAATTGAAT
GTCTGCACAGCCGCTTTCCACACAGACATCATAACAAAAAATTTCCACCA
AACCCCCCCCTCCCCCCGCTTCTGGCCACAGCACTTAAACACATCTCTGC
CAAACCCCAAAAACAAAGAACCCTAACACCAGCCTAACCAGATTTCAAAT
TTTATCTTTAGGCGGTATGCACTTTTAACAGTCACCCCCCAACTAACACA
Gene Models
Well-characterized organisms (e.g. human, mouse, zebrafish) have
fairly mature gene models. These are stored in GTF format, which gives location and other
information about each gene feature. Below are two examples:
The GTF format stores specific information in each column:
1 |
Chromosome |
2 |
Source, e.g. ensembl, havana |
3 |
Gene feature, e.g. exon, intron, mRNA, transcript |
4 |
Start location, 1-based |
5 |
End location, 1-based |
6 |
Score |
7 |
Strand |
8 |
Frame, relating to codons |
9 |
Attribute, a semicolon separated list of key/value pairs giving
additional information about the feature. |
Minutiae, Very Briefly
Bioinformatics is a relatively new, fast-changing, field and its data
standards and formats are no different. Consequently there are some
oddities and tedious items of note which we would like to only briefly
touch on here.
Genome Builds
On occassion new reference genomes are released, and the genome build
number changes. You may be familiar with the UCSC manner of naming human
genome builds: hg18, hg19, hg38. ENSEMBL, naturally, has their own way
of referring to genome builds: GRCh36, GRCh37, and GRCh38. Notice with
the most recent human reference, the numbering now aligns between UCSC
and ENSEMBL.
Different organisms have their own versioning.
Gene IDs
The two GTF examples above highlight different ways of referring to
the same gene. In the first GTF we see:
And in the second GTF we see:
- ENSG00000223972, the ENSEMBL gene ID
- DDX11L1, the gene symbol, thankfully the same
- ENST00000456328, the ENSEMBL transcript ID
Translating between different gene IDs is possible, as we will see in
Day Two with biomaRt
. But in terms of best
practice it is generally a good idea to avoid using the gene
symbol as the primary gene identifier because not everyone refers to the
same gene by the same symbol.
Getting a Reference Genome
The Illumina
iGenomes resource is one of the easiest, and most comprehensive,
ways to download a reference genome. iGenomes includes both the
reference sequence and gene models.
Reference genomes can be very large, depending on
the organism, and so we will not download one to the Amazon instance we
are using for this workshop. We’ve included instructions for downloading
these, in case you want to download these to the server where you intend
to later do a similar RNA-seq analysis (e.g. on High-Performance
Compute, GreatLakes).
How would I download references with iGenomes?
As noted, it’s not recommended to download the iGenomes references to
the AWS instance. However, if you wanted to know in general how you
would do that, the process is described here.
First go to the iGenomes
page, find the build you want from the source you want, right click the
genome build you want to download, and select “Copy link location”:
iGenomes image for copying link location
Then on the remote server you would go to the directory you’d like to
download the genome to and type (that URL is what we copied):
$ wget http://igenomes.illumina.com.s3-website-us-east-1.amazonaws.com/Homo_sapiens/NCBI/GRCh38/Homo_sapiens_NCBI_GRCh38.tar.gz
After the download finishes (it may take a while as it is tens of GB
large), you can unpack it with:
$ tar -xf Homo_sapiens_NCBI_GRCh38.tar.gz
Which Reference is Right for Me?
The key is to be consistent in your research. Switching from ENSEMBL
to UCSC will create many headaches because of the change in gene
identifiers, and differences in the gene models themselves. Often people
choose the one they’re most comfortable with, which is often a function
of historical accident. The key is not to overthink it.
Another important note is not to mix the sources. If you download
reference sequence from UCSC, don’t use an ENSEMBL GTF (and vice versa).
One of the quirky differences between the two databases is that ENSEMBL
refers to chromosome only by their number, i.e. 1
, whereas
UCSC refers to chromsomes as chr1
. This makes reference
FASTAs from one source incompatible with gene builds from another.
These materials have been adapted and extended from materials created
by the Harvard Chan
Bioinformatics Core (HBC). These are open access materials
distributed under the terms of the Creative Commons
Attribution license (CC BY 4.0), which permits unrestricted use,
distribution, and reproduction in any medium, provided the original
author and source are credited.
LS0tCnRpdGxlOiAiUmVmZXJlbmNlIEdlbm9tZXMiCmF1dGhvcjogIlVNIEJpb2luZm9ybWF0aWNzIENvcmUiCm91dHB1dDoKICAgICAgICBodG1sX2RvY3VtZW50OgogICAgICAgICAgICBpbmNsdWRlczoKICAgICAgICAgICAgICAgIGluX2hlYWRlcjogaGVhZGVyLmh0bWwKICAgICAgICAgICAgdGhlbWU6IHBhcGVyCiAgICAgICAgICAgIHRvYzogdHJ1ZQogICAgICAgICAgICB0b2NfZGVwdGg6IDQKICAgICAgICAgICAgdG9jX2Zsb2F0OiB0cnVlCiAgICAgICAgICAgIG51bWJlcl9zZWN0aW9uczogZmFsc2UKICAgICAgICAgICAgZmlnX2NhcHRpb246IHRydWUKICAgICAgICAgICAgbWFya2Rvd246IEdGTQogICAgICAgICAgICBjb2RlX2Rvd25sb2FkOiB0cnVlCi0tLQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgpib2R5eyAvKiBOb3JtYWwgICovCiAgICAgIGZvbnQtc2l6ZTogMTRwdDsKICB9CnByZSB7CiAgZm9udC1zaXplOiAxMnB0Cn0KPC9zdHlsZT4KCkluIHRoaXMgbW9kdWxlLCB3ZSB3aWxsIGxlYXJuOgoKKiB3aGF0IGEgcmVmZXJlbmNlIGdlbm9tZSBpcyBhbmQg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