Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom name #1822

Merged
merged 7 commits into from
Oct 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
check that name provided with template doesn't contain dashes
  • Loading branch information
mirpedrol committed Sep 8, 2022
commit a9f2602eeb0300c97ce71806be81d899faeaeaa2
4 changes: 4 additions & 0 deletions nf_core/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ def create_param_dict(self, name, description, author, version, template_yaml_pa
param_dict["name"] = self.get_param("name", name, template_yaml, template_yaml_path)
param_dict["description"] = self.get_param("description", description, template_yaml, template_yaml_path)
param_dict["author"] = self.get_param("author", author, template_yaml, template_yaml_path)
# Check that the pipeline name matches the requirements
if not re.match(r"^[a-z]+$", param_dict["name"]):
log.error("[red]Invalid workflow name: must be lowercase without punctuation.")
sys.exit(1)

if "version" in template_yaml:
if version is not None:
Expand Down