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

Import into cBioPortal database from Kubernetes #65

Open
inodb opened this issue Mar 30, 2020 · 0 comments
Open

Import into cBioPortal database from Kubernetes #65

inodb opened this issue Mar 30, 2020 · 0 comments

Comments

@inodb
Copy link
Contributor

inodb commented Mar 30, 2020

One way to do it semi-manually now is:

  1. First download a study from datahub on your local machine following https://github.com/cbioportal/datahub#how-to-download-data

  2. Update a local portal.properties to have the correct import credentials

  3. Start a cbioportal-importer container:

kubectl run --rm -i --tty cbioportal-importer --image=cbioportal/cbioportal:release-3.3.0 --restart=Never -- sh

You can exit it for now after starting

  1. Copy the properties & study into the container
kubectl cp portal.properties cbioportal-importer:/cbioportal/
kubectl cp ucec_tcga_pub cbioportal-importer:/cbioportal/ucec_tcga_pub
  1. Attach to the cbioportal-importer pod again and import (this tries to import into beta database):
kubectl attach -it cbioportal-importer
# once inside
metaImport.py -s /cbioportal/ucec_tcga_pub -o -u https://beta.cbioportal.org

Now you can detach again with Ctrl + P followed by Ctrl + Q

  1. Check logs with kubectl logs -f cbioportal-importer

  2. Delete the pod again with kubectl delete pod cbioportal-importer

We should find some way to this in a more automated fashion. Some options:

  • Spin up a pod with multiple containers. First container downloads the datahub study of interest set with some env variable. Second container is the cBioPortal importer that actually imports it

  • Have an "always on" import container. Whenever we copy files into a particular folder it starts importing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant