Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter_for to dataset schema and yamls for #1553 #1554

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
13 changes: 13 additions & 0 deletions metadata/datasets.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ mapping:
type: str
required: false
unique: false
# 'filter_out' is used in GO rule 57 to filter out annotation lines matching specified criteria
# This filter is only active in the import context when a dataset has its import flag set to True
"filter_out":
type: map
required: false
Expand Down Expand Up @@ -69,6 +71,17 @@ mapping:
required: false
sequence:
- type: str
# 'filter_for' is used in GO rule 57 to filter annotation lines, keeping only the lines matching specified criteria
# This filter is only active in the import context when a dataset has its import flag set to True
"filter_for":
type: map
required: false
mapping:
"provided_by":
type: seq
required: false
sequence:
- type: str
"datasets":
type: seq
required: true
Expand Down
3 changes: 3 additions & 0 deletions metadata/datasets/mgi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ filter_out:
reference: PMID:21873635
annotation_properties:
- noctua-model-id
filter_for:
provided_by:
- MGI
datasets:
-
id: mgi.gaf
Expand Down
3 changes: 3 additions & 0 deletions metadata/datasets/wb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ filter_out:
evidence_reference:
- evidence: ECO:0000320
reference: PMID:21873635
filter_for:
provided_by:
- WB
datasets:
-
id: wb.gaf
Expand Down