Skip to content

Commit

Permalink
Updated config template file.
Browse files Browse the repository at this point in the history
  • Loading branch information
n2iw committed Aug 3, 2021
1 parent 81fe794 commit d1a1eb5
Showing 1 changed file with 1 addition and 68 deletions.
69 changes: 1 addition & 68 deletions config/es_loader.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,71 +2,4 @@ Config:
neo4j_uri: bolt://{{neo4j_ip}}:7687
neo4j_user: neo4j
neo4j_password: "{{ neo4j_password }}"
es_host: {{ es_host }}

index_name: dashboard
mapping:
programs:
type: keyword
studies:
type: keyword
subject_id:
type: keyword
diagnoses:
type: keyword
rc_scores:
type: keyword
tumor_sizes:
type: keyword
chemo_regimen:
type: keyword
tumor_grades:
type: keyword
er_status:
type: keyword
pr_status:
type: keyword
endo_therapies:
type: keyword
meno_status:
type: keyword
tissue_type:
type: keyword
composition:
type: keyword
association:
type: keyword
file_type:
type: keyword

cypher_query: "
MATCH (ss)<-[:sf_of_study_subject]-(sf)
MATCH (ss)<-[:diagnosis_of_study_subject]-(d)<-[:tp_of_diagnosis]-(tp)
MATCH (ss:study_subject)-[:study_subject_of_study]->(s)-[:study_of_program]->(p)
MATCH (ss)<-[:demographic_of_study_subject]-(demo)
MATCH (ss)<-[:sample_of_study_subject]-(samp)
MATCH (ss)<-[*..2]-(parent)<--(f:file)
OPTIONAL MATCH (f)-[:file_of_laboratory_procedure]->(lp)
OPTIONAL MATCH (ss)-[:study_subject_of_study]->(s)-[:study_of_program]->(p)
OPTIONAL MATCH (ss)<-[:sf_of_study_subject]-(sf)
OPTIONAL MATCH (ss)<-[:diagnosis_of_study_subject]-(d)
OPTIONAL MATCH (d)<-[:tp_of_diagnosis]-(tp)
OPTIONAL MATCH (ss)<-[:demographic_of_study_subject]-(demo)
RETURN
p.program_acronym AS programs,
(s.study_acronym + ': ' + s.study_short_description) AS studies,
ss.study_subject_id AS subject_id,
ss.disease_subtype AS diagnoses,
sf.grouped_recurrence_score AS rc_scores,
d.tumor_size_group AS tumor_sizes,
tp.chemotherapy_regimen AS chemo_regimen,
d.tumor_grade AS tumor_grades,
d.er_status AS er_status,
d.pr_status AS pr_status,
tp.endocrine_therapy_type AS endo_therapies,
demo.menopause_status AS meno_status,
COLLECT(DISTINCT samp.tissue_type) AS tissue_type,
COLLECT(DISTINCT samp.composition) AS composition,
COLLECT(DISTINCT head(labels(parent))) AS association,
COLLECT(DISTINCT f.file_type) AS file_type
"
es_host: {{ es_host }}

0 comments on commit d1a1eb5

Please sign in to comment.