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

Use public oncokb instance for portal without token #7457

Merged
merged 1 commit into from May 7, 2020

Conversation

zhx828
Copy link
Member

@zhx828 zhx828 commented Apr 29, 2020

This is a part of fix for oncokb/oncokb#1975

  • Update the oncokb message when deploying the instance without configuring the oncokb token
  • Update the oncokb data documentation to include the instructions on how to configure portal to use oncokb.org

@@ -1,13 +1,23 @@
# Introduction
Copy link
Member Author

Choose a reason for hiding this comment

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

@jjgao could you take a look these instructions? Thank you.

@@ -41,12 +44,11 @@ public void afterPropertiesSet() throws Exception {
}

private void checkOncokbInfo() {
Copy link
Member Author

Choose a reason for hiding this comment

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

@jjgao I still remained the message. But let me know if you think it's no longer needed.

docs/OncoKB-Data-Access.md Outdated Show resolved Hide resolved
@@ -132,7 +132,7 @@ The Network tab was retired on November 1, 2019. We will soon release a new feat
#### Does the portal contain cancer study X?
Check out the [Data Sets Page](https://www.cbioportal.org/data_sets.jsp) for the complete set of cancer studies currently stored in the portal. If you do not see your specific cancer study of interest, please [contact us](mailto:cbioportal@googlegroups.com), and we will let you know if it's in the queue.
#### Which resources are integrated for variant annotation?
cBioPortal supports the annotation of variants from several different databases. These databases provide information about the recurrence of, or prior knowledge about, specific amino acid changes. For each variant, the number of occurrences of mutations at the same amino acid position present in the COSMIC database are reported. Furthermore, variants are annotated as “hotspots” if the amino acid positions were found to be recurrent linear hotspots, as defined by the Cancer Hotspots method ([cancerhotspots.org](http://www.cancerhotspots.org/)), or three-dimensional hotspots, as defined by 3D Hotspots ([3dhotspots.org](https://www.3dhotspots.org/)). Prior knowledge about variants, including clinical actionability information, is provided from three different sources: OncoKB ([oncokb.org](http://oncokb.org/)), CIViC ([civicdb.org](https://civicdb.org/)), as well as My Cancer Genome ([mycancergenome.org](https://www.mycancergenome.org/)). For OncoKB, exact levels of clinical actionability are displayed in cBioPortal, as defined by [the OncoKB paper](http://ascopubs.org/doi/full/10.1200/PO.17.00011).
cBioPortal supports the annotation of variants from several different databases. These databases provide information about the recurrence of, or prior knowledge about, specific amino acid changes. For each variant, the number of occurrences of mutations at the same amino acid position present in the COSMIC database are reported. Furthermore, variants are annotated as “hotspots” if the amino acid positions were found to be recurrent linear hotspots, as defined by the Cancer Hotspots method ([cancerhotspots.org](http://www.cancerhotspots.org/)), or three-dimensional hotspots, as defined by 3D Hotspots ([3dhotspots.org](https://www.3dhotspots.org/)). Prior knowledge about variants, including clinical actionability information, is provided from three different sources: OncoKB ([www.oncokb.org](https://www.oncokb.org/)), CIViC ([civicdb.org](https://civicdb.org/)), as well as My Cancer Genome ([mycancergenome.org](https://www.mycancergenome.org/)). For OncoKB, exact levels of clinical actionability are displayed in cBioPortal, as defined by [the OncoKB paper](http://ascopubs.org/doi/full/10.1200/PO.17.00011).
Copy link
Member

Choose a reason for hiding this comment

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

I couldn't spot the change in this line, am I missing something?

Copy link
Member Author

Choose a reason for hiding this comment

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

@onursumer only changing http:oncokb.org to https://www.oncokb.org

Copy link
Member

@jjgao jjgao left a comment

Choose a reason for hiding this comment

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

@zhx828 Could you list all the configuration parameters in portal.properties for OncoKB? Maybe we can make some changes, e.g. reduce or consolidate some of them.

@@ -165,7 +165,7 @@ segfile.url=http://cbio.mskcc.org/cancergenomics/gdac-portal/seg/
show.oncokb=true
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to specify the API URL?

Copy link
Member Author

Choose a reason for hiding this comment

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

Please see below. oncokb.public_api.url can be used

Following properties can be edited in the `portal.properties` file or set in system variables if you are using docker.
- `show.oncokb` should be set to `true`
- `oncokb.token` should be set to a valid OncoKB access token value
- `oncokb.public_api.url` should be set to `https://www.oncokb.org`
Copy link
Member

Choose a reason for hiding this comment

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

Is there a different parameter for authenticated API?

Copy link
Member Author

Choose a reason for hiding this comment

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

@jjgao no, there are only three parameters for oncokb and all listed here. As long as they supply the token, we will attach that to the authentication header.

- `show.oncokb` should be set to `true`
- `oncokb.token` should be set to a valid OncoKB access token value
- `oncokb.public_api.url` should be set to `https://www.oncokb.org`
Copy link
Member

@leexgh leexgh May 4, 2020

Choose a reason for hiding this comment

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

I think we have a default value: DEFAULT_ONCOKB_URL = "https://public.api.oncokb.org/api/v1", any difference between public.api.oncokb.org/api/v1 and www.oncokb.org?

Copy link
Member Author

Choose a reason for hiding this comment

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

@leexgh we actually changed the default to public.api.oncokb.org which does not require authentication. But good catch! Here should be www.oncokb.org/api/v1

@@ -30,6 +32,7 @@ public void contextInitialized(ServletContextEvent arg0) {

this.showOncokb = Boolean.parseBoolean(getProperty("show.oncokb", "true"));
this.oncokbToken = getProperty("oncokb.token", "");
this.oncokbURL = getProperty("oncokb.public_api.url", "");
Copy link
Member

Choose a reason for hiding this comment

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

@zhx828 do you think we need to set a default url for this one?

Copy link
Member Author

Choose a reason for hiding this comment

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

@leexgh I don't think so. We use its empty status for later printing out the warning message.

@zhx828 zhx828 force-pushed the use-public-oncokb-instance branch from 5313ddf to d0db996 Compare May 5, 2020 21:59
@zhx828 zhx828 requested a review from jjgao May 5, 2020 21:59
@zhx828 zhx828 requested review from leexgh and onursumer May 5, 2020 21:59
Update documentation for using oncokb token to access therapeutic info

Update all oncokb url to https

Co-authored-by: Onur Sumer <s.onur.sumer@gmail.com>

Signed-off-by: Hongxin Zhang <hongxin@cbio.mskcc.org>
@zhx828 zhx828 force-pushed the use-public-oncokb-instance branch from 8bce47f to b06888b Compare May 7, 2020 21:19
Copy link
Member

@inodb inodb left a comment

Choose a reason for hiding this comment

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

LGTM!

@zhx828 zhx828 merged commit b81ec59 into cBioPortal:master May 7, 2020
@zhx828 zhx828 deleted the use-public-oncokb-instance branch May 7, 2020 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants