Skip to content

Commit

Permalink
add pipeline version to params file
Browse files Browse the repository at this point in the history
  • Loading branch information
fbdtemme committed Jul 6, 2023
1 parent 406d5bd commit 85c01a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nf_core/params_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,12 @@ def generate_params_file(self, show_hidden=False):
"""
schema = self.schema_obj.schema
pipeline_name = self.schema_obj.pipeline_manifest.get("name", self.pipeline)
pipeline_version = self.schema_obj.pipeline_manifest.get("version", "0.0.0")

# Build the header section
out = ""

out += _print_wrapped(pipeline_name, "~", mode="both", indent=4)
out += _print_wrapped(f"{pipeline_name} {pipeline_version}", "~", mode="both", indent=4)
out += _print_wrapped(INTRO.format(pipeline_name=pipeline_name), " ", mode="none", indent=4)
out += _print_wrapped("\n", " ", mode="none", indent=4, drop_whitespace=False)
out += _print_wrapped(USAGE, "-", mode="end", indent=4)
Expand Down

0 comments on commit 85c01a8

Please sign in to comment.