Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Remove explicit reddim_genes.yml requirement #25

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
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
2 changes: 1 addition & 1 deletion workflows/scflow.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (params.celltype_mappings) { ch_celltype_mappings = file(params.celltype_mapp
if (params.ensembl_mappings) { ch_ensembl_mappings = file(params.ensembl_mappings, checkIfExists: false) }
if (params.ensembl_mappings) { ch_ensembl_mappings2 = file(params.ensembl_mappings, checkIfExists: false) }
if (params.ensembl_mappings) { ch_ensembl_mappings3 = file(params.ensembl_mappings, checkIfExists: false) }
if (params.reddim_genes_yml) { ch_reddim_genes_yml = file(params.reddim_genes_yml, checkIfExists: true) }
if (params.reddim_genes_yml) { ch_reddim_genes_yml = file(params.reddim_genes_yml, checkIfExists: false) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is intended to check for file existence only where the file is specified. Are you seeing it run this check even without the file being provided?

Copy link
Member

@pinin4fjords pinin4fjords Mar 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably the issue in fact:

reddim_genes_yml = './conf/reddim_genes.yml'
(i.e. there's a default value for this 'optional' input). Did you try unsetting the optional things?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though I'm not sure how optional this really is, given that the channel is used unconditionally

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I try to not specify anything i.e. remove the value that was previously set, but the pipeline still expects it because of the line above

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I'm saying is, the if (params.reddim_genes_yml) { should prevent the existence check from happening where the parameter is not supplied, which implies that the problem is the value is getting set inappropriately somewhere, rather than the existence check itself.


/*
========================================================================================
Expand Down