Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main branch for tcpl v3.2 CRAN release #300

Merged
merged 312 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
312 commits
Select commit Hold shift + click to select a range
ebbd6ee
updated tcplLoadData qformat string for new columns
cthunes Aug 21, 2023
38d0eef
removed mc5 tcplQuery with old summary stats
cthunes Aug 21, 2023
e3c2585
added back tcplQuery to mc5 with new columns
cthunes Aug 21, 2023
c4a9a61
62 fixed level 5 for load data with new summary stats
cthunes Aug 22, 2023
bf1bd4f
127 updated 3 mc6 flags for nmed_gtbl reasons
cthunes Aug 22, 2023
890e88d
updated no.med.gt.3bmad to use nmed_gtbl_pos and _neg
cthunes Aug 22, 2023
e3e4a4e
updated mc6 flags to consider new summary stats
cthunes Aug 23, 2023
39ff5a5
added new mc6 flag (no.med.fit.dir.gt.3bmad) which considers directio…
cthunes Aug 23, 2023
fcb25e3
fixed new flag to correctly flag those while ignoring the incorrect f…
cthunes Aug 23, 2023
650a0d6
updated descriptions for no.med.gt.3bmad and no.med.single.dir.gt.3bmad
cthunes Aug 23, 2023
8173fc8
modified old method to allow only specific models (#138)
brown-jason Sep 7, 2023
7c99782
77 added line to tcplCytoPt function to prevent null chid
cthunes Sep 12, 2023
7d7c202
113 added dependency for ungroup
cthunes Sep 8, 2023
81df101
merging
brown-jason Sep 28, 2023
88055bf
resolving merge conflicts
brown-jason Oct 2, 2023
4e731c9
92 added sc plotly plot
cthunes Oct 3, 2023
6049f5b
92 fixed max med line hover text
cthunes Oct 3, 2023
5196e8b
92 sc console output, neg cutoff when max_med is negative
cthunes Oct 3, 2023
98365cd
142 added level 6 flags to tcplPlot output by boolean flag
cthunes Oct 5, 2023
01ce732
Merge branch '92-update-tcplPlot-sc-plotting' into 142-add-flags-in-t…
cthunes Oct 5, 2023
f1317a7
Merge pull request #153 from USEPA/142-add-flags-in-tcplPlot-output
cthunes Oct 5, 2023
3796468
147 cleaned up mc6 flag descriptions
cthunes Oct 11, 2023
9fcc0d8
Merge pull request #157 from USEPA/147-clean-up-mc6-flag-descriptions
cthunes Oct 11, 2023
99539dd
Merge pull request #139 from USEPA/128-subset-chid-export_ready-false
madison-feshuk Oct 11, 2023
efeccc1
60 remove subset by wllt in mc4.R
cthunes Oct 11, 2023
aaefcd8
149 removed lvl parameter from tcplPlot, assigned by type now
cthunes Oct 12, 2023
3553b77
Merge pull request #159 from USEPA/149-remove-lvl-paramter-tcplPlot
cthunes Oct 12, 2023
f4787e8
148 added y-axis scaling, currently sets min/max to -100/100
cthunes Oct 12, 2023
cfedc3d
148 improved y axis scaling to be custom and flexible
cthunes Oct 13, 2023
7b74edb
148 update docs with new parameters
cthunes Oct 13, 2023
ffc9b57
Merge pull request #158 from USEPA/60-update-processing-for-control-d…
cthunes Oct 13, 2023
85e15bb
Merge pull request #160 from USEPA/148-add-y-axis-scaling
cthunes Oct 13, 2023
81714b4
142 added number of flags to output of flags
cthunes Oct 16, 2023
2610d0d
151 cran 310 release (#152) (#156)
brown-jason Oct 17, 2023
45af973
Merge branch 'dev' into 92-update-tcplPlot-sc-plotting
brown-jason Oct 17, 2023
4a88d5b
142 improved margins for flags in caption
cthunes Oct 17, 2023
6da5252
Merge branch '92-update-tcplPlot-sc-plotting' of https://github.com/U…
cthunes Oct 17, 2023
1581253
57 initial compare functionality setup -- unstable
cthunes Nov 1, 2023
033e836
148 changed y-axis override to always override, and then outlier plot…
cthunes Nov 1, 2023
a59ec8b
Merge pull request #143 from USEPA/5-padilla-phase-iii-sc-mthds
madison-feshuk Nov 20, 2023
5e67de4
57 multi conc compare by m4id
cthunes Nov 22, 2023
c37ade3
57 remove scale_color_hue import, need to remove from NAMESPACE
cthunes Nov 22, 2023
8ab5bf7
165 update the model types in ow mc5 methods for plotting
cthunes Nov 22, 2023
5e975ce
Merge pull request #167 from USEPA/165-update-model-types-for-ow-bidi…
cthunes Nov 22, 2023
060d1bd
148 removed requirement that yuniform must be TRUE for yrange to take…
cthunes Nov 22, 2023
e8e8187
165 add model_type to loadData and handling in tcplPlot for coff dire…
cthunes Nov 22, 2023
503192b
148 improved yuniform determined yrange with model_type parameter
cthunes Nov 22, 2023
10a1a85
148 automatic yrange now considers all cutoffs based on model_type
cthunes Nov 22, 2023
0cbfb4b
remove browser()s
cthunes Nov 22, 2023
674fd2e
Merge branch '57-add-tcplPlot-compare-parameter' into 92-update-tcplP…
cthunes Nov 27, 2023
ac73602
Merge pull request #168 from USEPA/92-update-tcplPlot-sc-plotting
cthunes Nov 27, 2023
aa09caa
57 update docs - remove scale_color_hue
cthunes Nov 27, 2023
0825cbc
57 add single conc compare plots
cthunes Nov 28, 2023
dc0ffb8
165 fix for = error on build
cthunes Nov 28, 2023
8837b60
Merge pull request #171 from USEPA/165-update-model-types-for-ow-bidi…
cthunes Nov 28, 2023
5fac9a9
Merge branch 'main' into dev
brown-jason Nov 29, 2023
f91399b
Revert "Merge branch 'main' into dev"
brown-jason Nov 29, 2023
08c3859
Revert "Revert "Merge branch 'main' into dev""
brown-jason Dec 1, 2023
617230b
57 update console plotting with compare ability
cthunes Dec 2, 2023
c362749
57 tested console plotting and resolved regressed tests
cthunes Dec 5, 2023
6821ee3
Merge pull request #174 from USEPA/57-add-tcplPlot-compare-parameter
cthunes Dec 6, 2023
2fd8bfb
164 logc (#177)
brown-jason Dec 7, 2023
8e6fdf2
update bmd bounds (#170)
brown-jason Dec 12, 2023
b96c7de
Merge branch 'dev' into 92-update-tcplPlot-sc-plotting
cthunes Dec 12, 2023
f3c72e9
switched to logc in sc1 and sc2 (#179)
brown-jason Dec 12, 2023
995cab1
update logc to conc for sc plotting
cthunes Dec 12, 2023
7df38ec
set all b and n wells to 0 conc and after check for any remaining nul…
brown-jason Dec 14, 2023
ed2a11a
added modified_by to the new schema lvl 4 write function (#183)
brown-jason Dec 14, 2023
8608e51
187 sc logc conc (#188)
brown-jason Dec 20, 2023
e9b1fed
fixed single conc loading and model_type bugs
cthunes Dec 21, 2023
ae778c8
fix geom_function error, spelling mistake
cthunes Dec 21, 2023
8b875fa
improved range for horizontal lines to be outside concentration bounds
cthunes Dec 21, 2023
89ef67e
fix verbose=FALSE ggplots device error
cthunes Dec 22, 2023
06bd9a2
change default axis type to linear when 0 concs are present, fixes lo…
cthunes Dec 28, 2023
2e6a791
for compare ggplots, change default axis type to linear for 0 concs
cthunes Dec 28, 2023
3517623
fixed bug to preserve user given order rather than sorted automatically
cthunes Dec 28, 2023
bfeddf2
added ability for one to many comparisons, bug fix and small check
cthunes Dec 29, 2023
bf750a9
fix first arg length > 1 error with get(fld) for flds longer than 1
cthunes Jan 3, 2024
8e0f5d5
163 created single direction sc methods and updated sc2.R for them
cthunes Jan 5, 2024
346cdef
163 rotated hitc overwrites to occur after max_med set to true value …
cthunes Jan 10, 2024
2af4443
Merge pull request #146 from USEPA/92-update-tcplPlot-sc-plotting
cthunes Jan 10, 2024
1eb7c5c
163 removed extra methods and added logic to sc2 instead; updated docs
cthunes Jan 10, 2024
65d25cf
folded osd calculation into bmad methods (#194)
brown-jason Jan 18, 2024
6a24a5c
173 overhaul tcpl load data for backwards compatibility (#191)
cthunes Jan 30, 2024
7117804
196 overwrite osd during hitcalling (#199)
brown-jason Jan 30, 2024
10b2190
add toxref-aed comparison section
madison-feshuk Feb 13, 2024
5dd1d25
replace tcplQuery statement
madison-feshuk Feb 13, 2024
1d1ec1f
204 fixed tcplLoadData space bug and tcplPlot order bug
cthunes Feb 22, 2024
89d6646
207 added errfun to params
cthunes Feb 28, 2024
61aead7
Merge pull request #205 from USEPA/204-plotting-error-in-sc-related-t…
cthunes Feb 28, 2024
b98d10c
207 added saving errfun to mc4 params and including the saved value i…
cthunes Mar 1, 2024
1e91a8b
207 Added default for mc4 errfun if tcplfit2_core does not return an …
cthunes Mar 1, 2024
e6cd4c0
Merge pull request #195 from USEPA/163-create-single-direction-sc-met…
madison-feshuk Mar 5, 2024
963ed3f
Merge pull request #209 from USEPA/207-investigate-level-5-mutate-pro…
cthunes Mar 5, 2024
fe0ba0b
address reviewer comments
madison-feshuk Mar 5, 2024
d2e3c5b
adjust formatting of longer code chunks
madison-feshuk Mar 5, 2024
0b498ca
202 integrated API into tcplConf and tcplLoadData
cthunes Mar 18, 2024
a362888
202 update docs and load_data_columns data to invitrodb v4.1
cthunes Mar 18, 2024
5166665
202 changed loadData to use _batch function from ccdR and updated docs
cthunes Mar 19, 2024
5422e19
202 created tcplQueryAPI function for use with "data" resource
cthunes Mar 19, 2024
1d219d9
202 reworked tcplQueryAPI to pull from all assays or just by aeid
cthunes Mar 20, 2024
5203bf5
202 reshuffled tcplLoadData api code to make use of the return_flds p…
cthunes Mar 20, 2024
63da83b
202 added chunk to tcplLoadAeid to load from API data using tcplQueryAPI
cthunes Mar 20, 2024
9ad97f8
202 added check/default for tcplConf API driver, 'pass'/'host' respec…
cthunes Mar 20, 2024
d820314
216 initial 4.1 logc compatibility in tcplPlot
cthunes Mar 22, 2024
5130a64
add ecotox-seqapass case study info: to be presented at NAMs workshop
madison-feshuk Mar 26, 2024
d2a0bb1
fix knit error and some text
madison-feshuk Mar 26, 2024
6d42875
remove RMySQL references
madison-feshuk Mar 26, 2024
0f73854
202 unnest and filter level 6, convert tibbles to data tables
cthunes Mar 27, 2024
8108fbc
202 checks, warnings, errors, and multiple field filtering
cthunes Mar 27, 2024
455dc65
220 update mc6 methods to use model_type, update descs, remove no.med…
cthunes Mar 29, 2024
aacdb6e
Merge pull request #201 from USEPA/17-add-toxref-toxcast-aed-vignette
madison-feshuk Apr 2, 2024
e9e2f59
202 added imports, made fixes to be up to date with CRAN ccdr version
cthunes Apr 2, 2024
d3b09b1
Merge pull request #221 from USEPA/202-integrate-ccdR-into-tcplLoadData
cthunes Apr 8, 2024
0e61680
216 add changes for <4.2 backwards compatible SubsetChid (logc/conc)
cthunes Apr 9, 2024
d64dad1
216 added version error message to various plotting functions
cthunes Apr 9, 2024
c30a440
220 updated flag descriptions
cthunes Apr 9, 2024
d741ac0
Merge pull request #225 from USEPA/216-backwards-compatibility-checks…
cthunes Apr 9, 2024
4f2a848
161/82 investigate combined sc-mc output: tcplVarMat() overhaul
cthunes Dec 19, 2023
d31df75
161 updated tcplVarMat to produce a verbose version of ac50/acc matrices
cthunes Dec 20, 2023
d21b0b7
226 fixed both ggplot functions for winning modl 'none'
cthunes Apr 9, 2024
8d11789
172 chemicals not registered should not show NA for dtxsid and chnm
cthunes Apr 10, 2024
e7d0a2b
226 added catch-all for well types which were not already specified
cthunes Apr 10, 2024
e40eb33
Merge pull request #222 from USEPA/220-update-mc6_methods.R-to-accoun…
cthunes Apr 10, 2024
f47d5c1
fix console compare plot bug
cthunes Apr 10, 2024
10732c9
better solution for console-compare bug
cthunes Apr 10, 2024
8b63904
small change to prevent warnings and improve output for single compare
cthunes Apr 10, 2024
e87a509
Merge pull request #229 from USEPA/226-tcplPlot-fails-when-winning-mo…
cthunes Apr 12, 2024
31b8129
Added description and plot of biphasic poly2 to table 7 and figure 2;…
gracezhihuizhao Apr 12, 2024
7a48fd4
check for rmysql and unload if in namespace (#214)
brown-jason Apr 15, 2024
84c2c91
231 add initial api data retrieval vignette with json api responses
cthunes Apr 17, 2024
c83eb4c
- Added descriptions for method fc0.25 and pc40
Ashley-Ko Apr 18, 2024
16613fc
Added description for osd_coff_bmr from what is listed in invitrodb.m…
Ashley-Ko Apr 18, 2024
6427c57
Upodated manual to reflect new mc5 methods.
Ashley-Ko Apr 18, 2024
261b7ef
Merge branch 'dev' of https://github.com/USEPA/CompTox-ToxCast-tcpl i…
gracezhihuizhao Apr 18, 2024
b45fcbf
Merge pull request #239 from USEPA/211-add-fc025-mc5-cutoff-method-fo…
Ashley-Ko Apr 18, 2024
33bfe6f
Updated the plottings with updated mc_vignette object.
gracezhihuizhao Apr 18, 2024
78a8ab6
Merge pull request #186 from USEPA/161-investigate-combined-sc-mc-out…
cthunes Apr 18, 2024
b2d3c24
Re-created mc_vignette example data sets.
gracezhihuizhao Apr 18, 2024
d2c6998
231 added tables to vignette and other small updates
cthunes Apr 18, 2024
555399a
Standalone Plotting (and comparison between versions of invitrodb) (#…
brown-jason Apr 30, 2024
28b92bf
243 update blineshift and related methods (#245)
cthunes May 1, 2024
4c7fe0c
233 expand ccd r integration into tcpl load funcs (#246)
cthunes May 1, 2024
0f11ff3
235 refactored tcplPlot + utils to support API plotting
cthunes May 13, 2024
0424f9e
247+248 fixed wllt with sc and obscure well types bug
cthunes May 15, 2024
e28322f
Resolve newfound order bug with single conc plotting
cthunes May 15, 2024
4f25d60
206 improve cutoff direction for sc, wllt output fix for length > 1
cthunes May 17, 2024
e16ae5c
moved away from using tcplPrepOtpt with API plotting
cthunes May 17, 2024
b2326c2
limit wllt check to non-API usage, add back output for single wllt
cthunes May 17, 2024
6c951dc
remove this file from the main tree
gracezhihuizhao May 21, 2024
d812443
made some textual edits to the paragraphs describing biphasic poly2 a…
gracezhihuizhao May 21, 2024
e94c1d3
231 add initial api data retrieval vignette with json api responses
cthunes Apr 17, 2024
242b338
231 added tables to vignette and other small updates
cthunes Apr 18, 2024
43c28c6
Merge branch '231-add-data-retrieval-via-API-vignette' of https://git…
cthunes May 21, 2024
66aeaa7
Update tcplPlotUtils.R
cthunes May 23, 2024
1c3131c
231 add rest of tcplLoadXxxx functions and plotting examples
cthunes May 23, 2024
b347703
235 fixes to support standalone-compare API plotting
cthunes May 23, 2024
6b41516
235 Fix unnest to include flags, exclude m4id, add is.null(flag) check
cthunes May 24, 2024
04a2c33
231 added standalone plot image
cthunes May 24, 2024
1a703f1
218 update tcplConfDefault to use API
cthunes May 24, 2024
1bd093d
231 added tcplLoadChem section and improved some text
cthunes May 24, 2024
ff8d7cb
235 add if flags == TRUE
cthunes May 24, 2024
c7bc7e6
235 added tidyr unnest import and ran devtools::document
cthunes May 24, 2024
a7dda6a
Added sc1 method bval.nwlls.med
Kelly-Carstens-EPA May 24, 2024
986facd
fixed order bug, now with use in list or non-list 'val'
cthunes Jun 4, 2024
216e7d4
Remove line for ccdR fix, to be merged to dev soon
cthunes Jun 5, 2024
d613ecd
231 Fixed some wording/grammar issues
cthunes Jun 10, 2024
67c8622
230 added example to save to file
cthunes Jun 10, 2024
b9ec85f
230 ran devtools::document()
cthunes Jun 10, 2024
bc90593
Merge pull request #257 from USEPA/235-247-248-206-API-plotting-and-b…
cthunes Jun 10, 2024
80f439f
230 updated docs
cthunes Jun 10, 2024
1bece41
Added sc1 method description for bval.nwlls.med
Kelly-Carstens-EPA Jun 17, 2024
684216b
Merge pull request #261 from USEPA/258-add-sc1-method-for-bval-by-wllt
Kelly-Carstens-EPA Jun 17, 2024
9307ad1
231 add initial api data retrieval vignette with json api responses
cthunes Apr 17, 2024
003e8de
231 added tables to vignette and other small updates
cthunes Apr 18, 2024
e8d2ebc
231 add rest of tcplLoadXxxx functions and plotting examples
cthunes May 23, 2024
6db687b
231 added standalone plot image
cthunes May 24, 2024
b21f280
218 update tcplConfDefault to use API
cthunes May 24, 2024
8b1e560
231 added tcplLoadChem section and improved some text
cthunes May 24, 2024
e100ccf
231 Fixed some wording/grammar issues
cthunes Jun 10, 2024
a945cce
Merge branch '231-add-data-retrieval-via-API-vignette' of https://git…
cthunes Jun 17, 2024
ca9b7cc
231 updates from review
cthunes Jun 20, 2024
e9acc99
Merge pull request #260 from USEPA/231-add-data-retrieval-via-API-vig…
cthunes Jun 21, 2024
787d63b
230 updated text from review
cthunes Jun 21, 2024
23082b6
Merge pull request #240 from USEPA/227-tcpl-data-processing-vignette-…
cthunes Jun 26, 2024
89b9141
262 remove duplicate columns resolves load error (#265)
cthunes Jun 26, 2024
61d65eb
230 add reference to unsupported "API" driver
cthunes Jun 26, 2024
fdb3240
Merge pull request #264 from USEPA/230-update-tcplVarMat-docs
cthunes Jul 10, 2024
ccf66db
removed gnls filter
brown-jason Jul 16, 2024
fca553b
added missing bsk assay and changed hitc to -1 instead of filtering
brown-jason Jul 16, 2024
de26b9c
add default values for chemicals that were not tested in burst assays
brown-jason Jul 16, 2024
a6ea081
268 update references to ccdR to use ctxR instead
cthunes Jul 17, 2024
3bc52a7
267 created separate tcplPlotLoadData function to export and refactored
cthunes Jul 18, 2024
6e90337
215/267 updated/regenerated tcplPlot documentation for recent changes
cthunes Jul 19, 2024
29644c0
276 added mc7 to tcplLoadData, only for MySQL connections
cthunes Jul 23, 2024
28cb072
Merge pull request #269 from USEPA/48-tox-485-chemical-not-populated-…
madison-feshuk Jul 24, 2024
719afbd
changed load clib to chemlist (#270)
brown-jason Jul 25, 2024
85b280b
Merge pull request #273 from USEPA/268-update-ccdR-dependency-to-ctxR
cthunes Jul 25, 2024
f6c4630
Merge pull request #274 from USEPA/267-export-tcplPlotLoadData-as-sep…
cthunes Jul 25, 2024
4af1b7e
update test-on-PR to test on PR to dev as well as main
cthunes Jul 25, 2024
948c5df
198 update tcplConf related tests, add API tests
cthunes Jul 25, 2024
cc4c0fd
Merge pull request #277 from USEPA/276-add-mc7-to-tcplLoadData
cthunes Jul 25, 2024
6e50721
update test-on-PR to test on PR to dev as well as main
cthunes Jul 25, 2024
d2c2586
198 update tcplConf related tests, add API tests
cthunes Jul 25, 2024
2ab7b87
rearranged tcplConf tests to make actual and expected in correct order
cthunes Jul 26, 2024
9c91418
added new approach with mocking tcplQuery responses for testing
cthunes Jul 26, 2024
b0bbb4d
Resolve merge conflict in test-tcplConf.R
cthunes Jul 26, 2024
61e52c7
update tcplLoadData example section and sc_vignette data for tests
cthunes Jul 29, 2024
d7666a2
commit to style of mocking only tcplQuery, fix test bug
cthunes Jul 29, 2024
0e0e23b
Generalized test ids and added fifteen datasets for tcplLoadData tests
cthunes Jul 29, 2024
957a46e
added 2 hit constraint to cytotox
brown-jason Jul 30, 2024
e203b42
changed and to or
brown-jason Jul 30, 2024
30ad5c2
added error cases and multiple expectations per test case
cthunes Jul 30, 2024
e0b112d
Merge pull request #279 from USEPA/278-require-nhit-=-2-for-tcplcytop…
madison-feshuk Jul 31, 2024
79ada6d
removed old tcplPlot tests that didn't test the any actual functions
cthunes Jul 31, 2024
b4d9282
updated mc_test data to store tcplPlot data as well
cthunes Jul 31, 2024
4d5916a
working on testing fixed this minor bug in tcplPlotValidate
cthunes Aug 2, 2024
1057c0b
updated mc_test to include mocking data for tcplPlot as well
cthunes Aug 2, 2024
12f19d7
added mocking tests for tcplPlot in test-tcplPlot.R
cthunes Aug 2, 2024
6827467
fix bug discovered with testing sc plotting in console
cthunes Aug 5, 2024
50f22ea
added many new sc plot tests to mirror the existing mc plot tests
cthunes Aug 5, 2024
c9cb523
Added tcplLoadData tests for with mocked sc test data
cthunes Aug 5, 2024
cc6e99b
fix bug found with missing concs in console plotting
cthunes Aug 6, 2024
ef052de
add sc_test data for testing tcplLoadData and tcplPlot
cthunes Aug 6, 2024
1bfd400
Add expectations of no error when using 'by' parameter in tcplPlot
cthunes Aug 6, 2024
b93601c
added expectations for verbose/flags = FALSE for tcplPlot tests
cthunes Aug 6, 2024
1dacff9
fix unnest bug in tcplLoadData for loading agg level API data
cthunes Aug 9, 2024
e093f48
add test_api rda file to pick various ids based on current API data
cthunes Aug 9, 2024
25e698f
232 added API mocking tests/data to test-tcplLoadData & test-tcplPlot
cthunes Aug 9, 2024
bfce217
fix related bugs in load functions when ctxR returns null data.table
cthunes Aug 13, 2024
f0f1502
update data/test_api.rda and -raw/ script to include aid and asid
cthunes Aug 13, 2024
6ff9bd5
updated error case section of test-tcplLoadData to test each level
cthunes Aug 13, 2024
ec4682d
add test files for each of auxiliary load functions, for 'API' driver
cthunes Aug 13, 2024
d8d84fa
updated mocked data with new test_api ids; again shortened the jsons
cthunes Aug 13, 2024
c509953
Added data.R descriptions for each of the 3 new stored .rdas
cthunes Aug 14, 2024
d6f5645
First pass vignette updates for v3.2 release (#271)
cthunes Aug 20, 2024
f489c04
skipping old snapshot style test
brown-jason Aug 20, 2024
558d8f6
Merge pull request #282 from USEPA/198-update-github-actions-to-inclu…
cthunes Aug 20, 2024
97a9d52
technical reviewer KB
brown-jason Sep 4, 2024
dbd7648
technical review JDR
brown-jason Sep 4, 2024
768b1f9
additional edits
madison-feshuk Sep 4, 2024
a47e6f9
address bugs from #284
madison-feshuk Sep 5, 2024
30a811b
259 remove tcpl lite and add api throughout package (#283)
cthunes Sep 6, 2024
80c08b2
286 technical review comments (#287)
brown-jason Sep 6, 2024
3f9c9a5
add flag logic to analytical qc section
madison-feshuk Sep 9, 2024
3c92de4
Merge pull request #289 from USEPA/286-technical-review-comments
madison-feshuk Sep 9, 2024
9ea8f2a
removed tcplloadclib reference from aeidplts
brown-jason Sep 24, 2024
8c0a084
291 release tcpl 320 (#292)
brown-jason Oct 8, 2024
a2e6d8e
added greek encoding to pdf options and revert on exit so tests pass …
brown-jason Oct 9, 2024
0213dfe
added quotes to tcpl and invitrodb and think I fixed the URIs (#298)
brown-jason Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
^inst/sql/create_sql_files\.R$
man-roxygen
tcpl.Rcheck
README.md
^README\.Rmd$
CONTRIBUTING.md
cran-comments.md
^CRAN-RELEASE$
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-on-PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
pull_request:
branches: [main]
branches: [main, dev]

name: test-coverage

Expand Down
37 changes: 20 additions & 17 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
Package: tcpl
Title: ToxCast Data Analysis Pipeline
Version: 3.1.0
Version: 3.2.0
Authors@R: c(
person("Richard S", "Judson",role = c("ctb","ths"), email = "[email protected]"),
person("Dayne L", "Filer", role = "aut",email = "[email protected]"),
person("Jason","Brown",role = "cre", email = "[email protected]"),
person("Sarah E","Davidson-Fritz",role = "ctb",email = "[email protected]", comment = c(ORCID = "0000-0002-2891-9380")),
person("Richard S", "Judson",role = c("ctb","ths"), comment = c(ORCID = "0000-0002-2348-9633")),
person("Dayne L", "Filer", role = "aut"),
person("Jason","Brown", role = "cre", email = "[email protected]", comment = c(ORCID = "0009-0000-2294-641X")),
person("Sarah E","Davidson-Fritz", role = "ctb",email = "[email protected]", comment = c(ORCID = "0000-0002-2891-9380")),
person("Madison","Feshuk",role = "ctb",email = "[email protected]", comment = c(ORCID = "0000-0002-1390-6405")),
person("Lori","Kolaczkowski",role = "ctb",email = "[email protected]"),
person("Kurt", "Dunham", role = "ctb", email = "[email protected]"),
person("Carter", "Thunes", role = "ctb", email = "[email protected]"),
person("Ashley", "Ko", role = "ctb", email = "[email protected]"),
person("Todd", "Zurlinden", role="ctb"),
person("Kelly", "Carstens", role = "ctb", email = "[email protected]", comment = c(ORCID = "0000-0002-1746-5379")),
person("Todd", "Zurlinden", role="ctb", comment = c(ORCID = "0000-0003-1372-3913")),
person("Lori","Kolaczkowski",role = "ctb"),
person("Kurt", "Dunham", role = "ctb"),
person("Parth", "Kothiya", role = "ctb"),
person("Woodrow R", "Setzer", role = "ctb"),
person("Matthew T", "Martin", role = c("ctb", "ths")),
person("Katie", "Paul Friedman", role=c("ctb"), email = "[email protected]", comment = c(ORCID = "0000-0002-2710-1691"))
)
Description: A set of tools for processing and modeling high-throughput and
high-content chemical screening data. The package was developed for the
the chemical screening data generated by the US EPA ToxCast program, but
can be used for diverse chemical screening efforts.
URL: https://github.com/USEPA/CompTox-ToxCast-tcpl
Description: The ToxCast Data Analysis Pipeline ('tcpl') is an R package that manages, curve-fits, plots, and stores ToxCast data to populate its linked MySQL database, 'invitrodb'. The package was developed for the chemical screening data curated by the US EPA's Toxicity Forecaster (ToxCast) program, but 'tcpl' can be used to support diverse chemical screening efforts.
URL: https://github.com/USEPA/CompTox-ToxCast-tcpl, https://www.epa.gov/comptox-tools/toxicity-forecasting-toxcast
Depends:
R (>= 3.5.0)
Imports:
data.table (>= 1.9.4),
data.table (>= 1.15.0),
DBI,
RMariaDB,
numDeriv,
Expand All @@ -42,7 +40,9 @@ Imports:
tcplfit2,
ggplot2,
gridExtra,
stringr
stringr,
rlang,
ctxR
Suggests:
roxygen2,
knitr,
Expand All @@ -55,10 +55,13 @@ Suggests:
kableExtra,
colorspace,
magrittr,
vdiffr
vdiffr,
httptest,
rmdformats
License: MIT + file LICENSE
LazyData: true
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
VignetteBuilder: knitr
Encoding: UTF-8
Config/testthat/edition: 3
BugReports: https://github.com/USEPA/CompTox-ToxCast-tcpl/issues
23 changes: 19 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export(tcplAddModel)
export(tcplCode2CASN)
export(tcplConf)
export(tcplConfDefault)
export(tcplConfExample)
export(tcplConfList)
export(tcplConfLoad)
export(tcplConfReset)
Expand All @@ -26,8 +25,10 @@ export(tcplLoadAeid)
export(tcplLoadAid)
export(tcplLoadAsid)
export(tcplLoadChem)
export(tcplLoadClib)
export(tcplLoadChemList)
export(tcplLoadConcUnit)
export(tcplLoadData)
export(tcplLoadUnit)
export(tcplLvlCount)
export(tcplMakeAeidMultiPlts)
export(tcplMakeAeidPlts)
Expand All @@ -43,10 +44,12 @@ export(tcplObjHill)
export(tcplPlot)
export(tcplPlotFitc)
export(tcplPlotFits)
export(tcplPlotLoadData)
export(tcplPlotM4ID)
export(tcplPlotPlate)
export(tcplPrepOtpt)
export(tcplQuery)
export(tcplQueryAPI)
export(tcplRegister)
export(tcplRun)
export(tcplSendQuery)
Expand All @@ -61,8 +64,12 @@ import(gridExtra)
import(stringr)
importFrom(RColorBrewer,brewer.pal)
importFrom(RMariaDB,MariaDB)
importFrom(ctxR,get_all_assays)
importFrom(ctxR,get_bioactivity_details_batch)
importFrom(ctxR,register_ctx_api_key)
importFrom(dplyr,"%>%")
importFrom(dplyr,.data)
importFrom(dplyr,across)
importFrom(dplyr,all_of)
importFrom(dplyr,arrange)
importFrom(dplyr,as_tibble)
Expand All @@ -71,9 +78,11 @@ importFrom(dplyr,contains)
importFrom(dplyr,ends_with)
importFrom(dplyr,everything)
importFrom(dplyr,filter)
importFrom(dplyr,full_join)
importFrom(dplyr,group_by)
importFrom(dplyr,inner_join)
importFrom(dplyr,left_join)
importFrom(dplyr,matches)
importFrom(dplyr,mutate)
importFrom(dplyr,mutate_if)
importFrom(dplyr,pull)
Expand All @@ -96,9 +105,11 @@ importFrom(ggplot2,ggsave)
importFrom(ggplot2,guide_legend)
importFrom(ggplot2,labs)
importFrom(ggplot2,margin)
importFrom(ggplot2,scale_color_manual)
importFrom(ggplot2,scale_color_viridis_d)
importFrom(ggplot2,scale_linetype_manual)
importFrom(ggplot2,scale_x_continuous)
importFrom(ggplot2,scale_y_continuous)
importFrom(ggplot2,theme)
importFrom(ggplot2,unit)
importFrom(ggplot2,xlab)
Expand All @@ -107,6 +118,7 @@ importFrom(grDevices,col2rgb)
importFrom(grDevices,colorRampPalette)
importFrom(grDevices,graphics.off)
importFrom(grDevices,pdf)
importFrom(grDevices,pdf.options)
importFrom(grDevices,rgb)
importFrom(graphics,abline)
importFrom(graphics,arrows)
Expand All @@ -133,6 +145,8 @@ importFrom(parallel,mclapply)
importFrom(plotly,add_annotations)
importFrom(plotly,add_trace)
importFrom(plotly,plot_ly)
importFrom(rlang,exec)
importFrom(rlang,sym)
importFrom(sqldf,sqldf)
importFrom(stats,constrOptim)
importFrom(stats,dist)
Expand All @@ -142,15 +156,16 @@ importFrom(stats,mad)
importFrom(stats,median)
importFrom(stats,optim)
importFrom(stats,quantile)
importFrom(stats,reformulate)
importFrom(stats,setNames)
importFrom(tcplfit2,tcplfit2_core)
importFrom(tcplfit2,tcplhit2_core)
importFrom(tidyr,pivot_longer)
importFrom(tidyr,pivot_wider)
importFrom(tidyr,separate_wider_delim)
importFrom(tidyr,unnest)
importFrom(tidyr,unnest_longer)
importFrom(utils,data)
importFrom(utils,read.csv)
importFrom(utils,read.table)
importFrom(utils,tail)
importFrom(utils,write.csv)
importFrom(utils,write.table)
119 changes: 68 additions & 51 deletions NEWS → NEWS.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,50 @@
tcpl v3.1.0
==============
*updated vignettes for tcplfit2 fitting
*bidirectional fitting by default
*this is the version used to create invitrodb v4.1

tcpl v3.0.1
==============
*fixes error from ggplot2
*minor bug fixes

tcpl v3.0.0
==============
*add functionality for additional model fitting with tcplfit2
*updated vignettes for new fitting
*created updated plotting function

tcpl v2.1.0
==============
*updated for release with toxcast invitrodb data
*added option to allow change in single conc bmad calculation

tcpl v2.0.3
==============
*Created tcplPlot a generic plotting function with call similar to tcplLoadData
*added option for concentration units to be different during plotting.
*fixed tcpllite bug for schema change
*filtered gnls from tcplCytopt
*updated to Rmariadb
*various bugfixes

tcpl v2.0.2
==============
# tcpl 3.2.0

* Added a `NEWS.md` file to track changes to the package.
* updated vignettes
* Updated plotting including standalone and comparisons
* Added bidirectional summary stats and updated functions to work with newest version of invitrodb
* Added level 6 flags
* Implemented API functionality
* Removed tcplLite

# tcpl 3.1.0

* updated vignettes for tcplfit2 fitting
* bidirectional fitting by default
* this is the version used to create invitrodb v4.1

# tcpl 3.0.1

* fixes error from ggplot2

* minor bug fixes

# tcpl 3.0.0

* add functionality for additional model fitting with tcplfit2

* updated vignettes for new fitting

* created updated plotting function

# tcpl 2.1.0

* updated for release with toxcast invitrodb data

* added option to allow change in single conc bmad calculation

# tcpl 2.0.3

* Created tcplPlot a generic plotting function with call similar to tcplLoadData
* added option for concentration units to be different during plotting.
* fixed tcpllite bug for schema change
* filtered gnls from tcplCytopt
* updated to Rmariadb
* various bugfixes

# tcpl 2.0.2

* Updated tcplLoadChem to return dsstox substance ids
* Moved data.table to imports instead of depends
* Added new level 6 method for flagging viability gnls winners
Expand All @@ -39,21 +53,24 @@ tcpl v2.0.2
* Added ability to determine lowest effective concentration (loec) as level 5 method
* Added new AEID plot functionality to visualize 2 aeids on same plot through tcplMakeAeidPlts

tcpl v2.0.1
==============
Updated vignettes to use tempdir and thus not write to install folder.
# tcpl 2.0.1

* Updated vignettes to use tempdir and thus not write to install folder.


# tcpl 2.0

tcpl v2.0
==============

Major change for tcpl v2.0:

* Incorporation of tcplLite into the package, a functionality that allows the user to work from local files formatted like invitrodb tables, rather than a MySQL database.
* Using tcplLite is ideal for handling smaller datasets.
* The SQLite driver was removed from the package.
* tcplConf() default is now for tcplLite, which uses .csv files rather than tables in a MySQL database.
* The MySQL driver is available and recommended for interacting with the entire dataset as a database.
* The package vignettes run using tcplLite.

* Using tcplLite is ideal for handling smaller datasets.

* The SQLite driver was removed from the package.
* tcplConf() default is now for tcplLite, which uses .csv files rather than tables in a MySQL database.
* The MySQL driver is available and recommended for interacting with the entire dataset as a database.
* The package vignettes run using tcplLite.
Additional updates for tcpl v2.0
* tcplLvlCount: function added to count the samples at each level of processing for each aeid.
* Addition of mc4 methods: the baseline median absolute deviation can now be calculated based on the lowest two concentrations or on the neutral control wells. An mc4 method must now be assigned for analysis.
Expand All @@ -63,8 +80,8 @@ Additional updates for tcpl v2.0
* Vignettes are now posted as html from RMarkdown files for Introduction and appendices, data retrieval, and data processing.
* Various bug fixes and additions to the methods tables.

tcpl v1.4.0
==============
# tcpl 1.4.0


Changes from v1.2.2

Expand Down Expand Up @@ -93,8 +110,8 @@ Changes from v1.2.2



tcpl v1.2.3
==============
# tcpl 1.2.3


Changes from v1.2.2

Expand All @@ -120,8 +137,8 @@ Changes from v1.2.2
imports were removed to simplify the package, as they were found unnecessary.
(PR#29)

tcpl v1.2.2
==============
# tcpl 1.2.2


Changes from v1.2

Expand All @@ -130,8 +147,8 @@ Changes from v1.2
running the checks for the package.


tcpl v1.2
==============
# tcpl 1.2


Changes from beta versions:

Expand Down
11 changes: 2 additions & 9 deletions R/assay_funcs.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@
#' return the assay source ID (asid) and assay source name (asnm).
#'
#' @examples
#' ## Store the current config settings, so they can be reloaded at the end
#' ## of the examples
#' conf_store <- tcplConfList()
#' TCPLlite <- file.path(system.file(package = "tcpl"), "example")
#' tcplConf(db = TCPLlite, user = NA, host = NA, drvr = "tcplLite")
#'
#' \dontrun{
#' ## The load assay functions can be used without any parameters to list the
#' ## full list of registered assay elements:
#' tcplLoadAsid()
Expand All @@ -43,9 +38,7 @@
#' a1 <- tcplLoadAeid(fld = "anm", val = "Steroidogenesis")
#' a2 <- tcplLoadAeid(fld = "assay_name", val = "Steroidogenesis")
#' identical(a1, a2)
#'
#' ## Reset configuration
#' options(conf_store)
#' }
#'
#' @return A data.table containing the ID, name, and any additional fields.
NULL
Loading
Loading