-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add revue icon for revue variants (#4589)
* Add revue icon for revue variants * Show icon on results view page and mutation mapper tool * Add revue icon to mutation type and protein change columns * Only show reVUE icon when hover over protein change and mutation type column * Add revue info into download * Update e2e screnshot tests
- Loading branch information
Showing
41 changed files
with
309 additions
and
47 deletions.
There are no files selected for viewing
Binary file modified
BIN
+464 Bytes
(100%)
.../local/screenshots/reference/displays_ascn_columns_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+461 Bytes
(100%)
...display_ascn_columns_for_studies_with_no_ascn_data_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+409 Bytes
(100%)
...does_not_show_ascn_columns_study_with_no_ascn_data_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+478 Bytes
(100%)
..._where_some_samples_have_ascn_data_and_some_do_not_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+488 Bytes
(100%)
...erence/shows_ascn_columns_for_study_with_ascn_data_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+607 Bytes
(100%)
...eference/excluding_unprofiled_samples_mutation_tab_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+465 Bytes
(100%)
...mote/screenshots/reference/no_session_mutation_tab_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+836 Bytes
(100%)
...ference/patient_page_valid_after_cohort_navigation_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+412 Bytes
(100%)
...reenshots/reference/patient_view_lgg_ucsf_2014_p04_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.35 KB
(100%)
...with_0_mutations_msk_impact_2017_p-0000053-t01-im3_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+487 Bytes
(100%)
...ge_heatmap_with_two_mutations_selected_from_before_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+497 Bytes
(100%)
...shots/reference/pvge_hover_a_mutation_with_heatmap_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-37 Bytes
(100%)
...nshots/reference/pvge_initial_view_with_line_chart_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+497 Bytes
(100%)
.../reference/pvge_one_mutation_selected_with_heatmap_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+512 Bytes
(100%)
...ference/pvge_one_mutation_selected_with_line_chart_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+478 Bytes
(100%)
...st/remote/screenshots/reference/pvge_show_timeline_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+465 Bytes
(100%)
.../remote/screenshots/reference/session_mutation_tab_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
packages/react-mutation-mapper/src/component/revue/Revue.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import React from 'react'; | ||
import { DefaultTooltip } from 'cbioportal-frontend-commons'; | ||
import { Vues as VUE } from 'genome-nexus-ts-api-client'; | ||
import annotationStyles from '../column/annotation.module.scss'; | ||
|
||
export const RevueTooltipContent: React.FunctionComponent<{ | ||
vue: VUE; | ||
}> = props => { | ||
return ( | ||
<div> | ||
{props.vue.comment}{' '} | ||
<a | ||
href={`https://pubmed.ncbi.nlm.nih.gov/${props.vue.pubmedIds[0]}/`} | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
> | ||
({props.vue.referenceText}) | ||
</a> | ||
<ul> | ||
<li> | ||
Predicted Effect: <strong>{props.vue.defaultEffect}</strong> | ||
</li> | ||
<li> | ||
Experimentally Validated Effect:{' '} | ||
<strong>{props.vue.variantClassification}</strong> | ||
</li> | ||
<li> | ||
Revised Protein Effect:{' '} | ||
<strong>{props.vue.revisedProteinEffect}</strong> | ||
</li> | ||
</ul> | ||
<div> | ||
Source:{' '} | ||
<a | ||
href="https://cancerrevue.org" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
reVUE <i className="fa fa-external-link" /> | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export function sortValue(vue: VUE | undefined): number { | ||
return vue ? 1 : 0; | ||
} | ||
|
||
export const RevueCell: React.FunctionComponent<{ | ||
vue: VUE; | ||
}> = props => { | ||
return ( | ||
<DefaultTooltip | ||
placement="bottom" | ||
overlay={<RevueTooltipContent vue={props.vue} />} | ||
> | ||
<span | ||
className={`${annotationStyles['annotation-item']}`} | ||
style={{ display: 'inline-flex' }} | ||
> | ||
<img | ||
src={'../../images/vue_logo.png'} | ||
alt="reVUE logo" | ||
width={14} | ||
height={14} | ||
/> | ||
</span> | ||
</DefaultTooltip> | ||
); | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.