export MEDCO_SETUP_DIR=~/medco
cd ${MEDCO_SETUP_DIR}/deployments/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:
dev
COMMANDS:
concept-children, con-c Get the concept children (both concepts and modifiers)
modifier-children, mod-c Get the modifier children
concept-info, con-i Get the concept info
modifier-info, mod-i Get the modifier info
query, q Query the MedCo network
ga-get-values, ga-val Get the values of the genomic annotations of type *annotation* whose values contain *value*
ga-get-variant, ga-var Get the variant ID of the genomic annotation of type *annotation* and value *value*
survival-analysis, srva Run a survival analysis
get-saved-cohorts, getsc get cohorts
add-saved-cohorts, addsc Create a new cohort.
update-saved-cohorts, upsc Updates an existing cohort.
remove-saved-cohorts, rmsc Remove a cohort.
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
--outputFile value, -o value Output file for the result. Printed to stdout if omitted.
--help, -h show help
--version, -v print the versiondocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test concept-children --help
NAME:
medco-cli-client concept-children - Get the concept children (both concepts and modifiers)
USAGE:
medco-cli-client concept-children conceptPathdocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test concept-children /E2ETEST/e2etest/
PATH TYPE
/E2ETEST/e2etest/1/ concept
/E2ETEST/e2etest/2/ concept
/E2ETEST/e2etest/3/ concept
/E2ETEST/modifiers/ modifier_folderdocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test modifier-children --help
NAME:
medco-cli-client modifier-children - Get the modifier children
USAGE:
medco-cli-client modifier-children modifierPath appliedPath appliedConceptdocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test modifier-children /E2ETEST/modifiers/ /e2etest/% /E2ETEST/e2etest/1/
PATH TYPE
/E2ETEST/modifiers/1/ modifierdocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test concept-info --help
NAME:
medco-cli-client concept-info - Get the concept info
USAGE:
medco-cli-client concept-info conceptPathdocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test concept-info /E2ETEST/e2etest/1/
<ExploreSearchResultElement>
<Code>ENC_ID:1</Code>
<DisplayName>E2E Concept 1</DisplayName>
<Leaf>true</Leaf>
<MedcoEncryption>
<Encrypted>true</Encrypted>
<ID>1</ID>
</MedcoEncryption>
<Metadata>
<ValueMetadata>
<ChildrenEncryptIDs></ChildrenEncryptIDs>
<CreationDateTime></CreationDateTime>
<DataType></DataType>
<EncryptedType></EncryptedType>
<EnumValues></EnumValues>
<Flagstouse></Flagstouse>
<NodeEncryptID></NodeEncryptID>
<Oktousevalues></Oktousevalues>
<TestID></TestID>
<TestName></TestName>
<Version></Version>
</ValueMetadata>
</Metadata>
<Name>E2E Concept 1</Name>
<Path>/E2ETEST/e2etest/1/</Path>
<Type>concept</Type>
</ExploreSearchResultElement>docker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test modifier-info --help
NAME:
medco-cli-client modifier-info - Get the modifier info
USAGE:
medco-cli-client modifier-info modifierPath appliedPathdocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test modifier-info /E2ETEST/modifiers/1/ /e2etest/1/
<ExploreSearchResultElement>
<Code>ENC_ID:5</Code>
<DisplayName>E2E Modifier 1</DisplayName>
<Leaf>true</Leaf>
<MedcoEncryption>
<Encrypted>true</Encrypted>
<ID>5</ID>
</MedcoEncryption>
<Metadata>
<ValueMetadata>
<ChildrenEncryptIDs></ChildrenEncryptIDs>
<CreationDateTime></CreationDateTime>
<DataType></DataType>
<EncryptedType></EncryptedType>
<EnumValues></EnumValues>
<Flagstouse></Flagstouse>
<NodeEncryptID></NodeEncryptID>
<Oktousevalues></Oktousevalues>
<TestID></TestID>
<TestName></TestName>
<Version></Version>
</ValueMetadata>
</Metadata>
<Name>E2E Modifier 1</Name>
<Path>/E2ETEST/modifiers/1/</Path>
<Type>modifier</Type>
</ExploreSearchResultElement>docker-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] [-t timing] query_string
OPTIONS:
--timing value, -t value Query timing: any|samevisit|sameinstancenum (default: "any")docker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test query enc::1 AND enc::2 OR enc::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,1,[2],4236,311,307,0,1657,10,4266,3972,25472,1,153,34834,469,491
1,1,[2],584,89,75,0,474,78,677,4717,61325,16,3,66991,140,104
2,1,[2],669,55,45,0,576,49,709,3134,63371,0,8,67358,68,63docker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test ga-get-values --help
NAME:
medco-cli-client ga-get-values - Get the values of the genomic annotations of type *annotation* whose values contain *value*
USAGE:
medco-cli-client ga-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 ga-get-values protein_change g32G325R
G32Edocker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test ga-get-variant --help
NAME:
medco-cli-client ga-get-variant - Get the variant ID of the genomic annotation of type *annotation* and value *value*
USAGE:
medco-cli-client ga-get-variant [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 ga-get-variant -z "heterozygous|homozygous" hugo_gene_symbol HTR5A-7039476204566471680
-7039476580443220992NAME:
medco-cli-client survival-analysis - Run a survival analysis
USAGE:
medco-cli-client survival-analysis [command options] -l limit [-g granularity] [-c cohortID] -s startConcept [-x startModifier] -e endConcept [-y endModifier]
DESCRIPTION:
Returns the points of the survival curve
OPTIONS:
--limit value, -l value Max limit of survival analysis. (default: 0)
--granularity value, -g value Time resolution, one of [day, week, month, year] (default: "day")
--cohortID value, -c value Cohort identifier (default: -1)
--startConcept value, -s value Survival start concept
--startModifier value, -x value Survival start modifier (default: "@")
--endConcept value, -e value Survival end concept
--endModifier value, -y value Survival end modifier (default: "@")docker-compose -f docker-compose.tools.yml run medco-cli-client --user test --password test srva srva -l 2000 -g week -c 1 -s /SPHN/SPHNv2020.1/FophDiagnosis/ -e /SPHN/SPHNv2020.1/DeathStatus/ -y 126:1