Skip to content

Commit

Permalink
debug version string
Browse files Browse the repository at this point in the history
  • Loading branch information
dimalvovs committed Aug 31, 2024
1 parent 07ec5a2 commit d703fe7
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions modules/local/spacemarkers.nf
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ process SPACEMARKERS {
saveRDS(spaceMarkers, file = "${prefix}/spaceMarkers.rds")
cat <<-END_VERSIONS > versions.yml
"${task.process}":
SpaceMarkers: \$(Rscript -e 'print(packageVersion("SpaceMarkers"))' | awk '{print \$2}')
R: \$(Rscript -e 'print(packageVersion("base"))' | awk '{print \$2}')
END_VERSIONS
# Get the versions of the packages
spaceMarkersVersion <- packageVersion("SpaceMarkers")
rVersion <- packageVersion("base")
cat(sprintf('"%s":\n SpaceMarkers: %s\n R: %s\n',
"${task.process}", spaceMarkersVersion, rVersion),
file = "versions.yml")
"""
}

Expand Down Expand Up @@ -142,11 +143,12 @@ process SPACEMARKERS_MQC {
auto_unbox = TRUE,
pretty = TRUE)
cat <<-END_VERSIONS > versions.yml
"${task.process}":
SpaceMarkers: \$(Rscript -e 'print(packageVersion("SpaceMarkers"))' | awk '{print \$2}')
R: \$(Rscript -e 'print(packageVersion("base"))' | awk '{print \$2}')
END_VERSIONS
# Get the versions of the packages
spaceMarkersVersion <- packageVersion("SpaceMarkers")
rVersion <- packageVersion("base")
cat(sprintf('"%s":\n SpaceMarkers: %s\n R: %s\n',
"${task.process}", spaceMarkersVersion, rVersion),
file = "versions.yml")
"""

stub:
Expand Down

0 comments on commit d703fe7

Please sign in to comment.