Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
output_filename="{}_unmodified".format(params['output_filename']),
write_mode=write_mode,
)
"""
logging.info("Writing MSP file")
spectrum_output.write_msp(
all_preds,
peprec_batch,
output_filename="{}".format(params['output_filename']),
write_mode=write_mode,
)
if 'mgf' in params['output_filetype']:
logging.info("Writing MGF file")
spectrum_output.write_mgf(
all_preds,
peprec=peprec_batch,
output_filename="{}".format(params['output_filename']),
write_mode=write_mode
)
if 'bibliospec' in params['output_filetype']:
logging.info("Writing BiblioSpec SSL and MS2 files")
spectrum_output.write_bibliospec(
all_preds,
peprec_batch,
ms2pip_params,
output_filename="{}".format(params['output_filename']),
write_mode=write_mode
)