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

Pick the proper fusion gene partner #8602

Merged
merged 1 commit into from
May 17, 2021

Conversation

zhx828
Copy link
Member

@zhx828 zhx828 commented May 14, 2021

This is related to #8571

@zhx828 zhx828 added the bug label May 14, 2021
@zhx828 zhx828 requested a review from kalletlak May 14, 2021 22:23
@zhx828 zhx828 force-pushed the fix-fusion-gene-issue branch from 9bc5c5e to 2132cee Compare May 14, 2021 22:27
@zhx828 zhx828 force-pushed the fix-fusion-gene-issue branch from 2132cee to 8298c22 Compare May 14, 2021 23:41
if (site1Gene != null && !site1Gene.getEntrezGeneId().equals(fusion.getEntrezGeneId())) {
pickedGene = site1Gene;
}
if (site2Gene != null && !site2Gene.getEntrezGeneId().equals(fusion.getEntrezGeneId())) {
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be in else block or pickedGene == null needs to be included in if caluse

Copy link
Member Author

Choose a reason for hiding this comment

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

@kalletlak updated

@zhx828 zhx828 force-pushed the fix-fusion-gene-issue branch from 8298c22 to 5a84cd6 Compare May 17, 2021 17:36
@zhx828 zhx828 requested a review from kalletlak May 17, 2021 18:33
Copy link
Member

@kalletlak kalletlak left a comment

Choose a reason for hiding this comment

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

LGTM

if (site2Gene != null) {
structuralVariant.setSite2EntrezGeneId(site2Gene.getEntrezGeneId());
structuralVariant.setSite2HugoSymbol(site2Gene.getHugoGeneSymbol());
// we need to pick the right gene since the fusion gene has been assigned to structural variant site1
Copy link
Member

Choose a reason for hiding this comment

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

site2Gene is used if the first condition fails. may be move this inside else block

Copy link
Member Author

Choose a reason for hiding this comment

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

@kalletlak updated

@zhx828 zhx828 force-pushed the fix-fusion-gene-issue branch from 5a84cd6 to fa8f0c9 Compare May 17, 2021 18:56
@zhx828 zhx828 requested a review from kalletlak May 17, 2021 18:57
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@zhx828 zhx828 merged commit b7ae992 into cBioPortal:master May 17, 2021
@zhx828 zhx828 deleted the fix-fusion-gene-issue branch May 17, 2021 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants