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

How to plot the 3d brain in Fig5d? #1

Open
Smilenone opened this issue Nov 24, 2024 · 1 comment
Open

How to plot the 3d brain in Fig5d? #1

Smilenone opened this issue Nov 24, 2024 · 1 comment

Comments

@Smilenone
Copy link

Thank you for your incredible work, which has been a great source of inspiration for me. I was wondering how to visualize a 3D brain in Fig 5d and how to display the coronal, sagittal, and transverse views. Could you release the code on this?

@Smilenone Smilenone changed the title How to plot the 3d brain in 5d? How to plot the 3d brain in Fig5d? Nov 24, 2024
@pangkun97
Copy link
Collaborator

For the 3D visualization of markers in different brain regions shown in Fig. 5, the data can be filtered based on regional information. Using the k3d library, the k3d.points function can be invoked multiple times to assign unique color parameters to each brain region. This allows all regions to be displayed within the same 3D brain model while maintaining distinct visual identities.

To visualize cross-sections, you can constrain one coordinate axis (e.g., the x-axis) to a narrow range for data filtering. Then, using the other two axes (e.g., y and z axes), you can generate 2D plots to represent different sectional views.

The visualization code for this workflow is available in the MAGIC-seq/Analysis-code/Mouse_Embryo_Brain_3D.ipynb file.
image

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

No branches or pull requests

2 participants