Skip to content

Commit 4eee179

Browse files
committed
Added code to compute confidence bounds
1 parent 5bc4f96 commit 4eee179

File tree

8 files changed

+403
-476
lines changed

8 files changed

+403
-476
lines changed

Experiments/Summarize_Findings/Cluster_Evaluation_Utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,11 @@ def Compute_Fragmentation_Measure(cluster_list, clust_thresh=0):
9393
def Parse_DNACLUST_Outputs(filepath):
9494
dnaclust_counts = open(filepath,'r').readlines()
9595
dnaclust_size = []
96-
for d in dnaclust_counts:
97-
d = d.rstrip()
98-
if len(d.split()) >= 2:
99-
dnaclust_size.append(len(d.split()))
96+
with open(filepath) as fileobject:
97+
for d in fileobject:
98+
d = d.rstrip()
99+
if len(d.split()) >= 2:
100+
dnaclust_size.append(len(d.split()))
100101
return dnaclust_size
101102

102103
def Parse_CDHIT_Outputs(filepath):

0 commit comments

Comments
 (0)