1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| system(paste("python3 /home/jovyan/upload/zl_liu/wecomchan.py", "'fastMNN_task start'"), intern = T) out <- tryCatch({ do.call(fastMNN, c(original, list(k = 20, d = 50, BPPARAM = BiocParallel::MulticoreParam(6)))); }, warning = function(w) { w <- as.character(w) w <- gsub("[\r\n']", "", w) system(paste("python3 /home/jovyan/upload/zl_liu/wecomchan.py", paste0("'",w,"'")), intern = T) w }, error = function(e) { e <- as.character(e) e <- gsub("[\r\n']", "", e) system(paste("python3 /home/jovyan/upload/zl_liu/wecomchan.py", paste0("'",e,"'")), intern = T) e }, finally = { }) system(paste("python3 /home/jovyan/upload/zl_liu/wecomchan.py", "'fastMNN completed'"), intern = T)
|