Skip to content

Instantly share code, notes, and snippets.

@samesense
Created April 18, 2012 01:38
Show Gist options
  • Save samesense/2410434 to your computer and use it in GitHub Desktop.
Save samesense/2410434 to your computer and use it in GitHub Desktop.
Grab hg19 positions in dbSNP that have unknown status
def get_dbsnp_unknown():
snvs = {}
with open('/vol/Users/yk336/database/human/dbsnp/hg19/snp.txt') as f:
for line in f:
sp = line.strip().split('\t')
chrom = sp[1]
pos = sp[3]
status = sp[12]
snv_type = sp[11]
if status == 'unknown' and snv_type == 'single':
snvs[chrom + ':' + pos] = True
return snvs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment