Created
April 18, 2012 01:38
-
-
Save samesense/2410434 to your computer and use it in GitHub Desktop.
Grab hg19 positions in dbSNP that have unknown status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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