Skip to content

Commit

Permalink
- DEVSU-2532
Browse files Browse the repository at this point in the history
- Add new copy number image file patterns to allow image uploading in report creation process

Co-authored-by: Lara Matiello Pletz <[email protected]>
  • Loading branch information
bnguyen-bcgsc and Nithriel committed Dec 18, 2024
1 parent 11a532b commit fcf0e56
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module.exports = {
'scpPlot',
'msi.scatter',
'pathwayAnalysis.legend',
'copyNumber(.*)',
].map((patt) => {
return `(${patt})`;
}).join('|')}$`,
Expand Down
60 changes: 60 additions & 0 deletions app/routes/report/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,66 @@ const IMAGES_CONFIG = [
height: 450,
format: 'PNG',
},
{
pattern: 'copyNumberChr(1|2)',
width: 1625,
height: 875,
format: 'PNG',
},
{
pattern: 'copyNumberChr(3|4|5)',
width: 1300,
height: 875,
format: 'PNG',
},
{
pattern: 'copyNumberChr(6|7|X)',
width: 1150,
height: 875,
format: 'PNG',
},
{
pattern: 'copyNumberChr(8|9)',
width: 1100,
height: 875,
format: 'PNG',
},
{
pattern: 'copyNumberChr(10|11|12|13|14)',
width: 1000,
height: 1000,
format: 'PNG',
},
{
pattern: 'copyNumberChr15',
width: 1000,
height: 1150,
format: 'PNG',
},
{
pattern: 'copyNumberChr(16|17|18)',
width: 900,
height: 1150,
format: 'PNG',
},
{
pattern: 'copyNumberChr(19|20|Y)',
width: 700,
height: 1150,
format: 'PNG',
},
{
pattern: 'copyNumberChr(21|22)',
width: 550,
height: 1150,
format: 'PNG',
},
{
pattern: 'copyNumberLegend',
width: 300,
height: 1150,
format: 'PNG',
},
];

/**
Expand Down

0 comments on commit fcf0e56

Please sign in to comment.