Skip to content

Commit 566f6ab

Browse files
authored
Merge pull request #86 from carmarpe/master
Master
2 parents 897944a + f613563 commit 566f6ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scTE/base.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def checkCBUMI(filename,out,CB,UMI):
110110
if CB == 'CR':
111111
subprocess.run('samtools view %s | head -100| grep "CR:Z:" | wc -l > %s_scTEtmp/o1/testCR.txt'%(filename,out),shell=True)
112112
time.sleep(2) #subprocess need take some time
113-
o=open('%s_scTEtmp/o1/testCR.txt'%(out),'rU')
113+
o=open('%s_scTEtmp/o1/testCR.txt'%(out),'r')
114114
for l in o:
115115
l=l.strip()
116116
if int(l) < 100:
@@ -119,7 +119,7 @@ def checkCBUMI(filename,out,CB,UMI):
119119
elif CB == 'CB':
120120
subprocess.run('samtools view %s | head -100| grep "CB:Z:" | wc -l > %s_scTEtmp/o1/testCR.txt'%(filename,out),shell=True)
121121
time.sleep(2) #subprocess need take some time
122-
o=open('%s_scTEtmp/o1/testCR.txt'%(out),'rU')
122+
o=open('%s_scTEtmp/o1/testCR.txt'%(out),'r')
123123
for l in o:
124124
l=l.strip()
125125
if int(l) < 100:
@@ -129,7 +129,7 @@ def checkCBUMI(filename,out,CB,UMI):
129129
if UMI == 'UR':
130130
subprocess.run('samtools view %s | head -100| grep "UR:Z:" | wc -l > %s_scTEtmp/o1/testUMI.txt'%(filename,out),shell=True)
131131
time.sleep(2)
132-
o=open('%s_scTEtmp/o1/testUMI.txt'%(out),'rU')
132+
o=open('%s_scTEtmp/o1/testUMI.txt'%(out),'r')
133133
for l in o:
134134
l=l.strip()
135135
if int(l) < 100:
@@ -138,7 +138,7 @@ def checkCBUMI(filename,out,CB,UMI):
138138
elif UMI == 'UB':
139139
subprocess.run('samtools view %s | head -100| grep "UB:Z:" | wc -l > %s_scTEtmp/o1/testUMI.txt'%(filename,out),shell=True)
140140
time.sleep(2)
141-
o=open('%s_scTEtmp/o1/testUMI.txt'%(out),'rU')
141+
o=open('%s_scTEtmp/o1/testUMI.txt'%(out),'r')
142142
for l in o:
143143
l=l.strip()
144144
if int(l) < 100:

0 commit comments

Comments
 (0)