How to avoid annotating multiple genes to a single CpG locus?
1
0
Entering edit mode
5.9 years ago
Mathias ▴ 90

I am downloading TCGA DNA methylation data using TCGAbiolinks. The rowData() function output looks a bit messy; all ensembl ids with which a cpg overlaps are joined together in one cell, just like the hgnc symbols and gene types.

I want to just provide one column with protein coding gene hgnc symbols to my data. this is my biomaRt query:

getBM(attributes=c("hgnc_symbol","chromosome_name","start_position","end_position"),
               filters=c("chromosome_name","biotype"),
               values=list(chromosome_name=c(1:22,"X","Y"),biotype="protein_coding"),
               mart=ensembl) # ensembl human genes

I'm using GRanges findOverlaps to find genes in which the CpGs are located. When I now join the genes to my CpGs, and use the table function to inspect my CpGs, I can see that a lot of CpGs are 'located in multiple genes'.

For example, one CpG is located in PCDHGC(5,4,3) and so on - I end up with about 5K genes in which about 20k cpgs are located at least twice, some CpGs are annotated over 20 different genes.

I'm already filtering on protein coding genes, using hgnc symbols, are there other filters I can use to find exactly 1 gene at a specific locus?

biomart r TCGAbiolinks dna annotation • 1.7k views
ADD COMMENT
2
Entering edit mode
5.9 years ago
Mike Smith ★ 2.0k

I think this is non-trivial. If you look at your PCDHGC example (http://www.ensembl.org/Homo_sapiens/Location/View?db=core;g=ENSG00000240184;r=5:141475207-141513719) Ensembl has multiple genes spanning the same region. I don't know the reasoning behind why these are separate genes rather than transcripts, but your biomaRt query is always going to return all of them as they have unique gene IDs, and then the a CpG loci will intersect all of them.

I guess you could run findOverlaps() on the list of genes first, to find examples like this, and then only keep the the largest versions, but you'll obviously lose some level of information doing this.

ADD COMMENT

Login before adding your answer.

Traffic: 1503 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6