Skip to content

Commit

Permalink
Merge pull request #10143 from haynescd/feature/10135-Add-Configurati…
Browse files Browse the repository at this point in the history
…on-Property-For-StudyDownloadUrl

🔧 Add StudyDownloadUrl to portal.properties
  • Loading branch information
inodb authored May 3, 2023
2 parents 808bd6b + 1cdfdb9 commit d5aeab9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
18 changes: 18 additions & 0 deletions docs/deployment/customization/portal.properties-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -696,3 +696,21 @@ There are two `portal.property` values related to this feature:
* This is not a cure-all for performance issues
* Most requests the cBioPortal makes do not have large request bodies, so most requests will not be compressed, and will see no performance improvement.
* Users with good upload speeds will see minimal performance improvements, as their upload speed is not a bottleneck.

# DataSets Tab (Study Download Links)
### Background
The DataSets tab has the ability to create a ``download`` button that allows users to quickly download "raw" public studies.
### Properties
* ``study_download_url`` : when set, the feature will be enabled
### Behavior
For private instances that want to replicate the``public-portal`` they first must set up their studies
they want available for download in a similar format to what is described in the Example section below.
The studies are located on the ``public-portal`` at `https://cbioportal-datahub.s3.amazonaws.com/`.
Then there is a ``study_list.json`` defined that list the studies that can be downloaded.
The studies to be downloaded need to be compressed with the extension ``tar.gz``

### Example
* We have set ``study_download_url`` property to `https://cbioportal-datahub.s3.amazonaws.com/`
* ``study_list.json`` resides ``https://cbioportal-datahub.s3.amazonaws.com/study_list.json``
* ``[ "acbc_mskcc_2015", "acc_2019"]`` Example of contents
* ``acbc_mskcc_2015.tar.gz`` resides `https://cbioportal-datahub.s3.amazonaws.com/acbc_mskcc_2015.tar.gz`
3 changes: 2 additions & 1 deletion portal/src/main/webapp/config_service.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@
"skin.patient_view.copy_number_table.columns.show_on_init",
"skin.patient_view.structural_variant_table.columns.show_on_init",
"comparison.categorical_na_values",
"skin.hide_download_controls"
"skin.hide_download_controls",
"study_download_url"
};
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/portal.properties.EXAMPLE
Original file line number Diff line number Diff line change
Expand Up @@ -428,3 +428,7 @@ persistence.cache_type=no-cache

# Set comparison categorical "NA" value (not case sensitive), separated by "|"
# comparison.categorical_na_values=NA|unknown

# Set StudyDownloadLinkUrl
# Allows download links within DataSets Tab (See Portal.Properties documentation for more info)
# study_download_url=

0 comments on commit d5aeab9

Please sign in to comment.