CpG sites are characterized by the occurence of a "C" nucleotide next to a "G" nucleotide in a DNA sequence. CpG stands for a cytosine (C), followed by a phosphate (p) and a guanosine (G). In a DNA sequence consecutive nucleotides are linked together by a phosphate. In mammals, most of the "C" nucleotides in CpG sites are methylated by DNA methyltransferases to form 5-methylcytosine. The methylation of cytosines within a gene can influence the gene expression. However, 5-methylcytosine is prone to deamination, which forms thymidine and leads to a conversion of CpG to TpG or CpA.
With an average GC content of 43 % of the human genome, one can estimate the expected CpG site frequency. However, the observed frequency is 5 times lower than the expected frequency of CpG dinucleotides. CpG islands are defined as genomic regions, in which the sequence is rich in CpG sites. These CpG islands are mainly unmethylated and therefore, the CpG dinucleotides are not so likely to convert to TpG or CpA sites. CpG islands are associated with the 5'ends, which represents the promotor region, of almost all housekeeping genes and many genes, with a regulatory function. It is estimated that 50-60 % of human and mouse genes are associated with CpG islands. CpG islands are often located at the 5'ends of a gene ( in the promotor region) and extend into the transcription unit of the gene. Therefore, CpG islands can be helpfull to identify the 5'ends of a gene.
A CpG island is classically defined as a region with minimum 200 basepairs, a GC content higher than 50 % and an observed-to-expected CpG ratio higher than 0.6.
EMBOSS also offers tools for CpG island prediction. Here, cpgplot and newcpgreport will be discussed. These two tools can be accessed through the EMBOSS web-interface (http://embossgui.sourceforge.net/demo/), Galaxy (https://usegalaxy.org/) or the command-line on the teaching server (bmw.gbiomed.kuleuven.be).

EMBOSS cpg

EMBOSS cpgplot newcpgreport
cpgplot ___
cpgplot identifies CpG islands by scanning the sequence with a fixed window-size and calculating the observed-to-expected CpG ratio, GC content in these sliding windows of fixed size. By default, cpgplot identifies a CpG island if it meets the characteristics of the classical definition: a minimum of 200 basepairs, GC content higher than 50 % and CpG ratio higher than 0.6. The default window length for cpgplot is 100 basepairs.
The necessary input format for cpgplot is a readable sequence format, such as FASTA format. Output can be generated in a report file, which includes sequence, set parameters and details of the identified CpG islands, and a graph file with a plot of CpG islands (.png. Also an output file with features (.gff) can be generated.
For more details; use the online manual (http://embossgui.sourceforge.net/demo/manual/cpgplot.html) or via the command-line:
cpgplot -h

cpgplot manual
newcpgreport
newcpgreport also identified CpG islands by scanning the sequence with a fixed window length. The same parameters, as with cpgplot, are calculated and a CpG island is defined if the classical definition for CpG islands is met. A nucleotide sequence is given as an input file. This tool only provides a report as an output file (.newcpgreport).
For more details; use the online manual (http://embossgui.sourceforge.net/demo/manual/newcpgreport.html) or via the command-line:
newcpgreport -h

newcpgreport manual
Since CpG islands can characterize transcription of predicted genes, we will aim to identify CpG islands in a genomic sequence because this will provide evidence for a transcriptionally active gene.
We will look for CpG islands in a 1 Mb region upstream of the human gene pyruvate kinase, which codes for a protein that is involved in the glycolysis pathway (HGNC symbol: PKLR; UCSC identifier: uc010pga.1).
Step 1: Download the sequence of a 1 Mb region upstream of the gene PKLR
Hints and tricks:
Step 2: Predict CpG islands in this sequence using the two EMBOSS tools via the command-line: cpgplot and newcpgreport (produce output files with both tools and a graph with cpgplot)
Specify all parameters, even if default settings are applied:
cpgplot -sequence PKLR_1Mb_upstream.fa -window 100 -minlen 200 -minoe 0.6 -minpc 50 -outfile PKLR_1Mb_upstream.cpgplot -graph png -outfeat PKLR_1Mb_upstream.gff
Three files are created: .cpgplot, .png and .gff
Step 3: Compare your findings with known CpG islands in a genome browser
Most genome browsers have a track with known CpG islands. Upload your CpG island predictions as a custom track (as a BED or GFF file) and compare with the CpG island track in the UCSC genome browser. Do the same for the Ensembl Genome Browser.
Hints and tricks:
First, before uploading, specify the correct chromosome in the first column and convert the locations in the GFF/BED file to the correct genomic locations via Microsoft Excel or the command-line:
cat PKLR_1Mb_upstream.gff | egrep -v '^#' | awk '{ print "chr1", $2, $3, $4+155270792, $5+155270792, $6, $7, $8, $9}' | tr ' ' '\t' > PKLR_1Mb_upstream_cpg_track.gffFor a detailed overview of the workflow, check:
Step 4: Write a python script to identify CpG islands in a user supplied sequence
Use the three criteria from cpgplot:
Observed/Expected ratio > 0.6
%C + %G > 50%
CpG island length > 200
The observed number of CpG dinucleotides in a window is represented by the number of "C" nucleotides followed immediately by a "G" nucleotide.
The expected number of CpG dinucleotides is calculated for each window as the number of CpG dinucleotides you would expect to in that window (here, you will not use a sliding window, use the full sequence as one window) based on the frequency of the nucleotides "C" and "G" in that window. Thus, the expected frequency of CpG's in a window is calculated as the number of "C" nucleotides in the window multiplied by the number of "G" nucleotides in the window, divided by the window length:
Expected = (number of C's * number of G's) / window length
Hints and tricks: