Hi everyone,
I am trying to extract all Y chromosome genes from the mus musculus C57/B6 genome dataset ("mc57bl6nj_gene_ensembl") using biomaRt in R. The purpose is to create a list so I can extract Y chromosome gene counts later in my single-cell analysis pipeline.
My code worked successfully for extracting X chromosome genes (below).
However, I noticed that the only values for the filter "chromosome_name" are chromosomes 1-19 and chromosome X. When I tried a value "Y" instead, I got 0 entries.
library("biomaRt")
mc57bl6nj = useMart("ENSEMBL_MART_MOUSE",
dataset="mc57bl6nj_gene_ensembl")
mc57bl6nj_x_genes <- getBM(attributes="external_gene_name", filters = "chromosome_name", values = "X", mart = mc57bl6nj)
head(mc57bl6nj_x_genes)
dim(mc57bl6nj_x_genes)
Do you know why the "Y" chromosome is missing? Is there another way I can extract all Y chromosome genes?
PS, first post; apologies for any formatting issues. Also new to genome science in general.
Thanks!
From,
Eva
biomart
r
genome
sequence
gene