Commit 61c0cd25 authored by aditya.bhagwat's avatar aditya.bhagwat
Browse files

Small fix to make earlier commit work

parent 3ece938a
Pipeline #127516 passed with stages
in 30 seconds
...@@ -97,19 +97,20 @@ doench2016 <- function( ...@@ -97,19 +97,20 @@ doench2016 <- function(
mc.cores <- if (assertive.reflection::is_windows()) 1 else parallel::detectCores()-2 mc.cores <- if (assertive.reflection::is_windows()) 1 else parallel::detectCores()-2
doench2016scores <- unlist(parallel::mclapply(contextchunks, doench2016scores <- unlist(parallel::mclapply(contextchunks,
function(x){ function(x){
azi$predict( reticulate::np_array(x), reticulate::py_suppress_warnings(
azi$predict( reticulate::np_array(x),
aa_cut = NULL, aa_cut = NULL,
percent_peptide = NULL, percent_peptide = NULL,
model = NULL, model = NULL,
model_file = NULL, model_file = NULL,
pam_audit = TRUE, pam_audit = TRUE,
length_audit = TRUE, length_audit = TRUE,
learn_options_override = NULL)}, learn_options_override = NULL))},
mc.cores = mc.cores)) mc.cores = mc.cores))
# Return # Return
end_time <- Sys.time() end_time <- Sys.time()
if (verbose) cmessage('\t\tCompleted in %d s', if (verbose) cmessage('\t\tCompleted in %s',
format(end_time - start_time, digits = 2)) format(end_time - start_time, digits = 2))
doench2016scores doench2016scores
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment