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

Parameter validation failed for --hic #179

Open
GallVp opened this issue Nov 14, 2024 · 3 comments
Open

Parameter validation failed for --hic #179

GallVp opened this issue Nov 14, 2024 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@GallVp
Copy link
Member

GallVp commented Nov 14, 2024

Description of the bug

ERROR ~ Validation of pipeline parameters failed!

-- Check '.nextflow.log' file for details
The following invalid input values have been detected:

  • --hic (SB1031HiC1.fastq.gz): "SB1031HiC1.fastq.gz" does not match regular expression [^SR\w+$|^\S+\{1,2\}[\w\.]*\.f(ast)?q\.gz$]

Command used and terminal output

nextflow run plant-food-research-open/assemblyqc \
-revision 2.2.0  \
-profile singularity \
--hic SB1031HiC{1,2}.fastq.gz

Relevant files

No response

System information

plant-food-research-open/assemblyqc -revision 2.2.0

@GallVp GallVp added the bug Something isn't working label Nov 14, 2024
@GallVp
Copy link
Member Author

GallVp commented Nov 14, 2024

This issue arises from the bash expansion operator {}. Bash can be stopped from expanding the HiC files by wrapping it in double quotes as,

—hic "SB1031HiC{1,2}.fastq.gz”

Otherwise, the pipeline sees the following input,

—hic SB1031HiC1.fastq.gz SB1031HiC2.fastq.gz

and the trouble with Nextflow is that it does not pick up multiple arguments for one parameter.

@GallVp GallVp closed this as completed Nov 14, 2024
@annabel-NZ
Copy link

Although this solution fixes the initial input validation step, I am still failing to get the pipeline to treat the HiC input as I would like. The fastq files are in the local directory (but as sym links) The pipeline is failing and seems to be attempting to source these inputs from SRA.

ERROR ~ Error executing process > 'PLANTFOODRESEARCHOPEN_ASSEMBLYQC:ASSEMBLYQC:FETCHNGS:SRATOOLS_PREFETCH (SB1031HiC{1,2}.fastq.gz)'

Caused by:
  Process `PLANTFOODRESEARCHOPEN_ASSEMBLYQC:ASSEMBLYQC:FETCHNGS:SRATOOLS_PREFETCH (SB1031HiC{1,2}.fastq.gz)` terminated with an error exit status (1)

@GallVp
Copy link
Member Author

GallVp commented Nov 14, 2024

Thank you @annabel-NZ

This is a bug in the pipeline logic unfortunately due to the following logic,

"$params.hic".find(/.*[\/].*\.(fastq|fq)\.gz/)

It expects that the fastq files will be nested under some path. To get around this, please try,

--hic "./SB1031HiC{1,2}.fastq.gz”

as the files are in the current directory (./). I'll try to fix it in the next update.

@GallVp GallVp reopened this Nov 14, 2024
@GallVp GallVp added this to the 2.3.0 milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants