-
Notifications
You must be signed in to change notification settings - Fork 13
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
AG-1344 scaling bug fix and refactor of gene evidence box plots #1281
AG-1344 scaling bug fix and refactor of gene evidence box plots #1281
Conversation
@@ -34,6 +34,7 @@ export class BoxPlotComponent extends BaseChartComponent { | |||
@Input() yAxisLabel = 'LOG 2 FOLD CHANGE'; | |||
@Input() yAxisMin: number | undefined; | |||
@Input() yAxisMax: number | undefined; | |||
@Input() yAxisPadding = 0.2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now the chart has the ability to have a padding specified
...app/features/genes/components/gene-evidence-proteomics/gene-evidence-proteomics.component.ts
Show resolved
Hide resolved
src/app/features/charts/components/box-plot-chart/box-plot-chart.component.ts
Show resolved
Hide resolved
...app/features/genes/components/gene-evidence-proteomics/gene-evidence-proteomics.component.ts
Show resolved
Hide resolved
...app/features/genes/components/gene-evidence-proteomics/gene-evidence-proteomics.component.ts
Show resolved
Hide resolved
...app/features/genes/components/gene-evidence-proteomics/gene-evidence-proteomics.component.ts
Show resolved
Hide resolved
7e0740a
to
0c19150
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good!
While looking at the examples in the ticket, I noticed that the TMT plot for MDK still isn't shown, even though there is data available. I think this may be related to this code , where selectedUniProtId
is determined using the uniprotids from both proteomics_LFQ
and proteomics_TMT
. For MDK, proteomics_LFQ
has E9PPJ5 and P21741 as uniprotids, but proteomics_TMT
only has P21741 as uniprotid. E9PPJ5 is set as the selectedUniProtId
, but is only found in the LFQ data, so no data is displayed for the TMT plot. Would you mind taking a look? Up to you whether to make the fix here or open a new ticket to track!
Good observation. The nature of the data is that there are times that data for LFQ or TMT may not exist. In that case, we can allow the plots to show as 'no data is currently available'. |
@@ -54,10 +54,6 @@ export class GeneEvidenceProteomicsComponent { | |||
init() { | |||
this.reset(); | |||
|
|||
if (!this._gene?.proteomics_LFQ && this._gene?.proteomics_TMT) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Original code is confusing and these props are always defined.
Oh I see! I didn't notice the dropdown for selecting the |
No description provided.