Skip to content

Commit

Permalink
Merge pull request #2312 from mirpedrol/refgenie-check-path
Browse files Browse the repository at this point in the history
create .nextflow/nf-core if it doesn't exist
  • Loading branch information
mirpedrol authored Jun 12, 2023
2 parents 711d074 + 2c2e2d6 commit 1e39535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

- GitPod base image: Always self-update to the latest version of Nextflow. Add [pre-commit](https://pre-commit.com/) dependency.
- GitPod configs: Update Nextflow as an init task, init pre-commit in pipeline config.
- Refgenie: Create `nxf_home/nf-core/refgenie_genomes.config` path if it doesn't exist ([#2312](https://github.com/nf-core/tools/pull/2312))

# [v2.8 - Ruthenium Monkey](https://github.com/nf-core/tools/releases/tag/2.8) - [2023-04-27]

Expand Down
2 changes: 1 addition & 1 deletion nf_core/refgenie.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def update_config(rgc):

# Save the updated genome config
try:
with open(refgenie_genomes_config_file, "w") as fh:
with open(refgenie_genomes_config_file, "w+") as fh:
fh.write(refgenie_genomes)
log.info(f"Updated nf-core genomes config: {refgenie_genomes_config_file}")
except FileNotFoundError:
Expand Down

0 comments on commit 1e39535

Please sign in to comment.