Trouble with Ensembl statistics
1
0
Entering edit mode
6 months ago
mailard • 0

Hello!

I need to know how many coding genes are in the Y chromosome. The first i try to filter gtf file with R using this code

#load gtf file
gtf <- rtracklayer::import('~/lapd/Index_hum/ann/Homo_sapiens.GRCh38.104.gtf')
gtf_df=as.data.frame(gtf)
##filter gtf file
library(dplyr)
gtf_filt= filter(gtf_df, type=='gene', gene_biotype == 'protein_coding')
chrY=filter(gtf_filt, chromosome_name == 'Y')

Thus, i found 46 coding genes. I thought that i had mistakes and try bioMart:

library(biomaRt)
ensembl = useMart("ensembl", dataset= "hsapiens_gene_ensembl")
new=getBM(attributes=c("chromosome_name","ensembl_gene_id"), filters='biotype', values=c('protein_coding'), mart=ensembl)
 chrY=filter(new, chromosome_name == 'Y')

And found 46 coding genes too. When I try to compare a number of protein-coding genes in ensemble statistics and my annotation file from ensemble i found the second trouble. In Ensembl statistics (http://www.ensembl.org/Homo_sapiens/Location/Genome?r=MT) 20,442 coding genes and in annotation files 19,937.

When do I have mistakes? Or its normal)

coding ensembl genes chromosomes • 369 views
ADD COMMENT
0
Entering edit mode

Y chromosome shows `64 protein coding genes.

enter image description here

ADD REPLY
1
Entering edit mode
6 months ago
Emily 23k

Do you mean this page which is the summary for Y, stating 64 coding genes on Y.

The discrepancy of 18 genes is due to the PAR. The genes on the PAR are stored on the X chromosome then the underlying code makes them appear on Y on the website and will come through when you use the APIs. However when you make direct searches of Y through BioMart or in the GTF files, you will only get the non-PAR genes.

ADD COMMENT
0
Entering edit mode

Thank you!

ADD REPLY

Login before adding your answer.

Traffic: 2235 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