-
Notifications
You must be signed in to change notification settings - Fork 1
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
Multi project classification #107
Conversation
1226a51
to
070bab3
Compare
094e34f
to
1b4eb25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome test coverage! Also very well implemented user feedback in the Classify Lineages dialog.
The PR adds new functionality to allow lineage classification for multiple mastodon projects. The new functionality is not trivial. Unfortunately this also leads to growing classes and methods. Which makes the PR hard to review, and very likely complicate code maintenance in the future. If possible please try to keep classes and methods small.
src/main/java/org/mastodon/mamut/classification/ClassifyLineagesPlugin.java
Outdated
Show resolved
Hide resolved
src/main/java/org/mastodon/mamut/classification/ClassifyLineagesController.java
Outdated
Show resolved
Hide resolved
src/main/java/org/mastodon/mamut/classification/util/Classification.java
Show resolved
Hide resolved
src/test/java/org/mastodon/mamut/classification/ClassifyLineagesControllerTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/mastodon/mamut/classification/ClassifyLineagesControllerTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/mastodon/mamut/classification/ClassifyLineagesControllerTest.java
Outdated
Show resolved
Hide resolved
@@ -291,6 +419,73 @@ public void setVisualisationParams( final boolean showDendrogram ) | |||
this.showDendrogram = showDendrogram; | |||
} | |||
|
|||
public void setExternalProjects( final File[] projects, final boolean addTagSetToExternalProjects ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend remove the ProjectSession, MastodonProjectService classes. They don't bring any advantage for the code. Instead I would recommend to add a class ExternalProjects which has this setExternalProjects(File[]) method, a close() method and probably some getter methods....
…nstead of a 2D array * By this in other parts of the code generics can be used better
…and updateFeedback()
6275b5a
to
217689b
Compare
… classifyLineageTrees to method getDistanceMatrix()
…ller * This allows that this method can be called with any project model in the future * For backwards compatibility a getRoots() method with the project model of the controller is introduced
…odel in ClassifyLineagesController
* Allows passing different kinds of distance matrices to classify lineage trees
a0eedf3
to
34887fc
Compare
8287d82
to
d26d428
Compare
* Instead use temp copies of pre generated test models that are stored in files
7989e81
to
e51b3a8
Compare
9a1e8d3
to
83e35ca
Compare
2df93d4
to
ff76f59
Compare
Quality Gate passedIssues Measures |
Resolves #101