-
Notifications
You must be signed in to change notification settings - Fork 192
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
Remove the graphviz dependency from nf-core #1512
Changes from all commits
3567b07
8313a50
ae2a057
c68fb85
83fe29e
32da8e5
84e5db9
3d91fe0
e298fe9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,11 @@ | |
|
||
## v2.4dev | ||
|
||
This patch release to removes the Graphviz dependency from default pipeline template by setting the defaul DAG format to HTML. To keep the previous behaviour, the "dag.file" file extension needs to be changed to ".svg" in the nextflow.config. | ||
|
||
### Template | ||
|
||
- Set the default DAG graphic output to HTML to have a default that does not depend on Graphviz being installed on the host system ([#1512](https://github.com/nf-core/tools/pull/1512)). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍🏻 |
||
- Fix bug in pipeline readme logo URL | ||
- Fix Prettier formatting bug in completion email HTML template ([#1509](https://github.com/nf-core/tools/issues/1509)) | ||
- Removed retry strategy for AWS tests CI, as Nextflow now handles spot instance retries itself | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,10 +229,14 @@ def nextflow_config(self): | |
|
||
# Check that the DAG filename ends in ``.svg`` | ||
if "dag.file" in self.nf_config: | ||
if self.nf_config["dag.file"].strip("'\"").endswith(".svg"): | ||
passed.append("Config ``dag.file`` ended with ``.svg``") | ||
_, dag_file_suffix = os.path.splitext(self.nf_config["dag.file"].strip("'\"")) | ||
maxulysse marked this conversation as resolved.
Show resolved
Hide resolved
|
||
allowed_dag_file_suffixes = [".dot", ".html", ".pdf", ".png", ".svg", ".gexf"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Too late to the party, but I think we need to revert this sorry. Whilst it's perfectly valid to accept all, we specifically want to enforce a single standard for nf-core pipelines. People can override in their own configs and even ignore this linting test if it's a problem. If we allow all formats, then there's nothing to stop people from (probably accidentally) missing this change and continuing with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am fine with reverting this PR, allowing html only and removing the first sentence in the changelog. I think it is/was mostly necessary because of the multiple allowed formats. |
||
if dag_file_suffix in allowed_dag_file_suffixes: | ||
passed.append(f"Config ``dag.file`` ended with ``.{dag_file_suffix}``") | ||
else: | ||
failed.append("Config ``dag.file`` did not end with ``.svg``") | ||
failed.append( | ||
f"Config ``dag.file`` ended with ``.{dag_file_suffix}`` but needs to be one of {allowed_dag_file_suffixes!r}" | ||
) | ||
|
||
# Check that the minimum nextflowVersion is set properly | ||
if "manifest.nextflowVersion" in self.nf_config: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a patch release for just this PR 😉 This is just one change in the release. The bullet point below was sufficient, I think you can remove this paragraph.