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

Error running VQSR in joint VC: nextflow.exception.MissingProcessException: Missing process or function mix #1016

Closed
amizeranschi opened this issue May 7, 2023 · 6 comments · Fixed by #1022
Labels
bug Something isn't working

Comments

@amizeranschi
Copy link
Contributor

amizeranschi commented May 7, 2023

Description of the bug

Hello,

I'm getting the error in the title when attempting to run a joint variant calling pipeline. The error appears almost as soon as the pipeline starts running and the stack trace contains the following:

[...]
	at nextflow.cli.CmdRun.run(CmdRun.groovy:368)
	at nextflow.cli.Launcher.run(Launcher.groovy:494)
	at nextflow.cli.Launcher.main(Launcher.groovy:653)
Caused by: groovy.lang.MissingMethodException: No signature of method: java.lang.String.mix() is applicable for argument types: (String) values: [--resource:ensemblvcf,known=false,training=true,truth=true,prior=10.0 Saccharomyces_cerevisiae.vcf.gz]
Possible solutions: md5(), is(java.lang.Object), wait(), trim(), next(), find()
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:70)
	at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
[...]

The error seems to refer to the way I've configured --dbsnp_vqsr, so I can't rule out a configuration error.

I'm attaching a script that reproduces the error using some yeast data. It should take less than 5 minutes to run.

Relevant files

sarek-error.sh.txt

System information

Nextflow 23.04.0 or 23.04.1
nf-core/sarek dev -latest

@amizeranschi amizeranschi added the bug Something isn't working label May 7, 2023
@FriederikeHanssen
Copy link
Contributor

Do you also have the full log file?

@amizeranschi
Copy link
Contributor Author

Sure, here's the full log. Were you able to reproduce the error using the script I provided?

error.nextflow.log.txt

@amizeranschi
Copy link
Contributor Author

@asp8200
Copy link
Contributor

asp8200 commented May 10, 2023

I think I got the same or at least a very similar error on the dev-branch. As far as I could tell, it is these lines with the mix-operator

indels_resource_label = known_indels_vqsr.mix(dbsnp_vqsr).collect()
snps_resource_label = known_snps_vqsr.mix(dbsnp_vqsr).collect()

which cause an error msg like

Missing process or function mix([--resource:dbsnp,known=false,training=true,truth=false,prior=2.0 dbsnp_146.hg38.vcf.gz])

@amizeranschi
Copy link
Contributor Author

@asp8200 Which command are you running? Could you also try running the commands from here? Does this also reproduce the error for you?

@amizeranschi
Copy link
Contributor Author

This was solved in #1022

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

Successfully merging a pull request may close this issue.

3 participants