Hi everyone!
I was having an issue similar as BiocParallel on Windows : cannot find my functions when using SnowParam
My problem was that I used inside my bplapply function, some not exported functions (designMatrix) from my package. Actually, this was solved by passing them/it as a parameter to the bplapply function:
calcRes <- bplapply(1:ncol(all_perms), function(i, designMatrix) { permDesign <- designMatrix(fit_options)[all_perms[,i],]; new_fit_options <- fit_options; new_fit_options@design_matrix <- permDesign; # designMatrix(new_fit_options) <- permDesign; actRank <- rankFunction(data, new_fit_options); return(actRank); }, designMatrix=designMatrix, BPPARAM=bp_param);
However, as you can see in my code I am having to use the '@' slot accessor, while I have the setReplaceMethod defined for it (look at the commented line).
Is there any way to pass my designMatrix<- function?
I have been trying different ways with no success.
thanks everyone!
Rodriguez, Juan C.