|
46 | 46 | items: |
47 | 47 | anyOf: |
48 | 48 | - $ref: '#/components/schemas/ExperimentDrsObject' |
| 49 | + - $ref: '#/components/schemas/RunDrsObject' |
49 | 50 | - $ref: '#/components/schemas/AnalysisDrsObject' |
50 | 51 | - $ref: '#/components/schemas/DataDrsObject' |
51 | 52 | tags: |
@@ -92,7 +93,10 @@ paths: |
92 | 93 | application/json: |
93 | 94 | schema: |
94 | 95 | oneOf: |
| 96 | + - $ref: '#/components/schemas/ExperimentDrsObject' |
| 97 | + - $ref: '#/components/schemas/RunDrsObject' |
95 | 98 | - $ref: '#/components/schemas/AnalysisDrsObject' |
| 99 | + - $ref: '#/components/schemas/DataDrsObject' |
96 | 100 | tags: |
97 | 101 | - Objects |
98 | 102 | /objects/{object_id}/download: |
@@ -306,9 +310,10 @@ components: |
306 | 310 | 'application/json': |
307 | 311 | schema: |
308 | 312 | anyOf: |
309 | | - - $ref: "#/components/schemas/ExperimentDrsObject" |
310 | | - - $ref: "#/components/schemas/AnalysisDrsObject" |
311 | | - - $ref: "#/components/schemas/DataDrsObject" |
| 313 | + - $ref: '#/components/schemas/ExperimentDrsObject' |
| 314 | + - $ref: '#/components/schemas/RunDrsObject' |
| 315 | + - $ref: '#/components/schemas/AnalysisDrsObject' |
| 316 | + - $ref: '#/components/schemas/DataDrsObject' |
312 | 317 | ProgramRequest: |
313 | 318 | content: |
314 | 319 | 'application/json': |
@@ -490,6 +495,81 @@ components: |
490 | 495 | # minItems: 1 |
491 | 496 | items: |
492 | 497 | $ref: '#/components/schemas/Checksum' |
| 498 | + RunDrsObject: |
| 499 | + type: object |
| 500 | + description: A DrsObject that describes the raw read files. |
| 501 | + required: |
| 502 | + - name |
| 503 | + - id |
| 504 | + - contents |
| 505 | + - description |
| 506 | + - program |
| 507 | + properties: |
| 508 | + name: |
| 509 | + type: string |
| 510 | + description: The experiment's name that this run is generated from. |
| 511 | + id: |
| 512 | + type: string |
| 513 | + description: The unique ID for the run. |
| 514 | + contents: |
| 515 | + type: array |
| 516 | + description: The specific raw FASTQ files that were generated in this Run. |
| 517 | + items: |
| 518 | + $ref: '#/components/schemas/ContentsObject' |
| 519 | + description: |
| 520 | + type: string |
| 521 | + description: For a Run object, the description should be `raw_reads` |
| 522 | + enum: |
| 523 | + - raw_reads |
| 524 | + program: |
| 525 | + type: string |
| 526 | + description: The program this object was ingested as part of |
| 527 | + self_uri: |
| 528 | + type: string |
| 529 | + description: |- |
| 530 | + A drs:// hostname-based URI, as defined in the DRS documentation, that tells clients how to access this object. |
| 531 | + The intent of this field is to make DRS objects self-contained, and therefore easier for clients to store and pass around. For example, if you arrive at this DRS JSON by resolving a compact identifier-based DRS URI, the `self_uri` presents you with a hostname and properly encoded DRS ID for use in subsequent `access` endpoint calls. |
| 532 | + example: |
| 533 | + drs://drs.example.org/314159 |
| 534 | + aliases: |
| 535 | + type: array |
| 536 | + items: |
| 537 | + type: string |
| 538 | + description: >- |
| 539 | + A list of strings that can be used to find other metadata |
| 540 | + about this `DrsObject` from external metadata sources. These |
| 541 | + aliases can be used to represent secondary |
| 542 | + accession numbers or external GUIDs. |
| 543 | + metadata: |
| 544 | + type: object |
| 545 | + description: metadata about the run (see Run in ingest_openapi.yaml) |
| 546 | + size: |
| 547 | + type: integer |
| 548 | + format: int64 |
| 549 | + description: The cumulative size, in bytes, of items in the `contents` field. |
| 550 | + created_time: |
| 551 | + type: string |
| 552 | + format: date-time |
| 553 | + description: |- |
| 554 | + Timestamp of content creation in RFC3339. |
| 555 | + (This is the creation time of the underlying content, not of the JSON object.) |
| 556 | + updated_time: |
| 557 | + type: string |
| 558 | + format: date-time |
| 559 | + description: >- |
| 560 | + Timestamp of content update in RFC3339, identical to `created_time` in systems |
| 561 | + that do not support updates. |
| 562 | + (This is the update time of the underlying content, not of the JSON object.) |
| 563 | + version: |
| 564 | + type: string |
| 565 | + description: >- |
| 566 | + A string representing a version. |
| 567 | + (Some systems may use checksum, a RFC3339 timestamp, or an incrementing version number.) |
| 568 | + checksums: |
| 569 | + type: array |
| 570 | + # minItems: 1 |
| 571 | + items: |
| 572 | + $ref: '#/components/schemas/Checksum' |
493 | 573 | AnalysisDrsObject: |
494 | 574 | type: object |
495 | 575 | description: A DrsObject that describes a sequencing analysis. It usually will consist of a data file, e.g. a variant or read file, and its associated index file. Its contents should also include any associated Experiments (as ContentObjects), ordered in order of appearance in the associated variant/read files. |
@@ -590,7 +670,7 @@ components: |
590 | 670 | properties: |
591 | 671 | name: |
592 | 672 | type: string |
593 | | - description: Unique ID for this data object |
| 673 | + description: The filename for this data file, including its file extensions. |
594 | 674 | id: |
595 | 675 | type: string |
596 | 676 | description: The filename for this data file, including its file extensions. |
|
0 commit comments