Skip to content

Commit

Permalink
fix sigprofiler output dir + versions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiagandolfi committed Jan 23, 2025
1 parent 35e03a8 commit 8c96e7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions conf/modules/sigprofiler.config
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ process {
publishDir = [
[
mode: params.publish_dir_mode,
path: { "${params.outdir}/signature_deconvolution/SigProfiler/${meta.id}/" }
//pattern: "*{txt, pdf}"
path: { "${params.outdir}/signature_deconvolution/SigProfiler/${meta.id}/" },
pattern: "results/*"
]
]
}
Expand Down
10 changes: 5 additions & 5 deletions modules/local/SigProfiler/SigProfiler/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ process SIGPROFILER {
export_probabilities = bool(eval("$export_probabilities")))
# save the output results
dest_dir = "$prefix/"
source_dir = "results/"
shutil.copytree(source_dir, dest_dir, dirs_exist_ok=True)
source_dir = "$prefix/"
dest_dir = "results/"
shutil.copytree(source_dir, "results", dirs_exist_ok=True)
# Write version
Expand All @@ -161,8 +161,8 @@ process SIGPROFILER {
with open('versions.yml', 'a') as f:
f.write('"${task.process}":'+"\\n")
f.write("\tSigProfilerMatrixGenerator: {SigProfilerMatrixGenerator_version}\\n")
f.write("\tSigProfilerExtractor: {SigProfilerExtractor_version}\\n")
f.write("\tSigProfilerMatrixGenerator: "+SigProfilerMatrixGenerator_version+"\\n")
f.write("\tSigProfilerExtractor: "+SigProfilerExtractor_version+"\\n")
"""

Expand Down

0 comments on commit 8c96e7e

Please sign in to comment.