-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing SMARTS strings and correctness tests for
get_fx_groups()
(
#73) * re-named "hydroxyl_groups" to more specific "hydroxly_aliphatic" * add amides * add correctness tests using comparison with .csv * switch peroxide pattern to not pick up hydroperoxides, remove `rings` and add `rings_total` and `rings_aliphatic` * add hydroperoxide pattern * add nitroester pattern * re-order to match paper * add pattern for carbonylperoxyacid * add aromatic amine pattern * add TNT as good negative example for various nitrogen compounds * relax pattern for aromatic amine * (failed) attempt at nitrophenol pattern * smarts for non-aromatic carbon double bonds * update news * capture C=C-C=O in a non-aromatic ring * add ether variations * rename ether to ether_alkyl, use coalescing operator %||% to simplify code * ignore names * strip names from columns created by chemminer * fix aromatic ether pattern * fix hydroperoxide pattern to correct for peroxyacids * update NEWS * fix expected for L-DOPA * skip nitrophenols for now * use .data pronoun * add purrr to Suggests (for tests) * update list of groups not yet captured * add carbonylperoxynitrate * add nitrophenol pattern * add nitroester * update NEWS * use test_path() for easier interactive testing * check note * re-knit vignette * add fake compound for hydroxyl testing * change how ether_alkyl is calculated. Now uses total - ether_alicyclic - ether_aromatic instead of using pattern * improvements to test compounds * re-enable nitrophenol tests * rename carbon double bond column * add comments and test compounds for amines and aldehydes * add tests for all groups * fix sulfonate pattern * update news * improve sulfonate pattern more * fix colnames * add a compound already in a test
- Loading branch information
Showing
11 changed files
with
307 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ Imports: | |
httr2, | ||
KEGGREST, | ||
magrittr, | ||
rlang, | ||
purrr, | ||
stringr, | ||
tibble, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ export(mol_example) | |
export(simpol1) | ||
importFrom(grDevices,rgb) | ||
importFrom(magrittr,"%>%") | ||
importFrom(rlang,"%||%") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.