Skip to content

Commit

Permalink
Fix label channels bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gmiclotte committed Sep 16, 2021
1 parent d0f9e68 commit ff7d062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omsim/src/omsim/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def merge_bnx(out_bnx, in_bnxs):
idx = 0
for line in headers[0]:
if line[:16] == '# Label Channels':
out_bnx_file.write('# Label Channels:\t' + ','.join([str(label + 1) for label in range(0, len(in_bnxs))]) + '\n')
out_bnx_file.write('# Label Channels:\t' + str(len(in_bnxs)) + '\n')
elif line[:28] == '# Nickase Recognition Site 1':
for label in range(0, len(in_bnxs)):
out_bnx_file.write('# Nickase Recognition Site ' + str(label + 1) + headers[label][idx][28:])
Expand Down

0 comments on commit ff7d062

Please sign in to comment.