Description Usage Arguments Value Author(s) See Also Examples
View source: R/MetFragConfigR.R
This is a small wrapper function to patch CSV files that are missing some InChIKey entries, using Cactus then Open Babel to fill gaps from SMILES.
1 | addMissingInChIKeys.CSV(csv_file, inchikey_col_number, smiles_col_number, babel_dir, write=TRUE, csv_file_out="")
|
csv_file |
Full path and file name to CSV file to fill in InChIKey gaps |
inchikey_col_number |
Column number of the column containing InChIKeys to check/fill |
smiles_col_number |
Column number of the SMILES code needed to calculate missing InChIKeys |
babel_dir |
Path to the directory containing |
write |
If |
csv_file_out |
Full path and file name of output CSV, define to avoid overwriting the original file. |
Returns path and file name to CSV file with fixed entries (if necessary) or list of InChIKeys.
Emma Schymanski <emma.schymanski@uni.lu>
getInChIKey.obabel
, getCactus
, InChIKey_test
1 2 3 | testCSV <- system.file("extdata","CompToxBatchSearch_MetFrag_MSready_C10H14N2_wSelectMetaData.csv",package="ReSOLUTION")
babel_dir <- "C:/Program Files (x86)/OpenBabel-2.3.2"
InChIKeys <- addMissingInChIKeys.CSV(testCSV,13,5,babel_dir,write=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.