Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python:
before_script:
- yes | python setup.py install
- git clone https://github.com/uc-cdis/dictionaryutils; cd dictionaryutils
- git checkout c0ecf93c024ccc311ed8f02ed2df3b55fceae709
script:
- ./run_tests.sh
deploy:
Expand Down
26 changes: 12 additions & 14 deletions gdcdictionary/schemas/imaging_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@ systemProperties:
- updated_datetime

links:
- exclusive: false
- name: core_metadata_collections
backref: imaging_files
label: data_from
target_type: core_metadata_collection
multiplicity: many_to_one
required: false
- name: imaging_exams
backref: imaging_files
label: data_for
target_type: imaging_exam
multiplicity: many_to_one
required: true
subgroup:
- name: core_metadata_collections
backref: imaging_files
label: data_from
target_type: core_metadata_collection
multiplicity: many_to_one
required: false
- name: imaging_exams
backref: imaging_files
label: data_for
target_type: imaging_exam
multiplicity: many_to_one
required: false


uniqueKeys:
Expand All @@ -50,6 +47,7 @@ required:
- data_format
- md5sum
- data_category
- imaging_exams

properties:
$ref: "_definitions.yaml#/data_file_properties"
Expand Down
3 changes: 2 additions & 1 deletion gdcdictionary/schemas/imaging_study.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ links:
label: performed_at
target_type: follow_up
multiplicity: many_to_one
required: false
required: true


uniqueKeys:
Expand All @@ -43,6 +43,7 @@ required:
- submitter_id
- type
- subjects
- follow_ups

properties:
$ref: "_definitions.yaml#/ubiquitous_properties"
Expand Down
26 changes: 12 additions & 14 deletions gdcdictionary/schemas/submitted_unaligned_reads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,18 @@ systemProperties:
- error_type

links:
- exclusive: false
- name: core_metadata_collections
backref: submitted_unaligned_reads_files
label: data_from
target_type: core_metadata_collection
multiplicity: many_to_one
required: false
- name: read_groups
backref: submitted_unaligned_reads_files # pretty ugly
label: data_from
target_type: read_group
multiplicity: many_to_one
required: true
subgroup:
- name: core_metadata_collections
backref: submitted_unaligned_reads_files
label: data_from
target_type: core_metadata_collection
multiplicity: many_to_one
required: false
- name: read_groups
backref: submitted_unaligned_reads_files # pretty ugly
label: data_from
target_type: read_group
multiplicity: many_to_one
required: false

required:
- type
Expand All @@ -48,6 +45,7 @@ required:
- data_type
- data_format
- experimental_strategy
- read_groups

uniqueKeys:
- [ id ]
Expand Down
26 changes: 12 additions & 14 deletions gdcdictionary/schemas/summary_drug_use.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@ systemProperties:
- updated_datetime

links:
- exclusive: false
- name: follow_ups
backref: summary_drug_uses
label: performed_at
target_type: follow_up
multiplicity: one_to_one
required: true
subgroup:
- name: follow_ups
backref: summary_drug_uses
label: performed_at
target_type: follow_up
multiplicity: one_to_one
required: false
- name: treatments
backref: summary_drug_uses
label: associate_with
target_type: treatment
multiplicity: one_to_one
required: false
- name: treatments
backref: summary_drug_uses
label: associate_with
target_type: treatment
multiplicity: one_to_one
required: false

uniqueKeys:
- [id]
Expand All @@ -44,6 +41,7 @@ uniqueKeys:
required:
- submitter_id
- type
- follow_ups

properties:
$ref: "_definitions.yaml#/ubiquitous_properties"
Expand Down
28 changes: 13 additions & 15 deletions gdcdictionary/schemas/summary_lab_result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,19 @@ systemProperties:
- updated_datetime

links:
- exclusive: false
- name: follow_ups
backref: summary_lab_results
label: performed_at
target_type: follow_up
multiplicity: one_to_one
required: true
subgroup:
- name: follow_ups
backref: summary_lab_results
label: performed_at
target_type: follow_up
multiplicity: many_to_one
required: false

- name: samples
backref: summary_lab_results
label: performed_on
target_type: sample
multiplicity: one_to_one
required: false

- name: samples
backref: summary_lab_results
label: performed_on
target_type: sample
multiplicity: one_to_one
required: false

uniqueKeys:
- [id]
Expand All @@ -52,6 +49,7 @@ uniqueKeys:
required:
- submitter_id
- type
- follow_ups

properties:
$ref: "_definitions.yaml#/ubiquitous_properties"
Expand Down
3 changes: 2 additions & 1 deletion gdcdictionary/schemas/summary_mutation_panel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ links:
label: derived_from
target_type: submitted_unaligned_reads
multiplicity: many_to_one
required: false
required: true

uniqueKeys:
- [id]
Expand All @@ -42,6 +42,7 @@ required:
- submitter_id
- type
- subjects
- submitted_unaligned_reads_files

properties:
$ref: "_definitions.yaml#/ubiquitous_properties"
Expand Down
26 changes: 12 additions & 14 deletions gdcdictionary/schemas/summary_socio_demographic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@ systemProperties:
- updated_datetime

links:
- exclusive: false
- name: subjects
backref: summary_socio_demographics
label: performed_on
target_type: subject
multiplicity: one_to_one
required: false
- name: follow_ups
backref: summary_socio_demographics
label: performed_at
target_type: follow_up
multiplicity: one_to_one
required: true
subgroup:
- name: subjects
backref: summary_socio_demographics
label: performed_on
target_type: subject
multiplicity: one_to_one
required: false
- name: follow_ups
backref: summary_socio_demographics
label: performed_at
target_type: follow_up
multiplicity: one_to_one
required: false

uniqueKeys:
- [id]
Expand All @@ -44,6 +41,7 @@ uniqueKeys:
required:
- submitter_id
- type
- follow_ups

properties:
$ref: "_definitions.yaml#/ubiquitous_properties"
Expand Down