diff --git a/subworkflows/local/get_orthologs.nf b/subworkflows/local/get_orthologs.nf index 814aba8..2b20b3e 100644 --- a/subworkflows/local/get_orthologs.nf +++ b/subworkflows/local/get_orthologs.nf @@ -131,24 +131,22 @@ workflow GET_ORTHOLOGS { ch_versions .mix(FETCH_INSPECTOR_GROUP_ONLINE.out.versions) .set { ch_versions } - // TODO check that this is correct - if (params.local_databases) { - FETCH_EGGNOG_GROUP_LOCAL ( - ch_query, - params.eggnog_path, - params.eggnog_idmap_path - ) - - ch_orthogroups - .mix(FETCH_EGGNOG_GROUP_LOCAL.out.eggnog_group) - .set { ch_orthogroups } + + FETCH_EGGNOG_GROUP_LOCAL ( + ch_query, + params.eggnog_path, + params.eggnog_idmap_path + ) - ch_versions - .mix(FETCH_EGGNOG_GROUP_LOCAL.out.versions) - .set { ch_versions } - } + ch_orthogroups + .mix(FETCH_EGGNOG_GROUP_LOCAL.out.eggnog_group) + .set { ch_orthogroups } - } else { // online/local separation is used + ch_versions + .mix(FETCH_EGGNOG_GROUP_LOCAL.out.versions) + .set { ch_versions } + } + else { // online/local separation is used // local only if (params.local_databases) { if (!params.skip_oma) {