cBioPortal
Search…
2.4 Integration with Other Webservices
5.2 Datasets
6. Web API and Clients
Powered By GitBook
Maintaining Studies
For data curators and developers cbioportalImporter.py is available. This script can import data regardless of validation results. If data format is incorrect, the importer may stop with an error or crash, or leave the database in an inconsistent state.
This script can also be used to delete studies.

Requirements

This script requires $PORTAL_HOME to point to the folder containing your cBioPortal configuration. This can be done with:
1
export PORTAL_HOME=<cbioportal_configuration_folder>
Copied!
The script itself can be found in <cbioportal_source_folder>/core/src/main/scripts/importer.

Importing a study without validation

To import a study without validation, run:
1
./cbioportalImporter.py -s <path to study directory>
Copied!
For example:
1
./cbioportalImporter.py -s ../../../test/scripts/test_data/study_es_0/
Copied!

Deleting a study

To remove a study, run:
1
./cbioportalImporter.py -c remove-study -meta <path to study directory>/meta_study.txt
Copied!
The meta_study.txt file should contain the study ID in cancer_study_identifier: of the study you would like to remove.
For example:
1
./cbioportalImporter.py -c remove-study -meta /data/brca_small/meta_study.txt
Copied!
If you have the Cancer Study Id of the study, or studies you want to remove, you can also use:
1
./cbioportalImporter.py -c remove-study -id study1_id
Copied!
Where study1_id is the Cancer Study Id of the study you would like to remove.
You can also remove multiple studies at once by passing the Cancer Study Ids separated by commas:
1
./cbioportalImporter.py -c remove-study -id study1_id,study2_id,study3_id
Copied!
Where study1_id, study2_id and study3_id are the Cancer Study IDs of the studies you would like to remove.
Last modified 1yr ago