Perhaps it would be useful to have this directory in some of the example datasets…
yes, the phenotype directory is not very well advertised, I agree. See also this issue and the PR linked therein. Further improvements in the form of a PR are welcome.
this is one example: OpenNeuro
the issue is that for each subject there are different numbers of medications/questionnaires given
mmmh, I see. Why would it not work if each participant is a row and you make a column for each medication?
I assume that Lev, Ras, Sel, Pr are some kinds of medication … because that’s what they seem to me from your example.
Example: /phenotype/myfile.tsv
participant_id dose_lev dose_ras dose_sel dose_pr
sub-01 0.25 1 n/a n/a
sub-02 n/a n/a 5 1.5
and then in the accompanying /phenotype/myfile.json you put something like:
{
"dose_lev": {
"Description": "Dosage of Lev",
"Units": "mg"
}
...
}