#!/usr/bin/env python #get_maps.py is a script for downloading maps of SNPs and STSs #from the International HapMap Project #Copyright (C) 2007 Daniel Shriner #This program is free software; you can redistribute it and/or #modify it under the terms of the GNU General Public License #as published by the Free Software Foundation; either version 2 #of the License, or (at your option) any later version. #This program is distributed in the hope that it will be useful, #but WITHOUT ANY WARRANTY; without even the implied warranty of #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #GNU General Public License for more details. #The text of the GNU General Public License, version 2, is available #as http://www.gnu.org/copyleft or by writing to the Free Software #Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. import sys,urllib #Retrieve the STS map file try: site = urllib.urlretrieve('http://www.hapmap.org/downloads/gbrowse/2005-11_phaseII/gff/stsMap.gff.gz','stsMap.gff.gz') except IOError: print >> sys.stderr, 'Error opening URL.\n' #Retrieve the dbsnp map file #try: # site = urllib.urlretrieve('http://www.hapmap.org/downloads/gbrowse/2005-11_phaseII/gff/dbsnp_b124_on_B34.gff3.gz','dbsnp_b124_on_B34.gff3.gz') #except IOError: # print >> sys.stderr, 'Error opening URL.\n'