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
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ The definitions of these fields can be found in
and a guide for using macros can be found at
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
-->
{{ MACROS___make_metadata_table(
{
"MeasurementToolMetadata": "OPTIONAL",
"Derivative": "OPTIONAL",
}
) }}
{{ MACROS___make_sidecar_table('phenotype.Phenotype') }}

As an example, consider the contents of a file called
`phenotype/acds_adult.json`:
Expand Down
11 changes: 1 addition & 10 deletions src/modality-specific-files/genetic-descriptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,7 @@ The definitions of these fields can be found in
and a guide for using macros can be found at
https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
-->
{{ MACROS___make_metadata_table(
{
"GeneticLevel": "REQUIRED",
"AnalyticalApproach": "OPTIONAL",
"SampleOrigin": "REQUIRED",
"TissueOrigin": "OPTIONAL",
"BrainLocation": "OPTIONAL",
"CellType": "OPTIONAL",
}
) }}
{{ MACROS___make_json_table('dataset_metadata.genetic_info') }}

To ensure dataset description consistency, we recommend following [Multi-omics approaches to disease](https://genomebiology.biomedcentral.com/articles/10.1186/s13059-017-1215-1) by Hasin et al. 2017 to determine the `GeneticLevel:`

Expand Down
8 changes: 8 additions & 0 deletions src/schema/rules/sidecars/phenotype.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---

Phenotype:
selectors:
- datatype == 'phenotype'
fields:
MeasurementToolMetadata: optional
Derivative: optional