Closed mattcieslak closed 8 months ago
Can add a javascript button that will go somwhere here: https://github.com/PennBBL/qsiprep/blob/master/qsiprep/viz/report.tpl#L174
In addition to the content already in the example json, the json should include the following fields:
subject_id
, let's say with the "sub-" prefixanalysis_level
, whose value should be "participant" or "group"pipeline
, whose value is "qsiprep"pipeline_version
, with the version of qsiprepboilerplate
, with the boilerplate html used in report.htmlAlso, after the conversation in our telecon this morning, perhaps we should add a json sidecar to report.json
the same way we do for nifti files.
I've made a public S3 bucket at s3://dmriprep-viewer-example-data with a sample layout for these reports. Please use this as a reference spec for the json reports. Things to note:
dwiqc.json
suffix (and I'm certainly open to discussion on the naming scheme).derivatives/qsiprep
)"report_type": "dwi_qc_report"
"pipeline": "qsiprep"
"pipeline_version":
version of qsiprep used to generate report"analysis_level": "group"
"boilerplate":
any html boilerplate that we want for the entire study"subjects":
an array described in the next bullet"metric_explanation:
an object with the same keys found in each element of the subjects array, with values that explain what the metric isImageQc
csv headers.Tagging @arokem for visibility of the json report spec.
BTW, pandas.DataFrame.to_json(orient="records")
should create the subjects array in exactly the format that I've specified.
It's fine for this to be a public S3 bucket, if there's good reason. As an alternative, consider using OSF's storage.
Save this along with the other figures in the derivatives
Tagging @richford