Skip to content

Conversation

@xiaoliz0
Copy link
Contributor

@xiaoliz0 xiaoliz0 commented Jul 4, 2025

This was tested for a while in OUS side and confirmed by the biologist group.

Copy link
Collaborator

@marrip marrip left a comment

Choose a reason for hiding this comment

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

Looks good, we need to test it though meaning merging it into main, getting a latest tag for the docker image and then we can run it at HUS.

One thing, I mentioned earlier, it would be nice if the positioning of the pictures on the slides could be calculated mathematically instead of placing them according to what was empirically determined. But I understand that this would maybe require more rewriting so let's skip it for now.

pdf_page_image_to_ppt(CNV_overview_plots_pdf,output_ppt_file,A2_to_extract,width_scale=1,height_scale=0.5)
if(DNA_normal_sampleID != ""):
pages_to_extract = [2, 5, 6]
B3_C1_to_extract = [5, 6]
Copy link
Collaborator

Choose a reason for hiding this comment

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

just a minor comment here, the variable B3_C1_to_extract does not help me understand what it holds - pages_to_extract was more self-explanatory. May I ask the reasoning behind the change?

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah, looking at line 1536, it is to make the destinction between A2_to_extract and B3_C1_to_extract. What do A2, B3 and C1 stand for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Martin, A2, B3 and C1 are the CNV plot image names in the TSOPPI results. And there will be conditions to extract different plots into the report.

Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks for the clarification. Maybe you could just add a comment about it to make sure anybody reading your code understands ☺️

@tonjegul
Copy link

tonjegul commented Jul 4, 2025

Hi, The layout for the CNV overview plots look good now. And I agree with Martin's comment about "positioning of the pictures on the slides could be calculated mathematically instead of placing them according to what was empirically determined.". If it is too much work it is not needed now, but good to plan for it in the future.
These pictures should be centralized in the middle of the file format.

@xiaoliz0
Copy link
Contributor Author

xiaoliz0 commented Jul 4, 2025

Yes, I agree we should have a plan to format the picture positions in the report slides.

@marrip
Copy link
Collaborator

marrip commented Jul 8, 2025

Hi, The layout for the CNV overview plots look good now. And I agree with Martin's comment about "positioning of the pictures on the slides could be calculated mathematically instead of placing them according to what was empiricaIlly determined.". If it is too much work it is not needed now, but good to plan for it in the future. These pictures should be centralized in the middle of the file format.

I am testing some things to do that and maybe I can create a PR with my suggestion - I will probably not have time the next days so for me it is fine to merge these changes into main to allow for some testing.

@xiaoliz0 xiaoliz0 merged commit e0a291b into main Aug 27, 2025
1 check 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.

Request from biology OUS: re-format the CNV overview plots in ppt report

4 participants