Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def basecall_file(fname, event_detect=True):
"""Peform a basecall from a file.
:param fname: .fast5 file to basecall.
:param event_detect: perform event detection (else use
pre-existing events in file.
:returns: tuple (score, basecall).
"""
score, basecall = 0, ''
try:
results = pyscrap.basecall_file(fname, event_detect=event_detect)
if results is not None:
score, basecall = results
except:
pass
return score, basecall