Region Embeddings#46
Closed
bramstuyven wants to merge 8 commits into
Closed
Conversation
This file contains hidden or 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
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.
Aggregating downstream Mindi seqlets per region to create region embeddings for visualisation of downstream enhancer modelling.
Options
Changes
Explanation
Aggregations
Each called seqlet is compared to a database of reference motifs using tomtom similarity scoring. This results in a vector for each seqlet in the form of the similarity matrix found in the anndata object. To be able to compare the original regions based on motif compositions, different ways of aggregating these seqlets to get a region representation of the motif content are implemented here. Mean aggregation of pca or vae reduced similarity vectors takes the (un)weighted mean of the pca or vae reductions respectivly. Count aggregation creates a count vector (unweighted) for a given annotation column in adata.obs or summed weights of those annotations.
Weights
In both mean and count aggregating, weights specific to a seqlet are calculated by softmaxing the attribution scores of the seqlets per region.
Usage
Default (PCA, 50 latents)
VAE with 16 latents