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

David test failure #133

Closed
mikekucera opened this issue Oct 23, 2015 · 3 comments
Closed

David test failure #133

mikekucera opened this issue Oct 23, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@mikekucera
Copy link
Contributor

Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec <<< FAILURE! - in org.baderlab.csplugins.enrichmentmap.task.LoadDavidResultTest
testLoad2DavidResult_withoutexpression(org.baderlab.csplugins.enrichmentmap.task.LoadDavidResultTest) Time elapsed: 0.025 sec <<< FAILURE!
java.lang.AssertionError: expected:<114> but was:<84>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at org.baderlab.csplugins.enrichmentmap.task.LoadDavidResultTest.testLoad2DavidResult_withoutexpression(LoadDavidResultTest.java:155)

@mikekucera
Copy link
Contributor Author

The bug is in EnrichmentMap.getAllGenesets().
If both datasets contain the same geneset then its basically random which one it returns. (Iteration order over a HashMap is not specified.)

Sometimes it returns the "ACETYLATION" geneset from dataset2 and the test passes. But if it returns the one from dataset1 it will fail.

What should be the correct behaviour when a geneset with the same name is in both datasets and the geneset has different contents in each dataset?

This bug has me a bit nervous because getAllGenesets() is called in a few places.

@risserlin
Copy link
Contributor

The original design of EM the assumption was that we would only ever have one gmt (geneset definition file) but when we introduced comparison between different data type and different species that changed this.

getallGenesets gets all the genesets from all of the datasets. The call in David test should be specific to the dataset as opposed to getting all the genesets from the enrichment map.
dataset2..getSetofgenesets().getGenesets()
instead of getAllGenesets()

@mikekucera
Copy link
Contributor Author

I fixed the specific problem with the test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants