-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor #10
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plan: - make Salamander compatible with anndata - reimplement NMF models one at a time Remove all algorithms except KL-NMF. The goal is to avoid having a broken software along the refactorization.
The plotting module is now implemented around AnnData objects. Computation and plotting is separated into the tools and plot modules. One major change is that samples now correspond to rows instead of columns of the mutation count matrix.
Samples now correspond to rows. The variable names are adapted to fit the new plotting module.
Function names now include the names of the input data type if there are multiple versions, e.g., an implementation for numpy arrays and a wrapper around this implementation for AnnData inputs.
n_components is now an explicit argument of the dimensionality reduction. The motivation was to improve the transparency of the code.
A joint dimensionality reduction of multidimensional observation annotations of multiple anndata objects is useful for models with shared embedding spaces, e.g. (multimodal) correlated NMF.
no longer support
The KL-NMF implementation now only supports the faster joint update rules.
update the KL-NMF tests to the AnnData based model structure
The function 'get_obs_order' is necessary for the multimodal exposure plot and should therefore not be private.
The new implementation of multimodal correlated NMF doesn't use the 'add_penalty' parameter
This reverts commit 5081d62.
The scatter and embedding plot now have color and zorder options. This is useful for plotting multiple subgroups of points, e.g., the signature and sample embeddings in correlated NMF.
Add functions to plot .obs and .obsm attributes of multiple AnnData and MuData objects.
Add color and zorder options to the embedding plot. I also removed the abstraction of the embedding plot in signature_nmf to improve the readability of the code.
Implemented modality-specific updates to improve the indentation and readability.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactor Salamander using the AnnData and MuData data structures.