Skip to content

Commit

Permalink
add schema and revert functions
Browse files Browse the repository at this point in the history
  • Loading branch information
klaricch committed Jan 29, 2025
1 parent 50b21af commit e6553ad
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 387 deletions.
Empty file.
32 changes: 32 additions & 0 deletions gnomad_qc/v5/configs/validity_inputs_schema.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
schema = {
"type": "object",
"properties": {
"missingness_threshold": {"type": "number"},
"indexed_array_annotations": {
"type": "object",
"additionalProperties": {"type": "string"} # Allow any string keys with string values
},
"struct_annotations_for_missingness": {
"type": "array",
"items": {"type": "string"}
},
"freq_meta_expr": {"type": "string"},
"freq_annotations_to_sum": {
"type": "array",
"items": {"type": "string"}
},
"freq_sort_order": {
"type": "array",
"items": {"type": "string"}
}
},
"required": [
"missingness_threshold",
"indexed_array_annotations",
"struct_annotations_for_missingness",
"freq_meta_expr",
"freq_annotations_to_sum",
"freq_sort_order"
],
"additionalProperties": False
}
Loading

0 comments on commit e6553ad

Please sign in to comment.