Matthew Care
11/01/2024, 2:39 PMThe exit status of the task that caused the workflow execution to fail was: 1
Error executing process > 'NFCORE_CRISPRSEQ:CRISPRSEQ_SCREENING:MAGECK_FLUTEMLE (drugA_drugB_vs_treatment)'
Caused by:
Process `NFCORE_CRISPRSEQ:CRISPRSEQ_SCREENING:MAGECK_FLUTEMLE (drugA_drugB_vs_treatment)` terminated with an error exit status (1)
Command executed [/mnt/scratch/projects/biol-tf-2018/nextflow/work/.nextflow/pipelines/6e167da8/nf-core/crisprseq/templates/template_fluteMLE.R]:
#!/usr/bin/env Rscript
#### author: Laurence Kuhlburger
#### Released under the MIT license. See git repository (<https://github.com/nf-core/crisprseq>) for full license text.
####
#### graphs mageck MLE
library(MAGeCKFlute)
library(clusterProfiler)
library(ggplot2)
library(pathview)
options(ggrepel.max.overlaps = Inf)
mle <- read.table("drugA_drugB_vs_treatment.gene_summary.txt", header = TRUE, sep = " ", stringsAsFactors = FALSE)
if("drugA_drugB_vs_treatment" == "day0") {
beta_strings <- grep("\\.beta", colnames(mle), value = TRUE)
before_beta <- sub("\\.beta.*", "", beta_strings)
unique_strings <- unique(before_beta)
for(i in unique_strings) {
tryCatch(
{
FluteMLE(mle, treatname= i, proj=i, <http://pathview.top|pathview.top>=5)
},
error=function(e) {
print(paste("Could not run FluteMLE with project",i))
}
)
}
} else {
beta_strings <- grep("\\.beta", colnames(mle), value = TRUE)
before_beta <- sub("\\.beta.*", "", beta_strings)
unique_strings <- unique(before_beta)
for(i in unique_strings) {
tryCatch(
{
FluteMLE(mle, treatname= i, proj=i, , <http://pathview.top|pathview.top>=5)
},
error=function(e) {
print(paste("Could not run FluteMLE with project",i))
}
)
}
}
version_file_path <- "versions.yml"
version_flute <- paste(unlist(packageVersion("MAGeCKFlute")), collapse = ".")
version_ggplot <- paste(unlist(packageVersion("ggplot2")), collapse = ".")
version_clusterprofiler <- paste(unlist(packageVersion("clusterProfiler")), collapse = ".")
version_pathview <- paste(unlist(packageVersion("pathview")), collapse = ".")
f <- file(version_file_path, "w")
writeLines('"NFCORE_CRISPRSEQ:CRISPRSEQ_SCREENING:MAGECK_FLUTEMLE":', f)
writeLines(" MAGeCKFlute: ", f, sep = "")
writeLines(version_flute, f)
writeLines(" ggplot2: ", f, sep = "")
writeLines(version_ggplot, f)
writeLines(" clusterProfiler: ", f, sep = "")
writeLines(version_clusterprofiler, f)
writeLines(" pathview: ", f, sep = "")
writeLines(version_pathview, f)
close(f)
Command exit status:
1
Command output:
(empty)
Command error:
Error: package or namespace load failed for 'MAGeCKFlute':
.onLoad failed in loadNamespace() for 'depmap', details:
call: h(simpleError(msg, call))
error: error in evaluating the argument 'x' in selecting a method for function 'query': error in evaluating the argument 'conn' in selecting a method for function 'dbDisconnect': object 'info' not found
In addition: Warning messages:
1: In normalizePath("~") :
path[1]="/users/username": No such file or directory
2: In normalizePath("~") :
path[1]="/users/username": No such file or directory
3: In normalizePath("~") :
path[1]="/users/username": No such file or directory
4: In normalizePath("~") :
path[1]="/users/username": No such file or directory
5: In normalizePath("~") :
path[1]="/users/username": No such file or directory
6: In dir.create(cache, recursive = TRUE) :
cannot create dir '/users/username', reason 'No such file or directory'
7: In normalizePath(dn) :
path[1]="/users/username/.cache/R/ExperimentHub": No such file or directory
Execution halted
Work dir:
/mnt/scratch/projects/biol-tf-2018/nextflow/work/da/f4dd1dc9f50219e57d2e485909ad07
Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`Laurence Kuhlburger
11/01/2024, 2:51 PMMatthew Care
11/01/2024, 2:59 PMMatthew Care
11/01/2024, 3:07 PMSys.setenv(HOME = getwd())
e.g. to look like this
#!/usr/bin/env Rscript
#### author: Laurence Kuhlburger
#### Released under the MIT license. See git repository (<https://github.com/nf-core/crisprseq>) for full license text.
####
#### graphs mageck MLE
Sys.setenv(HOME = getwd())
library(MAGeCKFlute)
library(clusterProfiler)
library(ggplot2)
Resolves the issue.Laurence Kuhlburger
11/01/2024, 3:26 PMMatthew Care
11/04/2024, 11:21 AMMatthew Care
11/07/2024, 12:03 PMLaurence Kuhlburger
11/07/2024, 12:04 PMMatthew Care
11/07/2024, 12:06 PMLaurence Kuhlburger
11/07/2024, 12:59 PMLaurence Kuhlburger
11/08/2024, 8:15 AMMatthew Care
11/08/2024, 8:18 AMLaurence Kuhlburger
11/08/2024, 8:20 AMMatthew Care
11/08/2024, 8:32 AMLaurence Kuhlburger
11/08/2024, 8:36 AM