List of genes TO starting and ending bps USING biomaRt R
1
0
Entering edit mode
5.0 years ago

I have list of genes in a text file, I want to get the starting and ending bps location using biomaRt R.

biomaRt R • 1.0k views
ADD COMMENT
4
Entering edit mode
5.0 years ago

You have all the tools you need in your question (gene list, get start location, biomaRt)

If you google it, the first link is what you are looking for : https://support.bioconductor.org/p/28470/

ADD COMMENT
2
Entering edit mode

Thank you for helping

gene_names=c("CYP3A5","CYP3A4")
mart<-useDataset("hsapiens_gene_ensembl",useMart("ensembl"))
getBM(c('hgnc_symbol','chromosome_name','start_position','end_position'),filters='hgnc_symbol',values=gene_names,mart)
ADD REPLY
2
Entering edit mode

You're welcome. Is this solve then ?

To read a list of gene inside a file you can use :

gene_names <- scan(file = "your_file.txt", sep = "\n")

If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted.

Upvote|Bookmark|Accept

ADD REPLY

Login before adding your answer.

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