get_bids_phenotype_data {bidsr} | R Documentation |
'BIDS' phenotype and assessment table class
Description
A tabular containing a list of phenotype & assessment, with their metadata.
The class is a child class of BIDSTabular
, hence see
the methods there.
The original specification is at
https://bids-specification.readthedocs.io/en/stable/modality-agnostic-files.html#phenotypic-and-assessment-data.
Usage
get_bids_phenotype_data(x, ...)
BIDSTabularPhenotype(content, meta = NULL)
Arguments
x |
R object such as file path, project instances, etc. |
... |
passed to other methods or ignored |
content , meta |
see |
Value
A BIDSTabularPhenotype
instance inheriting
BIDSTabular
.
Author(s)
Zhengjia Wang
Examples
BIDSTabularPhenotype(
meta = list(
MeasurementToolMetadata = list(
Description = "Adult ADHD Clinical Diagnostic Scale V1.2",
TermURL = "https://www.cognitiveatlas.org/task/id/trm_5586ff878155d"
),
adhd_b = list(
Description = "B. CHILDHOOD ONSET OF ADHD (PRIOR TO AGE 7)",
Levels = list(
"1" = "YES",
"2" = "NO"
)
),
adhd_c_dx = list(
Description = "As child met A, B, C, D, E and F diagnostic criteria",
Levels = list(
"1" = "YES",
"2" = "NO"
)
)
),
content = data.frame(
MeasurementToolMetadata = c(2, 3, 4),
adhd_b = c(1, 2, 1),
adhd_c_dx = c(2, 1, 2)
)
)
[Package bidsr version 0.1.0 Index]