View source: R/organize_libraries_EI.R
extract_ri | R Documentation |
extract_ri
offers a way to extract experimental RI from the NIST
library if you have it installed.
extract_ri(ri_dat, user_dbu)
ri_dat |
The "ri.dat" file in the installation path (e.g., "~/Programs/nist17/mssearch/nist_ri"). |
user_dbu |
The "USER.DBU" file in the installation path (e.g., "~/Programs/nist17/mssearch/nist_ri") |
Once you have NIST library installed, there will be a "ri.dat" file in the installation path (e.g., "~/Programs/nist17/mssearch"). This file contains all experimental RI in the NIST library but it is not human readable. This function firstly convert the "ri.dat" file into a data.frame. However, it is tricky to link RI values in the cleaned RI table to compounds in the msp file. Providing that the "USER.DBU" file in the installation path (e.g., "~/Programs/nist17/mssearch") contains InChIKey of each compound in RI table, we can assign correspondent InChIKey to the RI table, but this file is not human readable. Therefore, this function secondly provides a way to clean the "USER.DBU" file and then assign correspondent InChIKey to the RI table.
A data.frame
containing experimental RI and InChIKey assigned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.