Laurenz Holcik
01/12/2026, 2:37 PMNFCORE_MAGMAP:MAGMAP:PROKKAGFF2TSV locally to be robust to missing columns (like ec_number) and to check for Bakta's Dbxref format. It works for Bakta now and stays compatible with Prokka.
Do you think this is of general interest? If so I could create a pull requestDaniel Lundin
01/12/2026, 2:47 PMDaniel Lundin
01/12/2026, 2:47 PMLaurenz Holcik
01/12/2026, 2:53 PMDaniel Lundin
01/12/2026, 2:59 PMLaurenz Holcik
01/17/2026, 1:15 PMGCA_002688505.1_ASM268850v1.fna.gz from the test-dataset repo using bakta to test the new script. I noticed that when bakta is run with the --compliant flag, the only difference of the gff file from prokka is that it's dbxref instead of db_xref . Anyways, as the PROKKAGFF2TSV script in my PR is set up, it works in either case.
Should I submit a PR for the test-dataset to add the gff annotated with bakta?
Thanks for your help!Daniel Lundin
01/18/2026, 8:59 AM.gff3.gz as the suffix as we have a too strict schema in assets/schema_genomeinfo.json that also needs to be updated (just add that to the same PR since it's not merged yet). Since Bakta uses this suffix, we're going to make people annoyed if they have to rename all their files to use .gff.gz when files are produced as .gff3.gz.Laurenz Holcik
01/21/2026, 3:06 PMnf-test test -profile docker,test locally, some assertions fail, also with the master branch. Some snapshots are different (seems like largely lists of tools and their versions) and then there are these assertions:
assert path("${params.outdir}/summary_tables/magmap.genomes2orfs.tsv.gz").linesGzip.size() > 800
and `assert path("${params.outdir}/summary_tables/magmap.prokka-annotations.tsv.gz").linesGzip.size() > 800`which fail because the output files only have 425 lines.
But when I created the PR the same tests seemed to pass when they were run automatically on github. I tried with the master and dev branches, without my modifications.Daniel Lundin
01/21/2026, 3:17 PMLaurenz Holcik
01/21/2026, 3:19 PMDaniel Lundin
01/21/2026, 3:22 PMDaniel Lundin
01/21/2026, 3:23 PM> in that test is that the numbers differ a bit between runs, but shouldn't be that low if all is correct.)Daniel Lundin
01/21/2026, 3:33 PMLaurenz Holcik
01/21/2026, 3:34 PMLaurenz Holcik
01/22/2026, 7:24 AMgit clone <https://github.com/nf-core/magmap.git>
cd magmap/
nf-test test --profile docker,test
The first test passes (-profile test), and from the second one (-profile test_duplicates) they fail as described before.
I also tried it on my private laptop yesterday and got the same results.
Sorry for my confusionDaniel Lundin
01/22/2026, 7:26 AM--profile +docker,test, note the +.Daniel Lundin
01/22/2026, 7:27 AMnf-test test --profile +docker tests/default.nf.test which also allows me to nf-test test --profile +docker tests/*.nf.test to run all.)Laurenz Holcik
01/22/2026, 8:00 AMnf-test test --profile +docker,test
from the second test on it fails again, but the assertion with the line numbers seems to work. The only assertion failing is the snapshot comparing all created output files, the differences are from bbduk.
But when I run
nf-test test --profile +docker tests/*.nf.test
all tests pass 🙂
So I would now change the testdata, should I add one bakta gff3 to the duplicates_genomes.csv? Because genometest.csv contains only one genome and genomes_full_test.csv links to awsDaniel Lundin
01/22/2026, 8:13 AMDaniel Lundin
01/22/2026, 8:16 AMduplicates_genomes.csv please. I suppose we could update genometest.csv too but it can also remain as it is. In either case, the two tests will make sure both gff formats are tested, including the .gff3* suffix.Laurenz Holcik
01/23/2026, 8:23 AMduplicates_genomes.csv the tests of the magmap master branch would fail since the parsing of the gff3 does not work. I would propose instead to add a new csv duplicates_genomes_bakta.csv to the testdata repo which has the gff changed to the gff3 from bakta and change the duplicates_genomes test in my PR to duplicates_genomes_bakta and then use the new duplicates_genomes_bakta.csv for that modified test. That way the tests of the master branch will still work since all the original files in the test-data repo remain unchanged and the new version of the test checks the bakta compatibility.
If you agree I would create the PR for the test-data repo, as soon as changes are merged I would update the PR for the magmap dev repo, then the new duplicates test should passDaniel Lundin
01/23/2026, 8:27 AM.gff3 with or without .gz should be accepted in the genome sheet. Any PRs to master would then work when it's time for them. Would that fix what you describe?Laurenz Holcik
01/23/2026, 8:33 AMduplicates_genomes.csv from the test-data repo. If I would modify that file, the tests of the master branch would fail since they also use it. So instead I would add new files, duplicates_genomes_bakta.csv and the gff3 to the test-data repo and leave the original unchanged.
Then I would modify the duplicates test in my PR to use the new genome file from the test-data repo to test the feature.Daniel Lundin
01/23/2026, 8:35 AMDaniel Lundin
01/23/2026, 8:35 AMgff3 fix.Laurenz Holcik
01/23/2026, 8:37 AMduplicates_genomes.csvDaniel Lundin
01/23/2026, 8:39 AMLaurenz Holcik
01/23/2026, 8:42 AMLaurenz Holcik
01/23/2026, 8:47 AMduplicates_genomes.csv from the test data but instead uses a file from the magmap repo itself.Daniel Lundin
01/23/2026, 8:50 AMLaurenz Holcik
01/23/2026, 8:56 AMDaniel Lundin
01/23/2026, 9:00 AMLaurenz Holcik
01/23/2026, 9:01 AMduplicates_genomes.csv with the link to the new bakta gff3 correct?Daniel Lundin
01/23/2026, 9:02 AMLaurenz Holcik
01/23/2026, 12:23 PM--kingdom parameter defaults to Bacteria .
So as far as I can tell the way the pipeline is set up now it would not support using both archaeal and bacterial genomes. Theoretically as you said it could be possible to split them and annotate the genomes separately. We could either make this a user input or infer the kingdom from the GTDB-tk output for which we would need to slightly change the workflow order.Daniel Lundin
01/23/2026, 12:37 PM--gtdbtk_metadata for user-provide genomes or --gtdb_metadata for public, NCBI-genomes. If --kingdom (unfortunate name; should be --domain) supports Archaea, one would just have to supply the domain with the call. This would probably mean some changes to the pipeline logic besides adding Bakta. The first thing I'd try is to parse the taxonomy sources into a channel that can be `filter`ed and `join`ed appropriately to select genomes for either annotation program or set the domain.Laurenz Holcik
01/23/2026, 12:44 PMDaniel Lundin
01/23/2026, 12:45 PMLaurenz Holcik
01/23/2026, 12:45 PMDaniel Lundin
01/23/2026, 12:47 PMLaurenz Holcik
01/23/2026, 12:54 PM