MolClustPy / SpringSaLaD-Python-Viz

0 stars 0 forks source link

Timeplot for spatial positions of the molecular sites #5

Closed vcellmike closed 3 weeks ago

vcellmike commented 1 month ago

Process viewer_files. For each time point, find center of mass for each color node (=site). Start with z only.

Generate the plot of the distance from center of mass to the membrane over time for each site type.

For verification, Nephrin is membrane-bound, so its sites are originally all close to the membrane, and stay so. However, Nck and NWASP will eventually be closer to the membrane, and binding sites will be closer than non-binding.

FUTURE - WILL BE SEPARATE ISSUES:

  1. Weighted center of mass accounting for radius of each site
  2. Same for molecules (average of all sites).
  3. Add x and y dimensions
  4. Same for centers of molecular clusters (connected components).
  5. Compute the radius for each molecular cluster.
Hlpred commented 1 month ago

Made Average_z_pos.ipynb to find and plot the average z position of a specified site over time. The only issue is I couldn't find a way to figure out the site name just from the viewer file data (some colors correspond to multiple sites in some simulations). For now, you must manually put the site names into a list to see a legend.

This example is for R_L_test_difficult, but it still demonstrates the expected behavior.

image

vcellmike commented 1 month ago

Attention: This is an external email. Use caution responding, opening attachments or clicking on links. Hi Harrison,

To find color-site matching you need to process input file. Just have two files open.

Best, Michael


From: Harrison Perone @.> Sent: Thursday, May 30, 2024 1:32 PM To: MolClustPy/SpringSaLaD-Python-Viz @.> Cc: Blinov,Michael @.>; Author @.> Subject: Re: [MolClustPy/SpringSaLaD-Python-Viz] Timeplot for spatial positions of the molecular sites (Issue #5)

Attention: This is an external email. Use caution responding, opening attachments or clicking on links.

Made Average_z_pos.ipynb to find and plot the average z position of a specified site over time. The only issue is I couldn't find a way to figure out the site name just from the viewer file data (some colors correspond to multiple sites in some simulations). For now, you must manually put the site names into a list to see a legend.

This example is for R_L_test_difficult, but it still demonstrates the expected behavior.

image.png (view on web)https://urldefense.com/v3/__https://github.com/MolClustPy/SpringSaLaD-Python-Viz/assets/71465959/33ce8d48-1e0a-44b8-ae43-501f6087bf8f__;!!Cn_UX_p3!mOBLe0XuaPGofZj43hCm1DtYgd4yWkPLgAnJN3BLSNeSLgiX_qcUUclPaE9KiN6F9ctkgQLCXklAky7Wo0HDNOX7$

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MolClustPy/SpringSaLaD-Python-Viz/issues/5*issuecomment-2140400409__;Iw!!Cn_UX_p3!mOBLe0XuaPGofZj43hCm1DtYgd4yWkPLgAnJN3BLSNeSLgiX_qcUUclPaE9KiN6F9ctkgQLCXklAky7WozL41QZ9$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AG52WOBE7PVJSJIAQF33TBDZE5PEBAVCNFSM6AAAAABIPQ25G6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBQGQYDANBQHE__;!!Cn_UX_p3!mOBLe0XuaPGofZj43hCm1DtYgd4yWkPLgAnJN3BLSNeSLgiX_qcUUclPaE9KiN6F9ctkgQLCXklAky7WoyRL0_I4$. You are receiving this because you authored the thread.Message ID: @.***>

Hlpred commented 1 month ago

I just made it so the legend is automatically generated from the input file

vcellmike commented 1 month ago

Attention: This is an external email. Use caution responding, opening attachments or clicking on links. Hi Harrison,

Thank you for the updates! I checked all the files and with little adjustments, all of them work on Mac for Nephrin-Nick-Nwasp system that I will discuss tomorrow. Please don't make any changes till my talk.

I forgot, are you coming to the center tomorrow or connecting by WebEx? Although it's always more convenient to meet in person, it's OK to connect remotely. After the seminar, I'll be available till 2:30pm, and then I'll be busy for about an hour, so it may be not worth driving 2 hours for 2 hours of communication. But you need to connect online and test that you can hear and talk - I'll introduce you to the audience.

Generally, the code works nicely but needs a lot of usability and commonality improvements, e.g. paths should be treated the same in all files. We'll discuss it after the seminar.

Best, Michael


From: Harrison Perone @.> Sent: Thursday, May 30, 2024 3:29 PM To: MolClustPy/SpringSaLaD-Python-Viz @.> Cc: Blinov,Michael @.>; Author @.> Subject: Re: [MolClustPy/SpringSaLaD-Python-Viz] Timeplot for spatial positions of the molecular sites (Issue #5)

Attention: This is an external email. Use caution responding, opening attachments or clicking on links.

I just made it so the legend is automatically generated from the input file

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MolClustPy/SpringSaLaD-Python-Viz/issues/5*issuecomment-2140734459__;Iw!!Cn_UX_p3!n5uH28ysSIAJ-_EopQlcR5xh5Hcr8530XLOxB2dYKklUq2yBwbXdpc5nDMFu_rpPLfferEf3PytgYms-CyTWS27U$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AG52WOE5F3HQ72535L6RBDTZE54ZZAVCNFSM6AAAAABIPQ25G6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBQG4ZTINBVHE__;!!Cn_UX_p3!n5uH28ysSIAJ-_EopQlcR5xh5Hcr8530XLOxB2dYKklUq2yBwbXdpc5nDMFu_rpPLfferEf3PytgYms-C_vTU0s0$. You are receiving this because you authored the thread.

Hlpred commented 1 month ago

Yes, I'm already here in person for the talk later today.