Question: Map rs to gene symbol in python script
0
gravatar for leireahedo02
6 days ago by
leireahedo020 wrote:

I have snp ids (rs18008665, rs3212227...) Now, I want to map these snp ids to gene symbols using Python script. I have found similar post, but as I have recently started to learn programing and with no bioinformatics knowledge, I´m unable to create the python script which works. Any script example to use?

snp script python gene • 136 views
ADD COMMENTlink modified 6 days ago by Pierre Lindenbaum95k • written 6 days ago by leireahedo020

look at this post: Get gene names from rs SNP ids

ADD REPLYlink written 6 days ago by cpad01121.0k
0
gravatar for Pierre Lindenbaum
6 days ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum95k wrote:

using bash

$ wget  -O  - "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=snp&id=rs18008665&retmode=xml"  |\
xmllint --format --xpath  '//*[name(.)="FxnSet"]/@symbol' - |\
tr " " "\n" | sort | uniq | cut -d '"' -f 2
ADD COMMENTlink written 6 days ago by Pierre Lindenbaum95k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 814 users visited in the last hour