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

Multi project classification #107

Merged
merged 81 commits into from
Jul 24, 2024
Merged

Conversation

stefanhahmann
Copy link
Collaborator

Resolves #101

@stefanhahmann stefanhahmann self-assigned this Jun 21, 2024
@stefanhahmann stefanhahmann force-pushed the multi_project_classification branch 11 times, most recently from 1226a51 to 070bab3 Compare June 24, 2024 14:29
@stefanhahmann stefanhahmann force-pushed the multi_project_classification branch 2 times, most recently from 094e34f to 1b4eb25 Compare June 27, 2024 16:21
maarzt
maarzt previously approved these changes Jul 4, 2024
Copy link
Collaborator

@maarzt maarzt left a 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.

@@ -291,6 +419,73 @@ public void setVisualisationParams( final boolean showDendrogram )
this.showDendrogram = showDendrogram;
}

public void setExternalProjects( final File[] projects, final boolean addTagSetToExternalProjects )
Copy link
Collaborator

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....

… 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
* Allows passing different kinds of distance matrices to classify lineage trees
Copy link

sonarcloud bot commented Jul 24, 2024

@stefanhahmann stefanhahmann merged commit 3b8a4b1 into master Jul 24, 2024
3 checks passed
@stefanhahmann stefanhahmann deleted the multi_project_classification branch September 2, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lineage Classification Averaging Multiple Embryos
2 participants