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

Staphtyper module compilation error #503

Open
Kiratrea opened this issue Apr 8, 2024 · 2 comments
Open

Staphtyper module compilation error #503

Kiratrea opened this issue Apr 8, 2024 · 2 comments
Labels
fixed question Further information is requested

Comments

@Kiratrea
Copy link

Kiratrea commented Apr 8, 2024

Hello, after successfully processing all my samples I have been trying to use the staphtyper workflow. Each time I come across this error. I can't seem to figure out what is causing the unexpected input, could my file structure be part of the issue?

N E X T F L O W ~ version 23.10.1
Launching /home/grege/anaconda3/envs/bactopia-dev/share/bactopia-3.0.2/main.nf [distracted_ptolemy] DSL2 - revision: 0cd9f79ba7
ERROR ~ Module compilation error

  • file : /home/grege/anaconda3/envs/bactopia-dev/share/bactopia-3.0.2/./workflows/../lib/nf/bactopia_tools.nf
  • cause: Unexpected input: '{\n // Default to Bakta faa\n faa = "${base_dir}/${PATHS['faa']}/bakta/${sample}.faa"\n gff = "${base_dir}/${PATHS['faa']}/bakta/${sample}.gff3"\n if (!file("${faa}").exists() && !file("${faa}.gz").exists()) {\n // Fall back on Prokka\n faa = "${base_dir}/${PATHS['faa']}/prokka/${sample}.faa"\n gff = "${base_dir}/${PATHS['faa']}/bakta/${sample}.gff"\n }\n\n if (file("${fna}.gz").exists() && file("${faa}.gz").exists() && file("${gff}.gz").exists()) {\n return tuple([id:sample, is_compressed:true], [file("${fna}.gz")], [file("${faa}.gz")], [file("${gff}.gz")])\n } else if (file(fna).exists() && file(faa).exists() && file(gff).exists() {\n return tuple([id:sample, is_compressed:false], [file("${fna}")], [file("${faa}")], [file("${gff}")])\n }\n }' @ line 188, column 5.
    } else if (extension == 'fna_faa') {
    ^

1 error

-- Check script 'anaconda3/envs/bactopia-dev/share/bactopia-3.0.2/./workflows/bactopia-tools.nf' at line: 9 or see '.nextflow.log' file for more details

Here is the nextflow log file
.nextflow.log

@Kiratrea Kiratrea added the question Further information is requested label Apr 8, 2024
@rpetit3 rpetit3 added the fixed label Apr 8, 2024
@rpetit3
Copy link
Member

rpetit3 commented Apr 8, 2024

Hi @Kiratrea

Thank you for bringing this to my attention! It is now fixed (cfd4c12) and available from the dev version.

Cheers,
Robert

@Kiratrea
Copy link
Author

Kiratrea commented Apr 8, 2024

Wahoo, looks great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants