Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Imports:
dplyr,
stats,
parallel,
data.table
data.table,
utils
Suggests:
MSstats,
MSstatsTMT,
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ importFrom(stats,pf)
importFrom(stats,quantile)
importFrom(stats,rlnorm)
importFrom(stats,rnorm)
importFrom(utils,setTxtProgressBar)
importFrom(utils,txtProgressBar)
4 changes: 4 additions & 0 deletions R/Fit_Isotonic_Regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
#' @importFrom stats pf p.adjust
#' @importFrom dplyr filter select mutate group_by summarise arrange distinct
#' @importFrom data.table rbindlist
#' @importFrom utils setTxtProgressBar txtProgressBar
doseResponseFit = function(data, weights = NULL,
increasing = FALSE,
transform_dose = TRUE,
Expand Down Expand Up @@ -92,6 +93,7 @@ doseResponseFit = function(data, weights = NULL,
protein_list = unique(drug_subset$protein)
results_list = list()

progress_bar = txtProgressBar(min = 0, max = length(protein_list), style = 3)
for (i in seq_along(protein_list)) {
tryCatch({
suppressWarnings({
Expand Down Expand Up @@ -130,11 +132,13 @@ doseResponseFit = function(data, weights = NULL,
results_temp$drug = drug_type
results_temp = results_temp[, c("protein", "drug", setdiff(names(results_temp), c("protein", "drug")))]
results_list[[i]] = results_temp
setTxtProgressBar(progress_bar, i)
})
}, error = function(e) {
warning(paste("Error for drug:", drug_type, "protein:", protein_list[i], ":", conditionMessage(e)))
})
}
close(progress_bar)

# Combine and adjust p-values for this drug
if (length(results_list) > 0) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion man/DoseResponseFit.Rd → man/doseResponseFit.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.