add new file to write clean output to
@@ -257,6 +257,7 @@ def run( args ):
f.close()
# cleaning up outputs:
+ f = open(options.name+"_cleaned_predictions.txt","w")
f.write("chromosome\tstart_pos\tend_pos\tpredicted_state\n")
start_pos = candidate_bins[0]
for i in range(len(predicted_proba)):
@@ -267,7 +268,7 @@ def run( args ):
elif i == len(predicted_proba)-1:
end_pos = candidate_bins[i]
f.write("%s\t%d\t%d\t%s\n" % (candidate_bins[l][0].decode(), start_pos, end_pos, label[i-1]) )
-
+ f.close()
#############################################
