Skip to content

Exporting and publishing data

krassowski edited this page Mar 8, 2017 · 19 revisions

Prepare to export

Activate the virtual environment and enter website directory

source virtual_environment/bin/activate
cd website

Choose what to export

Check what is available for export. To see categories type:

./manage.py export --help

To see what is available in mutations category use:

./manage.py export mutations --help

Export data

Run following command to export mutations from TCGA dataset:

./manage.py export mutations --source cancer

You can restrict mutations to these which appear in primary isoforms only:

./manage.py export mutations --source cancer --only_primary_isoforms

When the process is finished you will see a message with location of the output file.

Publishing the data

First move the file to a directory which is hosted publicly:

mkdir -p static/exported
mv exported/<name_of_exported_file> static/exported/<name_of_exported_file>

Then login to the CMS and add appropriate link to "Downloads" page.