This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to download datasets from Snpedea.com

Hi folks, I would appreciate it if could help me to download datasets of Snpedea.com. I have searched 'skin' in the web site

I want to download all rs that apeared in the search? How can I download it by python or whatever?

snp

I have run the python code mentioned in Bulk. But it shows this error:

URLError: <urlopen error [Errno -2] Name or service not known> trying request again in 10 seconds

Here is the code:

from wikitools import wiki, category

site = wiki.Wiki("http://bots.snpedia.com/api.php")                  # open snpedia
snps = category.Category(site, "Is_a_snp")
snpedia = []

for article in snps.getAllMembersGen(namespaces=[0]):   # get all snp-names as list and print them
    snpedia.append(article.title.lower())
    print article.title

0 answers

No answers yet.

Log in to answer this question.