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

Plot tracks in latent space and real space #135

Merged
merged 9 commits into from
Aug 17, 2024
Merged

Conversation

mattersoflight
Copy link
Member

@mattersoflight mattersoflight commented Aug 15, 2024

This PR aims to add plotting utilities to visualize features (or their dimensionally reduced versions) over tracks of single cells, alongside images of the same tracked cell.

  • Implement visualization of single track: all features (X-dimension: feature, Y-dimension: time), UMAP or PCA (track in UMAP1-UMAP2 space or PCA1-PCA2 space), images of the same cell.
  • overlay visualization of multiple tracks

Copy link
Member Author

@mattersoflight mattersoflight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ziw-liu let's use this PR to coordinate development of the plotting features we need next.

@mattersoflight mattersoflight requested a review from ziw-liu August 15, 2024 16:25
@mattersoflight
Copy link
Member Author

mattersoflight commented Aug 16, 2024

@Soorya19Pradeep Current commit shows how to use TripletDataModule to load data from a specific track_id and render in napari.

image

mattersoflight and others added 2 commits August 15, 2024 18:03
* animated latent space

* delete duplicate umap calculation

---------

Co-authored-by: Shalin Mehta <[email protected]>
@ziw-liu
Copy link
Collaborator

ziw-liu commented Aug 16, 2024

@Soorya19Pradeep Note that the animated plot will be missing legend items (e.g. infected) if the class is not present in the first frame. This is an upstream issue.

@mattersoflight
Copy link
Member Author

mattersoflight commented Aug 17, 2024

@Soorya19Pradeep as discussed offline, please refactor this script to generate a "report of embeddings" with a curated test set of cells annotated for cell division and infection events. Let's compare these plots (on confluence) for the model you just trained and the similar model trained with a larger FOV.

@mattersoflight mattersoflight marked this pull request as ready for review August 17, 2024 01:54
@mattersoflight mattersoflight merged commit 9b6e3f2 into main Aug 17, 2024
4 checks passed
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.

2 participants