View source: R/organize_libraries_EI_and_MS2.R
assign_smiles | R Documentation |
assign_smiles
offers a way to assign SMILES to the library obtained
from NIST format (exported by Lib2NIST with structure information separately
stored in mol files).
assign_smiles(lib, structure_data, match = "name")
lib |
The library generated by |
structure_data |
the correspondent structure data generated by
|
match |
Correspondence can be done by either "name" or "inchikey". |
The msp file obtained from Lib2NIST has no SMILES and the structure
information is stored in multiple mol files. After transforming all mol files
into a single sdf file by combine_mol2sdf
and retrieving structure
information by extract_structure
, SMILES is available. This function
provides a way to assign SMILES to correspondent compound in the msp file.
If you are working with Linux-based or Mac OS system, it is better to use
"inchikey" for matching. However, if you are working with Windows, the only
option is to use "name" for matching, which is a kind of compromise as
some chemicals in the *.mol files do not have full chemical names. Hence they
will not be matched. This function is useful for both EI and MS2 libraries.
This function supports parallel computing.
A list
with SMILES assigned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.