Skip to content

Show protein context above precursor list in QC plots#1197

Open
ankurjuneja wants to merge 5 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_issue1043
Open

Show protein context above precursor list in QC plots#1197
ankurjuneja wants to merge 5 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_issue1043

Conversation

@ankurjuneja
Copy link
Copy Markdown
Contributor

Rationale

https://github.com/LabKey/internal-issues/issues/1043

Related Pull Requests

Changes

@ankurjuneja
Copy link
Copy Markdown
Contributor Author

image

Copy link
Copy Markdown
Contributor

@labkey-jeckels labkey-jeckels left a comment

Choose a reason for hiding this comment

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

Initial review looks good. A couple of questions/suggestions.

seriesColors.add(color);

// set the peptide group (protein / molecule list) for the combined plot tree legend
PeptideGroup peptideGroup = PeptideGroupManager.getPeptideGroup(c, molecule.getPeptideGroupId());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Many children may reference the same peptideGroup. Add a simple cache to avoid duplicate lookups

d3.selectAll('path.line').attr('fill-opacity', 1).attr('stroke-opacity', 1);
d3.selectAll('.legend .legend-item').attr('fill-opacity', 1).attr('stroke-opacity', 1);
d3.selectAll('.legend .legend-item').each(function(d) {
var opacity = (d && d.name && !d.separator && hidden[d.hoverText || d.name.split('|')[0]]) ? 0.3 : 1;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are a lot of split('|') calls here. Should we use a constant? I'm not seeing where the value is being concatenated, but is there a risk of the values having a pipe in them and confusing our splitting?

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.

2 participants