Skip to content

Commit

Permalink
Docs: Add draft specs for new directory schemas (that have been defin…
Browse files Browse the repository at this point in the history
…ed thus far).
  • Loading branch information
Juan Puerto committed Aug 1, 2023
1 parent a643dd4 commit dd2e1d3
Show file tree
Hide file tree
Showing 29 changed files with 108 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/af/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/1_fMJrZVgx8g80uduxfr1HcIHz52_fpRfwFWFrA40tlg">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/bulkatacseq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/bulkrnaseq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/celldive/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/1pZD2e51e4QkxzIk6xjHPPu1RBZpx5mzoykMmlaDK8rA/edit#gid=158547256">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/codex/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v2
<summary><a href="https://docs.google.com/spreadsheets/d/1pZD2e51e4QkxzIk6xjHPPu1RBZpx5mzoykMmlaDK8rA/edit#gid=158547256">Draft</a></summary>

### v1-with-dataset-json

| pattern | required? | description |
Expand Down
4 changes: 4 additions & 0 deletions docs/histology/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Related files:



## Directory schemas
### v0
<summary><a href="https://docs.google.com/spreadsheets/d/1_fMJrZVgx8g80uduxfr1HcIHz52_fpRfwFWFrA40tlg">Draft</a></summary>




Expand Down
3 changes: 3 additions & 0 deletions docs/ims/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/1I2aXIpOQHBjeLbKsVn0qJTOH7vtByeQ9t_1EnlTAPL4">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/mxif/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/1pZD2e51e4QkxzIk6xjHPPu1RBZpx5mzoykMmlaDK8rA/edit#gid=158547256">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/scatacseq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Related files:
## Directory schemas
The HIVE will process each dataset with
[scATACseq Pipeline 1.4.3](https://github.com/hubmapconsortium/sc-atac-seq-pipeline/releases/tag/1.4.3).
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/scrnaseq-hca/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/scrnaseq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/slideseq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/1LE-iyY2E6eP4E8jhgP6rhsvjESrdHXWYrMwKTvNkI5Y">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/stained/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v2
<summary><a href="https://docs.google.com/spreadsheets/d/1_fMJrZVgx8g80uduxfr1HcIHz52_fpRfwFWFrA40tlg">Draft</a></summary>

### v1

| pattern | required? | description |
Expand Down
3 changes: 3 additions & 0 deletions docs/wgs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Related files:


## Directory schemas
### v1
<summary><a href="https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc/edit#gid=37240204">Draft</a></summary>

### v0

| pattern | required? | description |
Expand Down
4 changes: 4 additions & 0 deletions src/ingest_validation_tools/directory-schemas/af-v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/1_fMJrZVgx8g80uduxfr1HcIHz52_fpRfwFWFrA40tlg'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc'
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# GE CellDIVE Directory Schema
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/1pZD2e51e4QkxzIk6xjHPPu1RBZpx5mzoykMmlaDK8rA/edit#gid=158547256'
5 changes: 5 additions & 0 deletions src/ingest_validation_tools/directory-schemas/codex-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# GE CellDIVE Directory Schema
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/1pZD2e51e4QkxzIk6xjHPPu1RBZpx5mzoykMmlaDK8rA/edit#gid=158547256'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/1_fMJrZVgx8g80uduxfr1HcIHz52_fpRfwFWFrA40tlg'
4 changes: 4 additions & 0 deletions src/ingest_validation_tools/directory-schemas/ims-v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/1I2aXIpOQHBjeLbKsVn0qJTOH7vtByeQ9t_1EnlTAPL4'
4 changes: 4 additions & 0 deletions src/ingest_validation_tools/directory-schemas/mxif-v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/1pZD2e51e4QkxzIk6xjHPPu1RBZpx5mzoykMmlaDK8rA/edit#gid=158547256'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc'
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/1LE-iyY2E6eP4E8jhgP6rhsvjESrdHXWYrMwKTvNkI5Y'
4 changes: 4 additions & 0 deletions src/ingest_validation_tools/directory-schemas/stained-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/1_fMJrZVgx8g80uduxfr1HcIHz52_fpRfwFWFrA40tlg'
4 changes: 4 additions & 0 deletions src/ingest_validation_tools/directory-schemas/wgs-v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: true
files:
-
draft_link: 'https://docs.google.com/spreadsheets/d/10Om2iinTwfLn1ySWtovmcm35cQnyg0Pm-rRd0a-eMjc/edit#gid=37240204'
9 changes: 7 additions & 2 deletions src/ingest_validation_tools/docs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,13 +502,14 @@ def _make_dir_descriptions(dir_schemas, pipeline_infos):
f'### v{v}\n'
+ _make_dir_description(
schema['files'],
schema.get('deprecated', False))
schema.get('deprecated', False),
schema.get('draft', False))
+ '\n\n' # Trailing blankline needed for correct gh-pages rendering.
for v, schema in sorted_items
)


def _make_dir_description(files, is_deprecated=False):
def _make_dir_description(files, is_deprecated=False, is_draft=False):
'''
QA and Required flags are handled:
Expand Down Expand Up @@ -573,6 +574,10 @@ def _make_dir_description(files, is_deprecated=False):
...
AssertionError: Unexpected key "bad" in {'bad': 'schema'}
'''

if is_draft and files[0].get("draft_link", None):
return f'<summary><a href="{files[0].get("draft_link")}">Draft</a></summary>'

for line in files:
for k in line.keys():
assert k in {'pattern', 'required', 'description', 'example', 'is_qa_qc'}, \
Expand Down

0 comments on commit dd2e1d3

Please sign in to comment.