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

Python rebuild of dMLPA-reporting #3

Open
wants to merge 15 commits into
base: development
Choose a base branch
from
Open

Conversation

EKPayne
Copy link

@EKPayne EKPayne commented Oct 18, 2024

  • Initial rebuild of the dMLPA-reporting script originally written in R (https://github.com/moka-guys/dMLPA-reporting)
  • PDF report generated from HTML and populated using Jinja2
  • Includes alternative copy number calling for PMS2
  • Error handling added

Adds more detailed information on the input files required.
connection port is changed from string to int.
Split upload directory for probe file and patient files.
Created and output directory
This includes:
- creation of html report template
- parsing test data from results/excel file
- converting copy number analysis script to python from original R script in https://github.com/moka-guys/dMLPA-reporting
- Generating minimal pdf reports (from html template) per results/excel file
- Updating backend.py to create zip of output files rather than of input files
Also corrects mistake of using "mean dosage quotient" as apposed
to "dosage quotient" throughout.
Including:
- One matplotlib generated graph per gene with identified CNV's
- One summary table of probes associated with CNV's per gene.
1) Moving hardcoded elements to config.py
2) Removes generation of probe_df outside of the for loop
3) Updates report with version of app, genome build, warning message if not in production env
4) Adds reporting comment when no copy number variants are detected
- Alternative DQ ranges specified for PMS2 in config.py
- Generates a different graph when reporting on PMS2
- Adds PMS2 reporting disclaimer
- Adds exon 12 boundary demarcation
- Renames categories used for PMS2 CN variants
[Issue:]
Resolves conflicts from merging in PMS2_merged_categories
Error handling added:
- Files submitted that don't match expected file naming for
probe file and results file
- Probe file submitted that doesn't meet expected file formatting

CN Categories updated to 3dp to account for fact that dq in results file
is rounded to 3dp by digital_mlpa script (see https://github.com/moka-guys/digital_mlpa)
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.

1 participant