How to convert chromosome locations to gene symbols?
2
0
Entering edit mode
11 months ago
sooni ▴ 20

Hi.

I wonder how to convert chromosome locations to gene symbols.

An example of chromosome locations name is 'chr1: 44959708-45072070'. There are many chromosome locations.

I want the chromosome location names to gene symbols.

Should I use 'biomaRt' package? If I need to use the 'biomaRt' package, how can I change the example chromosome location name to a gene symbol?

Please help me.

symbol location chromosome gene • 1.3k views
ADD COMMENT
0
Entering edit mode

possibly bedtools intersect with a gff file

ADD REPLY
1
Entering edit mode
11 months ago
Trivas ★ 1.7k

Here's an R solution using biomaRt To Get All Genes Within A Genomic Region

ADD COMMENT
2
Entering edit mode
11 months ago

A solution:

wget -q -O - "https://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/release_43/gencode.v43.annotation.gtf.gz" |\
gunzip -c |\
awk -F '\t' '($3=="gene" && $1=="chr1" && !(int($4)>45072070 || int($5)<44959708))' | cut -f 9 |\
tr ";" "\n" | grep -Fw gene_name | cut -d '"' -f 2 | sort | uniq
EIF2B3
HECTD3
MRPS17P1
OSTCP5
PPIAP35
UROD
ZSWIM5
ADD COMMENT
0
Entering edit mode

Oh, I'm sorry. I am analyzing in R. Do you know how to convert chromosome location to gene symbol in R?

ADD REPLY

Login before adding your answer.

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