Skip to content

Conversation

@v-rocheleau
Copy link
Contributor

@v-rocheleau v-rocheleau commented Sep 14, 2023

Ingestion report

The ingestion endpoint now returns an "ingestion report" in the response's JSON, with shape:

{
  "success": true,
  "errors": [],
  "warnings": []
}

Where,

  • success indicates if the ingestion was successful (now http status 201, was 204)
  • errors lists the errors that were caught during ingestion, causing a failed ingestion
  • warnings lists custom warnings related to schema changes.

Ingestion WDLs

  • Workflow files for experiments and phenopackets ingestion now store the ingestion report JSON in the run directory
  • The ingestion report is now an output of the workflows

Schema Changes

Katsu can now keep track of JSON-schema modifications in a release.
The schema changes objects are used to perform data migrations in Django, they also allow the ingestion view to compile warnings if deprecated properties are found in the submitted data.

EXPERIMENT_SCHEMA_CHANGES = {
    "4.1.0": {
        "properties": {
            "library_strategy": [
                    ("WES", "WXS"),
                    ("Other", "OTHER"),
            ],
            "library_selection": [
                    ("Random", "RANDOM"),
                    ("Random PCR", "RANDOM PCR"),
                    ("Exome capture", "Hybrid Selection"),
                    ("Other", "other"),
            ]
        }
    }
}

EBI experiment schema

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (6ab2ed8) 88.36% compared to head (dd0f66c) 86.60%.
Report is 98 commits behind head on develop.

❗ Current head dd0f66c differs from pull request most recent head bbef730. Consider uploading reports for the commit bbef730 to get more accurate results

Files Patch % Lines
chord_metadata_service/chord/ingest/exceptions.py 87.50% 1 Missing and 4 partials ⚠️
chord_metadata_service/chord/ingest/views.py 94.11% 1 Missing and 1 partial ⚠️
chord_metadata_service/chord/ingest/experiments.py 87.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #435      +/-   ##
===========================================
- Coverage    88.36%   86.60%   -1.77%     
===========================================
  Files          115      131      +16     
  Lines         4462     5247     +785     
  Branches       559      696     +137     
===========================================
+ Hits          3943     4544     +601     
- Misses         371      521     +150     
- Partials       148      182      +34     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@davidlougheed davidlougheed left a comment

Choose a reason for hiding this comment

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

some notes

++ if we don't want to bother preserving backwards compatibility, we could just save this for katsu 5.0.0 instead

@v-rocheleau v-rocheleau changed the title feat: use EBI experiment library strategy schema values feat: ingestion report with errors and json schema warnings Sep 21, 2023
@davidlougheed davidlougheed changed the title feat: ingestion report with errors and json schema warnings feat: experiment library schema changes, ingestion report with errors, json schema warnings Oct 16, 2023
@davidlougheed
Copy link
Member

two years out of date - I'm closing this.

@davidlougheed
Copy link
Member

actually nevermind, some of this might still be needed for genovalia - re-opening haha

@davidlougheed davidlougheed reopened this Oct 21, 2025
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