See the vignette vignette("RMassBank")
for detailed informations about the usage.Steps:
Step 1: Find which compounds don't have annotation information yet. For these
compounds, pull information from several databases (using gatherData).
Step 2: If new compounds were found, then export the infolist.csv and stop the workflow.
Otherwise, continue.
Step 3: Take the archive data (in table format) and reformat it to MassBank tree format.
Step 4: Compile the spectra. Using the skeletons from the archive data, create
MassBank records per compound and fill them with peak data for each spectrum.
Also, assign accession numbers based on scan mode and relative scan no.
Step 5: Convert the internal tree-like representation of the MassBank data into
flat-text string arrays (basically, into text-file style, but still in memory)
Step 6: For all OK records, generate a corresponding molfile with the structure
of the compound, based on the SMILES entry from the MassBank record. (This molfile
is still in memory only, not yet a physical file)
Step 7: If necessary, generate the appropriate subdirectories, and actually write
the files to disk.
Step 8: Create the list.tsv in the molfiles folder, which is required by MassBank
to attribute substances to their corresponding structure molfiles.