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

tcplPlotcompare: Units do not match #253

Open
brown-jason opened this issue May 14, 2024 · 0 comments
Open

tcplPlotcompare: Units do not match #253

brown-jason opened this issue May 14, 2024 · 0 comments

Comments

@brown-jason
Copy link
Collaborator

When trying to run standalone I get a units do not match error

library(readr)
library(dplyr)
filepath <- "L:\Lab\Toxcast_Data\toxcast_data\misc\invitrodb_v4_2_qc\inspect_invitrodb_v4_2_flips_14MAY2024.csv"
comparison_dataset <- read_csv(filepath)

plot_testing <- comparison_dataset |> filter(flip_dir == "IA")
plot_testing <- plot_testing |> arrange(aenm)

devtools::load_all()
tcplConf(user='_dataminer', pass='pass', db='prod_internal_invitrodb_v4_1', drvr='MySQL', host='ccte-mysql-res.epa.gov')
dat_TEST <- tcplPlotLoadData(lvl = 5, fld = "m5id", val = plot_testing$old_m5id, type = "mc",flags = TRUE, compare = FALSE)
dat_TEST <- dat_TEST[match(plot_testing$old_m5id, dat_TEST$m5id),]

tcplConf(user='_dataminer', pass='pass', db='invitrodb', drvr='MySQL', host='ccte-mysql-res.epa.gov')

ndt2 <- tcplLoadAeid(add.fld = "normalized_data_type")

n <- nrow(dat_TEST)
n <- 29
tcplPlot(dat = head(dat_TEST,n),
type = "mc",
fld = "m5id",
val = head(dat_TEST$m5id,n),
compare.val = head(plot_testing$new_m5id,n),
multi = TRUE,
verbose = TRUE,
output = "pdf",
flags = TRUE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant