Skip to content

Conversation

@jcass11
Copy link
Collaborator

@jcass11 jcass11 commented Dec 5, 2024

Purpose

This code creates the new Supp Movie S6 which pairs with Figure 1F (shown below). It shows the sample nucleus cropped images from two frames before formation to two frames after breakdown, with segmentation outline shown for all interphase frames (just like 1F).

Figure1

Output

Here's an example of a frame from this movie:
frame_67

Notes about how the code was written

To make the movie I reused all the pieces I could from the Fig 1F code, including moving the AxesCreator class to figure_helper.py so it could be reused. There are some aspects of the new script to make the movie that are copies of pieces of the 1F workflow but I decided that at this point starting to actually pull the 1F workflow apart to make reusable functions for this was not worth it. Happy to revisit in the future.

NOTE: This workflow takes hours to run. This PR was purposely does not add the movie making workflow to figure_1_workflow.py - otherwise it would run every time we run/test run_all_manuscript_workflows.py and because this takes hours to run, that is too disruptive to be worth it.

Testing

Aside from the new workflow it generates these code changes only impact figure 1 workflow code

  • ✅ confirmed figure_1_workflow.py still runs and produces the old/expected output

# the height is 5% of the axes height

ax.plot([x, x2], [y, y], color="w", linewidth=2)
ax.plot([x, x2], [y + 3, y + 3], color="w", linewidth=2)
Copy link
Contributor

Choose a reason for hiding this comment

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

why was this change made? Won't it affect other panels in Figure1

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. I see now that this is just the scale bar location which is not critically important. I'll approve :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes for me this was placing the scale bar with the micron symbol and the scalebar touching/overlapping and I wanted a physical space between them

@chantelleleveille chantelleleveille added this pull request to the merge queue Dec 6, 2024
Merged via the queue into dev with commit 319919c Dec 6, 2024
1 check passed
@chantelleleveille chantelleleveille deleted the formation_breakdown_movie branch December 6, 2024 18:59
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.

4 participants