-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake_overlap_three_probesets.py
43 lines (35 loc) · 1.09 KB
/
make_overlap_three_probesets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 13 16:11:30 2017
@author: lpsmith
"""
from __future__ import division
import lucianSNPLibrary as lsl
#from os import walk
#import math
#from os import mkdir
#from os import path
#import string
labels = {}
rev_labels = {}
print("Loading 2.5M v1.3, 2.5M v1.2, and 1M SNPs.")
labels["25Mv13"], rev_labels["25Mv13"] = lsl.getSNPLabels2_5M(True)
labels["25Mv12"], rev_labels["25Mv12"] = lsl.getSNPLabels2_5Mv12(True)
labels["1M"], rev_labels["1M"] = lsl.getSNPLabels1M(True)
all_out = open("probe_set_1_25_all.txt", "w")
all_out.write("Name\tChr\tPosition\n")
used_labels = set()
#used_locations = set()
for probeset in ["25Mv13", "25Mv12", "1M"]:
print("Starting probeset", probeset)
for label in labels[probeset]:
if label in used_labels:
continue
used_labels.add(label)
(chr, pos) = labels[probeset][label]
# if (chr, pos) in used_locations:
# continue
# used_locations.add((chr, pos))
all_out.write(label + "\t" + chr + "\t" + str(pos) + "\n")
all_out.close()