Description Usage Arguments Details Author(s) See Also Examples
A little wrapper function to run SplitPFAS on a csv file containing SMILES and other fields, optionally running InChIKey checks NOTE: some options only work for very specific files. Use with caution.
1 2 3 4 5 6 7 8 9 10 11 12 13 | splitPFAS.csv(
pfas_file,
splitPFAStools_name,
smarts_file,
babel_dir,
incl_image = TRUE,
smiles_col_index = 3,
SMILES_KeyCheck = TRUE,
func_group_col_index = 5,
Func_Group_KeyCheck = FALSE,
pfas_part_col_index = 6,
PFAS_Part_KeyCheck = FALSE
)
|
pfas_file |
Name of the CSV file containing at least one SMILES column |
splitPFAStools_name |
Name of the SplitPFAS jar. See |
smarts_file |
Name of the SMARTS file. See |
babel_dir |
Location of Open Babel dir. Needed for InChIKey checks. |
incl_image |
Whether to include image generation. See |
smiles_col_index |
Index of the column containing SMILES. Default 3. |
SMILES_KeyCheck |
Boolean to indicate if SMILES InChIKey check should be performed. |
func_group_col_index |
Index of column containing functional group. For validation only. |
Func_Group_KeyCheck |
Default |
pfas_part_col_index |
Index of column containing functional group. For validation only. |
PFAS_Part_KeyCheck |
Default |
Returns a csv file containing the SplitPFAS results.
Emma Schymanski <emma.schymanski@uni.lu>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | pfas_file <- system.file("extdata","PFAS_SplitSmiles_ExamplesExt.csv",package="RChemMass")
splitPFAStools_name <- "MetFrag2.4.5-Tools.jar"
smarts_file <- system.file("extdata","SplitPFAS_smarts.txt",package="RChemMass")
babel_dir <- "C:/Program Files/OpenBabel-2.4.1"
splitPFAS.csv(pfas_file, splitPFAStools_name, smarts_file, babel_dir,
incl_image = TRUE, smiles_col_index = 3, SMILES_KeyCheck = TRUE,
func_group_col_index = 5, Func_Group_KeyCheck = FALSE,
pfas_part_col_index = 6, PFAS_Part_KeyCheck = FALSE)
splitPFAS.csv(pfas_file, splitPFAStools_name, smarts_file, babel_dir,
incl_image = TRUE, smiles_col_index = 3, SMILES_KeyCheck = TRUE,
func_group_col_index = 5, Func_Group_KeyCheck = TRUE,
pfas_part_col_index = 6, PFAS_Part_KeyCheck = TRUE)
pfas_file <- system.file("extdata","Fluroseedset_1to30.csv",package="RChemMass")
splitPFAS.csv(pfas_file, splitPFAStools_name, smarts_file, babel_dir,
incl_image = TRUE, smiles_col_index = 5, SMILES_KeyCheck = TRUE,
Func_Group_KeyCheck = FALSE, PFAS_Part_KeyCheck = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.