-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-tools.py
More file actions
63 lines (48 loc) · 1.02 KB
/
test-tools.py
File metadata and controls
63 lines (48 loc) · 1.02 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import sys
import hapfilt
bamFileName = '/home/jmkidd/links/dcmb-brainsom/technical/working/20170601_10x_bam_longranger/brain.bam'
#SNVval1 1 228475850 . A G chr1:228475791-228476023
chrom = '1'
pos = 228475850
ref = 'A'
alt = 'G'
chrom = '19'
pos = 4510979
ref = 'A'
alt = 'C'
#SNVval7 6 163235167 . T
chrom = '6'
pos = 163235167
ref = 'T'
alt = 'C'
#counts = hapfilt.count_site(bamFileName,chrom,pos,ref,alt)
#print counts
#nl = [chrom,pos,ref,alt]
#for i in counts:
# nl.extend(i)
#nl = [str(j) for j in nl]
#print nl
chrom = '16'
pos = 30795009
ref = 'A'
alt = 'T'
counts = hapfilt.count_site(bamFileName,chrom,pos,ref,alt)
print counts
nl = [chrom,pos,ref,alt]
for i in counts:
nl.extend(i)
nl = [str(j) for j in nl]
print nl
#22 50502469 . A G
print 'next'
chrom = '22'
pos = 50502469
ref = 'A'
alt = 'G'
counts = hapfilt.count_site(bamFileName,chrom,pos,ref,alt)
print counts
nl = [chrom,pos,ref,alt]
for i in counts:
nl.extend(i)
nl = [str(j) for j in nl]
print nl