From 282a60a8c4d0cf6035a7c2e1e8bb6fa9968bbe65 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Wed, 11 Sep 2024 12:21:55 +0200 Subject: [PATCH] To v 1.4 --- .../java/org/metagene/genestrip/goals/DB2FastqGoalTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/metagene/genestrip/goals/DB2FastqGoalTest.java b/src/test/java/org/metagene/genestrip/goals/DB2FastqGoalTest.java index ca84252a..7917dc63 100644 --- a/src/test/java/org/metagene/genestrip/goals/DB2FastqGoalTest.java +++ b/src/test/java/org/metagene/genestrip/goals/DB2FastqGoalTest.java @@ -33,6 +33,7 @@ import org.junit.Test; import org.metagene.genestrip.APITest; import org.metagene.genestrip.GSCommon; +import org.metagene.genestrip.GSConfigKey; import org.metagene.genestrip.GSGoalKey; import org.metagene.genestrip.GSMaker; import org.metagene.genestrip.GSProject; @@ -54,6 +55,8 @@ public void testDB2FastqGoal() throws IOException { // release). GSProject project = new GSProject(config, "human_virus", null, null, null, null, null, false, "64320,12637+", null, null, null, false); + project.initConfigParam(GSConfigKey.WRITED_KRAKEN_STYLE_OUT, true); + GSMaker maker = new GSMaker(project); String[] taxids = new String[] { "64320", "12637", "11053", "11060", "11069", "11070" }; @@ -71,7 +74,7 @@ public void testDB2FastqGoal() throws IOException { for (int i = 0; i < taxids.length; i++) { File file = goal.getOutputFile(taxids[i]); - MatchingResult result = maker.match(false, "", file.toString()); + MatchingResult result = maker.match(false, taxids[i], file.toString()); Map map = result.getTaxid2Stats(); assertEquals(kmers[i], map.get(taxids[i]).getKMers()); assertEquals(kmers[i], map.get(taxids[i]).getUniqueKMers());