Skip to content

Ccdidash 121#22

Open
shawnwangnih wants to merge 6 commits into
2.0.0from
CCDIDASH-121
Open

Ccdidash 121#22
shawnwangnih wants to merge 6 commits into
2.0.0from
CCDIDASH-121

Conversation

@shawnwangnih

Copy link
Copy Markdown

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the treatments_table index configuration in indices.yaml, migrating it from a single monolithic cypher_queries block to the repository’s initial_query + update_queries indexing pattern and expanding treatment sourcing across treatment subtypes.

Changes:

  • Refactors treatments_table indexing to use initial_query seeding plus multiple update_queries that independently populate treatment/participant, study, survival, treatment response, and sample/diagnosis/GA/file facet fields.
  • Introduces subtype-qualified treatment document IDs (e.g., treatment_chemotherapy:<id>) and normalizes treatment subtype properties into common fields (treatment_type, treatment_agent, etc.).
  • Replaces the prior “many combinations” facet-building Cypher with a context-based approach for sample/model-linked sample traversal and associated files/diagnoses/genetic analyses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/resources/yaml/indices.yaml

@JoonLeeNIH JoonLeeNIH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs changes where I commented. The sample_diagnosis_genetic_analysis_file_filters query looks good. It's the same as the one for the participants_table, but the treatment's ID is carried throughout.

Comment thread src/main/resources/yaml/indices.yaml
Comment thread src/main/resources/yaml/indices.yaml Outdated
Comment thread src/main/resources/yaml/indices.yaml Outdated
Comment on lines +2701 to +2705
CASE
WHEN trad.radiation_therapy_type IS NULL OR trad.radiation_therapy_type = '' THEN []
ELSE [trim(trad.radiation_therapy_type)]
END AS treatment_agent,
trad.radiation_therapy_type AS treatment_agent_str,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

radiation_therapy is a list in the database.

Comment thread src/main/resources/yaml/indices.yaml Outdated
Comment on lines +2706 to +2713
CASE
WHEN trad.treatment_type IS NULL OR trad.treatment_type = '' THEN ['radiation']
ELSE [item IN split(trad.treatment_type, ';') | trim(item)]
END AS treatment_type,
CASE
WHEN trad.treatment_type IS NULL OR trad.treatment_type = '' THEN 'radiation'
ELSE trad.treatment_type
END AS treatment_type_str

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

treatment_type is a list in the database.

Comment thread src/main/resources/yaml/indices.yaml Outdated
Comment thread src/main/resources/yaml/indices.yaml Outdated
Comment thread src/main/resources/yaml/indices.yaml Outdated
Comment thread src/main/resources/yaml/indices.yaml Outdated
Comment thread src/main/resources/yaml/indices.yaml Outdated
Comment on lines +2813 to +2814
(cg:consent_group)-[:of_participant]->(p),
(stu:study)-[:of_consent_group]->(cg)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The relationship arrows for these two lines in the query need to go the other direction.

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

Successfully merging this pull request may close these issues.

3 participants