This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add this to your .Rprofile | |
| options( | |
| error = quote(rlang::entrace()), | |
| rlang__backtrace_on_error = "collapse" # or "branch" or "full" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: "Data mask stuff" | |
| output: github_document | |
| --- | |
| ```{r include=FALSE, message=FALSE, warning=FALSE} | |
| knitr::opts_chunk$set( | |
| message = FALSE, warning = FALSE, echo = TRUE, fig.retina = 2, collapse = TRUE | |
| ) | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Can work for other delimiters as well | |
| # Tab delimiter | |
| bq load --source_format=CSV --field_delimiter=tab \ | |
| --skip_leading_rows 1 -<destination_table> <source> \ | |
| <schema> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Install] | |
| WantedBy=multi-user.target | |
| [Unit] | |
| Description=Google Cloud Compute Engine SQL Proxy | |
| Requires=networking.service | |
| After=networking.service | |
| [Service] | |
| Type=simple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *** Cluster Setup for Google Container Engine *** | |
| 0/ Install and configure local gcloud and kubectl: https://cloud.google.com/sdk/docs/ | |
| > gcloud components install kubectl | |
| 1/ Configure Google Cloud account: | |
| > gcloud config set account YOUR_EMAIL_ADDRESS | |
| > gcloud config set project YOUR_PROJECT_ID | |
| > gcloud config set compute/zone us-west1-a | |
| > gcloud config set container/cluster example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #cloud-config | |
| users: | |
| - name: cloudservice | |
| groups: docker | |
| uid: 2000 | |
| write_files: | |
| - path: /home/cloudservice/currentdir/gcloud-sdk-setup | |
| permissions: '0644' |
I downloaded the manifest file from gdc, but it only has the uuid, I will need to convert them to TCGA barcode.
read this https://support.bioconductor.org/p/89315/ and https://support.bioconductor.org/p/89021/
A function from the link above
library(httr)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # check, if another export is currently running | |
| if [ `ps -ef|grep "keycloak.migration.action=export" |grep -v grep |wc -l` != 0 ] ; then | |
| echo "Another export is currently running"; | |
| exit 1; | |
| fi | |
| # try to extract keycloak home from running keycloak instance | |
| KEYCLOAK_HOME=$(ps -ef|grep -v grep|grep jboss.home.dir|grep keycloak|sed 's/.*\(jboss.home.dir=\)//'|awk '{print $1}') |