Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
export MEDCO_SETUP_DIR=~/medco-deployment MEDCO_SETUP_VER=1.0.0
wget https://github.com/ldsec/medco-deployment/archive/v${MEDCO_SETUP_VER}.tar.gz
tar xvzf v${MEDCO_SETUP_VER}.tar.gz
mv medco-deployment-${MEDCO_SETUP_VER} "${MEDCO_SETUP_DIR}"
cd "${MEDCO_SETUP_DIR}/compose-profiles/test-local-3nodes"
docker-compose -f docker-compose.yml -f docker-compose.tools.yml pullMEDCO_NODE_HOST=medco-demo.epfl.ch
MEDCO_NODE_HTTP_SCHEME=httpscd "${MEDCO_SETUP_DIR}/compose-profiles/test-local-3nodes"
docker-compose upPOSTGRES_PASSWORD=postgres_password
PGADMIN_PASSWORD=pgadmin_password
KEYCLOAK_PASSWORD=keycloak_password
I2B2_WILDFLY_PASSWORD=i2b2_wildfly_password
I2B2_SERVICE_PASSWORD=i2b2_service_password
I2B2_USER_PASSWORD=i2b2_user_passwordOFFThis guide walks you through the process of configuring Keycloak as a Service Provider to one or more SwitchAAI identity provider(s), in order for MedCo to rely on SwitchAAI for user authentication.
cd ${MEDCO_SETUP_DIR}/resources/data
bash download.shexport MEDCO_SETUP_DIR=~/medco-deployment MEDCO_SETUP_VER=1.0.0
wget https://github.com/ldsec/medco-deployment/archive/v${MEDCO_SETUP_VER}.tar.gz
tar xvzf v${MEDCO_SETUP_VER}.tar.gz
mv medco-deployment-${MEDCO_SETUP_VER} "${MEDCO_SETUP_DIR}"export MEDCO_SETUP_NETWORK_NAME=example \
MEDCO_SETUP_NODE_IDX=0 \
MEDCO_SETUP_NODE_DNS_NAME=medconode0.example.com
cd "${MEDCO_SETUP_DIR}/resources/profile-generation-scripts/test-network"
bash step1.sh ${MEDCO_SETUP_NETWORK_NAME} ${MEDCO_SETUP_NODE_IDX} ${MEDCO_SETUP_NODE_DNS_NAME}cd "${MEDCO_SETUP_DIR}/resources/profile-generation-scripts/test-network"
bash step2.sh ${MEDCO_SETUP_NETWORK_NAME} ${MEDCO_SETUP_NODE_IDX}cd "${MEDCO_SETUP_DIR}/compose-profiles/test-network-${MEDCO_SETUP_NETWORK_NAME}-node${MEDCO_SETUP_NODE_IDX}"
docker-compose -f docker-compose.yml -f docker-compose.tools.yml pull
docker-compose up -dSwitchAAI-Test Demo IdP.150.https://medco-demo.epfl.ch/.Deployment profile dev-local-3nodes.
ifconfig). If you do have such conflicts, you can edit Docker's configuration to set the addresses to use. Example:{
"default-address-pools": [{
"base": "10.10.0.0/16",
"size": 24
}]
}export MEDCO_SETUP_DIR=~/medco-deployment \
MEDCO_DEPLOYMENT_PROFILE=dev-local-3nodes
cd "${MEDCO_SETUP_DIR}/compose-profiles/${MEDCO_DEPLOYMENT_PROFILE}"
docker-compose -f docker-compose.tools.yml run medco-loader-srv0 v1 \
--sen /data/i2b2/sensitive.txt \
--files /data/i2b2/files.toml
docker-compose -f docker-compose.tools.yml run medco-loader-srv1 v1 \
--sen /data/i2b2/sensitive.txt \
--files /data/i2b2/files.toml
docker-compose -f docker-compose.tools.yml run medco-loader-srv2 v1 \
--sen /data/i2b2/sensitive.txt \
--files /data/i2b2/files.tomlexport MEDCO_SETUP_DIR=~/medco-deployment \
MEDCO_DEPLOYMENT_PROFILE=test-network-xxx-node0
cd "${MEDCO_SETUP_DIR}/compose-profiles/${MEDCO_DEPLOYMENT_PROFILE}"
docker-compose -f docker-compose.tools.yml run medco-loader v1 \
--sen /data/i2b2/sensitive.txt \
--files /data/i2b2/files.tomlNAME:
medco-loader v1 - Convert existing i2b2 data model
USAGE:
medco-loader v1 [command options] [arguments...]
OPTIONS:
--group value, -g value UnLynx group definition file
--entryPointIdx value, --entry value Index (relative to the group definition file) of the collective authority server to load the data
--sensitive value, --sen value File containing a list of sensitive concepts
--dbHost value, --dbH value Database hostname
--dbPort value, --dbP value Database port (default: 0)
--dbName value, --dbN value Database name
--dbUser value, --dbU value Database user
--dbPassword value, --dbPw value Database password
--files value, -f value Configuration toml with the path of the all the necessary i2b2 files
--empty, -e Empty patient and visit dimension tables (y/n)export MEDCO_SETUP_DIR=~/medco-deployment \
MEDCO_DEPLOYMENT_PROFILE=dev-local-3nodes
cd "${MEDCO_SETUP_DIR}/compose-profiles/${MEDCO_DEPLOYMENT_PROFILE}"
docker-compose -f docker-compose.tools.yml run medco-loader-srv0 v0 \
--ont_clinical /data/genomic/tcga_cbio/8_clinical_data.csv \
--sen /data/genomic/sensitive.txt \
--ont_genomic /data/genomic/tcga_cbio/8_mutation_data.csv \
--clinical /data/genomic/tcga_cbio/8_clinical_data.csv \
--genomic /data/genomic/tcga_cbio/8_mutation_data.csv \
--output /data/
docker-compose -f docker-compose.tools.yml run medco-loader-srv1 v0 \
--ont_clinical /data/genomic/tcga_cbio/8_clinical_data.csv \
--sen /data/genomic/sensitive.txt \
--ont_genomic /data/genomic/tcga_cbio/8_mutation_data.csv \
--clinical /data/genomic/tcga_cbio/8_clinical_data.csv \
--genomic /data/genomic/tcga_cbio/8_mutation_data.csv \
--output /data/
docker-compose -f docker-compose.tools.yml run medco-loader-srv2 v0 \
--ont_clinical /data/genomic/tcga_cbio/8_clinical_data.csv \
--sen /data/genomic/sensitive.txt \
--ont_genomic /data/genomic/tcga_cbio/8_mutation_data.csv \
--clinical /data/genomic/tcga_cbio/8_clinical_data.csv \
--genomic /data/genomic/tcga_cbio/8_mutation_data.csv \
--output /data/export MEDCO_SETUP_DIR=~/medco-deployment \
MEDCO_DEPLOYMENT_PROFILE=test-network-xxx-node0
cd "${MEDCO_SETUP_DIR}/compose-profiles/${MEDCO_DEPLOYMENT_PROFILE}"
docker-compose -f docker-compose.tools.yml run medco-loader v0 \
--ont_clinical /data/genomic/tcga_cbio/8_clinical_data.csv \
--sen /data/genomic/sensitive.txt \
--ont_genomic /data/genomic/tcga_cbio/8_mutation_data.csv \
--clinical /data/genomic/tcga_cbio/8_clinical_data.csv \
--genomic /data/genomic/tcga_cbio/8_mutation_data.csv \
--output /data/NAME:
medco-loader v0 - Load genomic data (e.g. tcga_bio dataset)
USAGE:
medco-loader v0 [command options] [arguments...]
OPTIONS:
--group value, -g value UnLynx group definition file
--entryPointIdx value, --entry value Index (relative to the group definition file) of the collective authority server to load the data
--sensitive value, --sen value File containing a list of sensitive concepts
--dbHost value, --dbH value Database hostname
--dbPort value, --dbP value Database port (default: 0)
--dbName value, --dbN value Database name
--dbUser value, --dbU value Database user
--dbPassword value, --dbPw value Database password
--ont_clinical value, --oc value Clinical ontology to load
--ont_genomic value, --og value Genomic ontology to load
--clinical value, --cl value Clinical file to load
--genomic value, --gen value Genomic file to load
--output value, -o value Output path to the .csv filesexport MEDCO_SETUP_DIR=~/medco-deployment
cd ${MEDCO_SETUP_DIR}/compose-profiles/dev-local-3nodes/
docker-compose -f docker-compose.tools.yml run medco-cli-client --user [USERNAME] --password [PASSWORD] --help
NAME:
medco-cli-client - Command-line query tool for MedCo.
USAGE:
medco-cli-client [global options] command [command options] [arguments...]
VERSION:
1.0.0
COMMANDS:
query, q Query the MedCo network
genomic-annotations-get-values, gval Get genomic annotations values
genomic-annotations-get-variants, gvar Get genomic annotations variants
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--user value, -u value OIDC user login
--password value, -p value OIDC password login
--token value, -t value OIDC token
--disableTLSCheck Disable check of TLS certificates
--help, -h show help
--version, -v print the versiondocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test query --help
NAME:
medco-cli-client query - Query the MedCo network
USAGE:
medco-cli-client query [command options] [patient_list|count_per_site|count_per_site_obfuscated|count_per_site_shuffled|count_per_site_shuffled_obfuscated|count_global|count_global_obfuscated] [query string]
OPTIONS:
--resultFile value, -r value Output file for the result CSV. Printed to stdout if omitted.docker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test query patient_list 1 AND 2 OR 3node_name,count,patient_list,DDTRequestTime,KSRequestTime,KSTimeCommunication,KSTimeExec,TaggingTimeCommunication,TaggingTimeExec,medco-connector-DDT,medco-connector-i2b2-PDO,medco-connector-i2b2-PSM,medco-connector-local-agg,medco-connector-local-patient-list-masking,medco-connector-overall,medco-connector-unlynx-key-switch-count,medco-connector-unlynx-key-switch-patient-list
0,8,[1 2 3 4 5 6 7 8],268,162,154,0,218,23,275,2561,16507,0,32,19619,50,179
1,0,[],212,61,43,0,179,12,232,2078,17993,0,1,20433,38,87
2,0,[],196,38,30,0,172,7,216,1574,18889,1,2,20779,30,53docker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test genomic-annotations-get-values --help
NAME:
medco-cli-client genomic-annotations-get-values - Get genomic annotations values
USAGE:
medco-cli-client genomic-annotations-get-values [command options] [-l limit] [annotation] [value]
OPTIONS:
--limit value, -l value Maximum number of returned values (default: 0)docker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test genomic-annotations-get-values protein_change g32G325R
G32Edocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test genomic-annotations-get-variants --help
NAME:
medco-cli-client genomic-annotations-get-variants - Get genomic annotations variants
USAGE:
medco-cli-client genomic-annotations-get-variants [command options] [-z zygosity] [-e] [annotation] [value]
DESCRIPTION:
zygosity can be either heterozygous, homozygous, unknown or a combination of the three separated by |
If omitted, the command will execute as if zygosity was equal to "heterozygous|homozygous|unknown|"
OPTIONS:
--zygosity value, -z value Variant zygosysty
--encrypted, -e Return encrypted variant iddocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test genomic-annotations-get-variants -z "heterozygous|homozygous" hugo_gene_symbol HTR5A-7039476204566471680
-7039476580443220992docker: Got permission denied while trying to connect to the Docker daemon socket at ...cd ~
git clone -b dev https://github.com/ldsec/medco-deployment.gitcd ~/medco-deployment/compose-profiles/dev-local-3nodes
docker-compose -f docker-compose.yml -f docker-compose.tools.yml pull$ docker-compose updocker-compose stop medco-connector-srv0 medco-connector-srv1 medco-connector-srv2
docker-compose up -d medco-connector-srv0 medco-connector-srv1 medco-connector-srv2cd ~
git clone -b dev https://github.com/ldsec/glowing-bear-medco.gitcd ~/glowing-bear-medco/deployment
docker-compose up dev-server












