Move SMARTS patterns to a .csv file #114
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This closes #112 by moving the SMARTS patterns previously defined in
get_fx_groups.R
into a .csv file indata-raw/
. This csv file is used to build a user-facing data set and add a named vector of SMARTS patterns to the package internal data for use inget_fx_groups()
.The user-facing data.frame,
smarts_simpol1
documents the column name in the output of get_fx_groups(), SMARTS pattern (if applicable), the function or calculation used to count the functional group, and any notes about how counts are corrected or what the pattern captures.The internal dataset,
smarts_patterns_simpol1
replaces all the SMARTS patterns defined in get_fx_groups().