USEPA / CompTox-ToxCast-tcpl

US EPA's Toxicity Forecaster (ToxCast) Pipeline. More information on the ToxCast program available here: https://www.epa.gov/comptox-tools/toxicity-forecasting-toxcast
https://cran.r-project.org/package=tcpl
Other
28 stars 12 forks source link

Help with model images for Cheminformatics Modules #208

Closed kpaulfriedman closed 5 months ago

kpaulfriedman commented 6 months ago

I am looking to recruit some help to generate image files from a code base I haven't opened since 2017.

Please see this script: https://github.com/USEPA/CompTox-ToxCast-EDSPsteroidogenesis/blob/master/Scripts/Supp8_and%20Supp9_ANOVA_concResp_and_radar_plots.R

At line 247, a PDF of plots is generated for chemical-plate ID. Instead of one PDF, the Cheminformatics Modules team would like to have individual .svg for each chemical-plate ID, stored with the chemical-plateid as the title of the file. My thinking is a possible approach is a for-loop by chemical-plate ID and then that the challenge is differences n package implementation from earlier R version to now....let's see what skeletons you find.

It would be great to save them in a folder on the L: drive here: L:\Lab\NCCT_ToxCast\Derik Haggard\OECD Analysis\R Scripts for Pub

Thank you!

kpaulfriedman commented 6 months ago

In terms of timeline, it would be good to do this in the next month

cthunes commented 6 months ago

@kpaulfriedman the 766 .svgs can now be found at

L:\Lab\NCCT_ToxCast\Derik Haggard\OECD Analysis\R Scripts for Pub\GLOBAL_radar_mDist Model Images 6Mar2024

I didn't have to do any package version workarounds to make this work; the current versions successfully replicated the plots. The script can be found in the same folder.

Note - I did have to alter the names of two chemical-plateid filenames as they contained a '/'. I just removed the slash for these filenames. 20140903_(+/−)−cis−PermethrinPlate18 20150610(+/−)−cis−Permethrin_Plate38

kpaulfriedman commented 6 months ago

@cthunes this is awesome! I scrolled through a few images and this checks out. Thank you so much! That was so fast! I am going to move this to done. We'll be passing this to the Cheminformatics Modules folks so if they have issues using the .svg files we can open another ticket later.