Skip to content

Commit

Permalink
fix typo in nextflow config related to fna_faa_gff
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetit3 committed Apr 8, 2024
1 parent f0f3b32 commit cfd4c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nf/bactopia_tools.nf
Expand Up @@ -177,12 +177,12 @@ def _collect_inputs(sample, dir, extension) {
if (!file("${faa}").exists() && !file("${faa}.gz").exists()) {
// Fall back on Prokka
faa = "${base_dir}/${PATHS['faa']}/prokka/${sample}.faa"
gff = "${base_dir}/${PATHS['faa']}/bakta/${sample}.gff"
gff = "${base_dir}/${PATHS['faa']}/prokka/${sample}.gff"
}

if (file("${fna}.gz").exists() && file("${faa}.gz").exists() && file("${gff}.gz").exists()) {
return tuple([id:sample, is_compressed:true], [file("${fna}.gz")], [file("${faa}.gz")], [file("${gff}.gz")])
} else if (file(fna).exists() && file(faa).exists() && file(gff).exists() {
} else if (file(fna).exists() && file(faa).exists() && file(gff).exists()) {
return tuple([id:sample, is_compressed:false], [file("${fna}")], [file("${faa}")], [file("${gff}")])
}
} else if (extension == 'fna_faa') {
Expand Down

0 comments on commit cfd4c12

Please sign in to comment.