Skip to content

Commit

Permalink
Add docker image tags to version file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmaurais committed Aug 26, 2024
1 parent 737528f commit ed1b5e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ workflow {
'narrow',
params.encyclopedia.chromatogram.params
)
encyclopedia_version = encyclopeda_export_elib.out.encyclopedia_version

quant_library = encyclopeda_export_elib.out.elib

Expand All @@ -216,8 +215,9 @@ workflow {

)

final_elib = encyclopedia_quant.out.elib
encyclopedia_version = encyclopedia_quant.out.encyclopedia_version

final_elib = encyclopedia_quant.out.elib
all_elib_ch = all_elib_ch.concat(
encyclopedia_quant.out.individual_elibs,
encyclopedia_quant.out.elib,
Expand Down Expand Up @@ -412,7 +412,7 @@ def is_panorama_used() {
(params.quant_spectra_dir && any_entry_is_panorama(params.quant_spectra_dir)) ||
(params.chromatogram_library_spectra_dir && any_entry_is_panorama(params.chromatogram_library_spectra_dir)) ||
(params.skyline_skyr_file && any_entry_is_panorama(params.skyline_skyr_file))

}

//
Expand Down
16 changes: 11 additions & 5 deletions workflows/save_run_details.nf
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ workflow save_run_details {

main:

// split program version variable names and value
// Read version txt files and create a channel of variable name, value pairs
version_vars = version_files.map{
program -> program.collect{ it ->
elems = it.split('=')
[elems[0].strip(), elems[1].strip()]
elems = it.split('=').collect{ str ->
str.strip().replaceAll(/^['"]|['"]$/, '')
}
[elems[0], elems[1]]
}
}


// Create channel of workflow run metadata
workflow_vars = Channel.fromList([["Nextflow run at", workflow.start],
["Nextflow version", nextflow.version],
["Workflow git address", "${workflow.repository}"],
Expand All @@ -55,9 +57,13 @@ workflow save_run_details {
["Run session ID", workflow.sessionId],
["Command line", workflow.commandLine]])

// Create channel of docker image names and paths
docker_images = Channel.fromList(params.images.collect{k, v -> ["${k} docker image", v]})

all_vars = workflow_vars.concat(
input_files.flatten().collate(2),
version_vars.flatten().collate(2)
version_vars.flatten().collate(2),
docker_images
)

var_names = all_vars.map{ it -> it[0] }
Expand Down

0 comments on commit ed1b5e2

Please sign in to comment.