complete_gnps: Add formula to the gnps library and remove wrong SMILES

View source: R/organize_libraries_MS2.R

complete_gnpsR Documentation

Add formula to the gnps library and remove wrong SMILES

Description

complete_gnps offers a way to complete the molecular formula filed in the mgf file.

Usage

complete_gnps(lib)

Arguments

lib

The list generated by read_lib from mgf library.

Details

The mgf file downloaded from GNPS has no molecular formula (MF). Therefore, this function tries to calculate the MF from the SMILES (if it exists).

Value

A list with molecular formula assigned


QizhiSu/mspcompiler documentation built on May 7, 2024, 4:25 a.m.