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

Parallelization #1

Open
lorenahernandezservian opened this issue May 9, 2022 · 0 comments
Open

Parallelization #1

lorenahernandezservian opened this issue May 9, 2022 · 0 comments

Comments

@lorenahernandezservian
Copy link

Dear immuneREF team,

First of all, thank you for creating this great tool.

I have a question about the calc_characteristics function while using the parallelization.

this is my code :

library(foreach)library(doParallel)
registerDoParallel(10)
repertoires_analyzed<-foreach(i=1:length(list_repertoires)) %dopar% {#
repertoires_analyzed_loop<-calc_characteristics(
repertoire_df=list_repertoires[[i]],
species=repertoire_species[i],
receptor=repertoire_receptor[i],
chain=repertoire_chain[i],
identifier_rep=repertoire_names[i])
return(repertoires_analyzed_loop)
}

When this option is used, the following error appears:

Error in { :
 task 1 failed - "could not find function "calc_characteristics""

However, the calc_characteristics function has been used in the script, so I do not understand why the program cannot find the function here.

I use RStudio (R version 4.1.3 (2022-03-10)) in Windows 10.

Thanks!

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