How to use the ms2pip.ms2pip_tools.spectrum_output.write_mgf function in ms2pip

To help you get started, we’ve selected a few ms2pip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github compomics / ms2pip_c / fasta2speclib / fasta2speclib.py View on Github external
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
            )