{ "cells": [ { "cell_type": "markdown", "id": "df0b3e95-c3f7-4158-8e90-09cb1d67425b", "metadata": {}, "source": [ "# Generate a dataset report\n", "\n", "Here we generate a methods writeup from a synthetic test dataset using `BIDSReport`." ] }, { "cell_type": "code", "execution_count": 1, "id": "4438f0cb-216a-4cb0-afa1-9991a90eaed1", "metadata": { "tags": [] }, "outputs": [], "source": [ "from os.path import join\n", "\n", "import rich\n", "from bids.layout import BIDSLayout\n", "from bids.tests import get_test_data_path" ] }, { "cell_type": "code", "execution_count": 2, "id": "f95fc530-40f2-4596-ade8-a764869f4312", "metadata": { "tags": [] }, "outputs": [], "source": [ "layout = BIDSLayout(join(get_test_data_path(), \"synthetic\"))" ] }, { "cell_type": "code", "execution_count": 3, "id": "12072a21-bfc6-4b48-a1c5-3d60ee4776dd", "metadata": { "tags": [] }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/remi/github/bids/pybids-reports/env/lib/python3.11/site-packages/bids/layout/models.py:229: UserWarning: Accessing entities as attributes is deprecated as of 0.7. Please use the .entities dictionary instead (i.e., .entities['run'] instead of .run.\n", " warnings.warn(\"Accessing entities as attributes is deprecated as \"\n" ] }, { "data": { "text/html": [ "
[15:55:32] INFO     Number of patterns detected: 1                                                    report.py:182\n",
       "
\n" ], "text/plain": [ "\u001b[2;36m[15:55:32]\u001b[0m\u001b[2;36m \u001b[0m\u001b[34mINFO \u001b[0m Number of patterns detected: \u001b[1;36m1\u001b[0m \u001b]8;id=814046;file:///home/remi/github/bids/pybids-reports/env/lib/python3.11/site-packages/bids/ext/reports/report.py\u001b\\\u001b[2mreport.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=132094;file:///home/remi/github/bids/pybids-reports/env/lib/python3.11/site-packages/bids/ext/reports/report.py#182\u001b\\\u001b[2m182\u001b[0m\u001b]8;;\u001b\\\n" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
           INFO     Remember to double-check everything and to replace <deg> with a degree symbol.    report.py:184\n",
       "
\n" ], "text/plain": [ "\u001b[2;36m \u001b[0m\u001b[2;36m \u001b[0m\u001b[34mINFO \u001b[0m Remember to double-check everything and to replace \u001b[1m<\u001b[0m\u001b[1;95mdeg\u001b[0m\u001b[1m>\u001b[0m with a degree symbol. \u001b]8;id=661173;file:///home/remi/github/bids/pybids-reports/env/lib/python3.11/site-packages/bids/ext/reports/report.py\u001b\\\u001b[2mreport.py\u001b[0m\u001b]8;;\u001b\\\u001b[2m:\u001b[0m\u001b]8;id=569816;file:///home/remi/github/bids/pybids-reports/env/lib/python3.11/site-packages/bids/ext/reports/report.py#184\u001b\\\u001b[2m184\u001b[0m\u001b]8;;\u001b\\\n" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from bids.ext.reports import BIDSReport\n", "\n", "report = BIDSReport(layout)\n", "counter = report.generate(session=\"01\")" ] }, { "cell_type": "code", "execution_count": 4, "id": "8b6b5ca9-19e8-4e3e-a53a-9ac1be39d378", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/html": [ "
In session 01, \n",
       "MRI data were acquired using a  system.\n",
       "\n",
       "One run of   UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo structural MRI data were collected (repetition \n",
       "time, TR= 2500.0 ms; flip angle, FA= 8°; echo time, TE= 2.9 ms; field of view FOV= 256x256 mm; matrix size= \n",
       "256x256; voxel size= 1x1x1 mm; UNKNOWN slices).\n",
       "\n",
       "One run of   UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo structural MRI data were collected (repetition \n",
       "time, TR= 2500.0 ms; flip angle, FA= 8°; echo time, TE= 2.9 ms; field of view FOV= 256x256 mm; matrix size= \n",
       "256x256; voxel size= 1x1x1 mm; UNKNOWN slices).\n",
       "\n",
       "One run of  UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT diffusion-weighted-imaging () data were collected (68 slices;\n",
       "repetition time, TR= 8400.0 ms; flip angle, FA= 90°; echo time, TE= 90 ms; field of view FOV= 128x128 mm; matrix \n",
       "size= 64x64; voxel size= 2x2x2 mm; b-values of 0 and 1000 acquired; 64 diffusion directions;  ).\n",
       "\n",
       "\n",
       "\n",
       "A  UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT field map (repetition time, TR= 400.0 ms; flip angle, FA= 60.0°; echo \n",
       "time 1 / 2, TE 1/2= 519000.0/519000.0 ms; phase encoding: anterior to posterior; field of view FOV= 256x256 mm; \n",
       "matrix size= 256x256; voxel size= 1x1x1 mm; UNKNOWN slices) was acquired for the first and second runs of the \n",
       "N-Back BOLD scan.\n",
       "\n",
       "For the N-Back task Two runs of bold  UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were \n",
       "collected. The acquisition parameters were: UNKNOWN slices acquired in a  fashion; repetition time, TR= 2500.0 ms; \n",
       "echo time, TE= 30 ms;    field of view FOV= 128x128 mm; matrix size= 64x64; voxel size= 2x2x2 mm;\n",
       "Each run was 2:40 minutes in length, during which 64 functional volumes were acquired.\n",
       "\n",
       "Participants were specifically instructed to: \n",
       "For the N-Back task Two runs of bold  UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were \n",
       "collected. The acquisition parameters were: UNKNOWN slices acquired in a  fashion; repetition time, TR= 2500.0 ms; \n",
       "echo time, TE= 30 ms;    field of view FOV= 128x128 mm; matrix size= 64x64; voxel size= 2x2x2 mm;\n",
       "Each run was 2:40 minutes in length, during which 64 functional volumes were acquired.\n",
       "\n",
       "Participants were specifically instructed to: \n",
       "For the Rest task One run of bold  UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were collected. \n",
       "The acquisition parameters were: UNKNOWN slices acquired in a  fashion; repetition time, TR= 2500.0 ms; echo time, \n",
       "TE= 30 ms;    field of view FOV= 128x128 mm; matrix size= 64x64; voxel size= 2x2x2 mm;\n",
       "Each run was 2:40 minutes in length, during which 64 functional volumes were acquired.\n",
       "\n",
       "Participants were specifically instructed to: \n",
       "For the Rest task One run of bold  UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were collected. \n",
       "The acquisition parameters were: UNKNOWN slices acquired in a  fashion; repetition time, TR= 2500.0 ms; echo time, \n",
       "TE= 30 ms;    field of view FOV= 128x128 mm; matrix size= 64x64; voxel size= 2x2x2 mm;\n",
       "Each run was 2:40 minutes in length, during which 64 functional volumes were acquired.\n",
       "\n",
       "Participants were specifically instructed to: \n",
       "One run of   UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo structural MRI data were collected (repetition \n",
       "time, TR= 2500.0 ms; flip angle, FA= 8°; echo time, TE= 2.9 ms; field of view FOV= 256x256 mm; matrix size= \n",
       "256x256; voxel size= 1x1x1 mm; UNKNOWN slices).\n",
       "\n",
       "One run of   UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo structural MRI data were collected (repetition \n",
       "time, TR= 2500.0 ms; flip angle, FA= 8°; echo time, TE= 2.9 ms; field of view FOV= 256x256 mm; matrix size= \n",
       "256x256; voxel size= 1x1x1 mm; UNKNOWN slices).\n",
       "\n",
       "For the N-Back task Two runs of bold  UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were \n",
       "collected. The acquisition parameters were: UNKNOWN slices acquired in a  fashion; repetition time, TR= 2500.0 ms; \n",
       "echo time, TE= 30 ms;    field of view FOV= 128x128 mm; matrix size= 64x64; voxel size= 2x2x2 mm;\n",
       "Each run was 2:40 minutes in length, during which 64 functional volumes were acquired.\n",
       "\n",
       "Participants were specifically instructed to: \n",
       "For the N-Back task Two runs of bold  UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were \n",
       "collected. The acquisition parameters were: UNKNOWN slices acquired in a  fashion; repetition time, TR= 2500.0 ms; \n",
       "echo time, TE= 30 ms;    field of view FOV= 128x128 mm; matrix size= 64x64; voxel size= 2x2x2 mm;\n",
       "Each run was 2:40 minutes in length, during which 64 functional volumes were acquired.\n",
       "\n",
       "Participants were specifically instructed to: \n",
       "For the Rest task One run of bold  UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were collected. \n",
       "The acquisition parameters were: UNKNOWN slices acquired in a  fashion; repetition time, TR= 2500.0 ms; echo time, \n",
       "TE= 30 ms;    field of view FOV= 128x128 mm; matrix size= 64x64; voxel size= 2x2x2 mm;\n",
       "Each run was 2:40 minutes in length, during which 64 functional volumes were acquired.\n",
       "\n",
       "Participants were specifically instructed to: \n",
       "For the Rest task One run of bold  UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were collected. \n",
       "The acquisition parameters were: UNKNOWN slices acquired in a  fashion; repetition time, TR= 2500.0 ms; echo time, \n",
       "TE= 30 ms;    field of view FOV= 128x128 mm; matrix size= 64x64; voxel size= 2x2x2 mm;\n",
       "Each run was 2:40 minutes in length, during which 64 functional volumes were acquired.\n",
       "\n",
       "Participants were specifically instructed to: \n",
       "\n",
       "Dicoms were converted to NIfTI-1 format.\n",
       "
\n" ], "text/plain": [ "In session \u001b[1;36m01\u001b[0m, \n", "\u001b[36mMRI data were acquired using a system.\u001b[0m\n", "\n", "\u001b[36mOne run of UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo structural MRI data were collected \u001b[0m\u001b[1;36m(\u001b[0m\u001b[36mrepetition \u001b[0m\n", "\u001b[36mtime, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; flip angle, \u001b[0m\u001b[36mFA\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m8\u001b[0m\u001b[36m°; echo time, \u001b[0m\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2.9\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 256x256 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= \u001b[0m\n", "\u001b[36m256x256; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 1x1x1 mm; UNKNOWN slices\u001b[0m\u001b[1;36m)\u001b[0m\u001b[36m.\u001b[0m\n", "\n", "\u001b[36mOne run of UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo structural MRI data were collected \u001b[0m\u001b[1;36m(\u001b[0m\u001b[36mrepetition \u001b[0m\n", "\u001b[36mtime, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; flip angle, \u001b[0m\u001b[36mFA\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m8\u001b[0m\u001b[36m°; echo time, \u001b[0m\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2.9\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 256x256 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= \u001b[0m\n", "\u001b[36m256x256; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 1x1x1 mm; UNKNOWN slices\u001b[0m\u001b[1;36m)\u001b[0m\u001b[36m.\u001b[0m\n", "\n", "\u001b[36mOne run of UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT diffusion-weighted-imaging \u001b[0m\u001b[1;36m(\u001b[0m\u001b[1;36m)\u001b[0m\u001b[36m data were collected \u001b[0m\u001b[1;36m(\u001b[0m\u001b[1;36m68\u001b[0m\u001b[36m slices;\u001b[0m\n", "\u001b[36mrepetition time, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m8400.0\u001b[0m\u001b[36m ms; flip angle, \u001b[0m\u001b[36mFA\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m90\u001b[0m\u001b[36m°; echo time, \u001b[0m\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m90\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 128x128 mm; matrix \u001b[0m\n", "\u001b[36msize\u001b[0m\u001b[36m= 64x64; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 2x2x2 mm; b-values of \u001b[0m\u001b[1;36m0\u001b[0m\u001b[36m and \u001b[0m\u001b[1;36m1000\u001b[0m\u001b[36m acquired; \u001b[0m\u001b[1;36m64\u001b[0m\u001b[36m diffusion directions; \u001b[0m\u001b[1;36m)\u001b[0m\u001b[36m.\u001b[0m\n", "\n", "\n", "\n", "\u001b[36mA UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT field map \u001b[0m\u001b[1;36m(\u001b[0m\u001b[36mrepetition time, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m400.0\u001b[0m\u001b[36m ms; flip angle, \u001b[0m\u001b[36mFA\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m60.0\u001b[0m\u001b[36m°; echo \u001b[0m\n", "\u001b[36mtime \u001b[0m\u001b[1;36m1\u001b[0m\u001b[36m \u001b[0m\u001b[36m/\u001b[0m\u001b[36m \u001b[0m\u001b[1;36m2\u001b[0m\u001b[36m, TE \u001b[0m\u001b[1;36m1\u001b[0m\u001b[36m/\u001b[0m\u001b[1;36m2\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m519000.0\u001b[0m\u001b[36m/\u001b[0m\u001b[1;36m519000.0\u001b[0m\u001b[36m ms; phase encoding: anterior to posterior; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 256x256 mm; \u001b[0m\n", "\u001b[36mmatrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 256x256; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 1x1x1 mm; UNKNOWN slices\u001b[0m\u001b[1;36m)\u001b[0m\u001b[36m was acquired for the first and second runs of the \u001b[0m\n", "\u001b[36mN-Back BOLD scan.\u001b[0m\n", "\n", "\u001b[36mFor the N-Back task Two runs of bold UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were \u001b[0m\n", "\u001b[36mcollected. The acquisition parameters were: UNKNOWN slices acquired in a fashion; repetition time, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; \u001b[0m\n", "\u001b[36mecho time, \u001b[0m\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m30\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 128x128 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 64x64; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 2x2x2 mm;\u001b[0m\n", "\u001b[36mEach run was \u001b[0m\u001b[1;36m2:40\u001b[0m\u001b[36m minutes in length, during which \u001b[0m\u001b[1;36m64\u001b[0m\u001b[36m functional volumes were acquired.\u001b[0m\n", "\n", "\u001b[36mParticipants were specifically instructed to: \u001b[0m\n", "\u001b[36mFor the N-Back task Two runs of bold UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were \u001b[0m\n", "\u001b[36mcollected. The acquisition parameters were: UNKNOWN slices acquired in a fashion; repetition time, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; \u001b[0m\n", "\u001b[36mecho time, \u001b[0m\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m30\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 128x128 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 64x64; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 2x2x2 mm;\u001b[0m\n", "\u001b[36mEach run was \u001b[0m\u001b[1;36m2:40\u001b[0m\u001b[36m minutes in length, during which \u001b[0m\u001b[1;36m64\u001b[0m\u001b[36m functional volumes were acquired.\u001b[0m\n", "\n", "\u001b[36mParticipants were specifically instructed to: \u001b[0m\n", "\u001b[36mFor the Rest task One run of bold UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were collected. \u001b[0m\n", "\u001b[36mThe acquisition parameters were: UNKNOWN slices acquired in a fashion; repetition time, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; echo time, \u001b[0m\n", "\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m30\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 128x128 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 64x64; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 2x2x2 mm;\u001b[0m\n", "\u001b[36mEach run was \u001b[0m\u001b[1;36m2:40\u001b[0m\u001b[36m minutes in length, during which \u001b[0m\u001b[1;36m64\u001b[0m\u001b[36m functional volumes were acquired.\u001b[0m\n", "\n", "\u001b[36mParticipants were specifically instructed to: \u001b[0m\n", "\u001b[36mFor the Rest task One run of bold UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were collected. \u001b[0m\n", "\u001b[36mThe acquisition parameters were: UNKNOWN slices acquired in a fashion; repetition time, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; echo time, \u001b[0m\n", "\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m30\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 128x128 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 64x64; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 2x2x2 mm;\u001b[0m\n", "\u001b[36mEach run was \u001b[0m\u001b[1;36m2:40\u001b[0m\u001b[36m minutes in length, during which \u001b[0m\u001b[1;36m64\u001b[0m\u001b[36m functional volumes were acquired.\u001b[0m\n", "\n", "\u001b[36mParticipants were specifically instructed to: \u001b[0m\n", "\u001b[36mOne run of UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo structural MRI data were collected \u001b[0m\u001b[1;36m(\u001b[0m\u001b[36mrepetition \u001b[0m\n", "\u001b[36mtime, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; flip angle, \u001b[0m\u001b[36mFA\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m8\u001b[0m\u001b[36m°; echo time, \u001b[0m\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2.9\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 256x256 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= \u001b[0m\n", "\u001b[36m256x256; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 1x1x1 mm; UNKNOWN slices\u001b[0m\u001b[1;36m)\u001b[0m\u001b[36m.\u001b[0m\n", "\n", "\u001b[36mOne run of UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo structural MRI data were collected \u001b[0m\u001b[1;36m(\u001b[0m\u001b[36mrepetition \u001b[0m\n", "\u001b[36mtime, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; flip angle, \u001b[0m\u001b[36mFA\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m8\u001b[0m\u001b[36m°; echo time, \u001b[0m\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2.9\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 256x256 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= \u001b[0m\n", "\u001b[36m256x256; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 1x1x1 mm; UNKNOWN slices\u001b[0m\u001b[1;36m)\u001b[0m\u001b[36m.\u001b[0m\n", "\n", "\u001b[36mFor the N-Back task Two runs of bold UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were \u001b[0m\n", "\u001b[36mcollected. The acquisition parameters were: UNKNOWN slices acquired in a fashion; repetition time, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; \u001b[0m\n", "\u001b[36mecho time, \u001b[0m\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m30\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 128x128 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 64x64; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 2x2x2 mm;\u001b[0m\n", "\u001b[36mEach run was \u001b[0m\u001b[1;36m2:40\u001b[0m\u001b[36m minutes in length, during which \u001b[0m\u001b[1;36m64\u001b[0m\u001b[36m functional volumes were acquired.\u001b[0m\n", "\n", "\u001b[36mParticipants were specifically instructed to: \u001b[0m\n", "\u001b[36mFor the N-Back task Two runs of bold UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were \u001b[0m\n", "\u001b[36mcollected. The acquisition parameters were: UNKNOWN slices acquired in a fashion; repetition time, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; \u001b[0m\n", "\u001b[36mecho time, \u001b[0m\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m30\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 128x128 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 64x64; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 2x2x2 mm;\u001b[0m\n", "\u001b[36mEach run was \u001b[0m\u001b[1;36m2:40\u001b[0m\u001b[36m minutes in length, during which \u001b[0m\u001b[1;36m64\u001b[0m\u001b[36m functional volumes were acquired.\u001b[0m\n", "\n", "\u001b[36mParticipants were specifically instructed to: \u001b[0m\n", "\u001b[36mFor the Rest task One run of bold UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were collected. \u001b[0m\n", "\u001b[36mThe acquisition parameters were: UNKNOWN slices acquired in a fashion; repetition time, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; echo time, \u001b[0m\n", "\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m30\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 128x128 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 64x64; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 2x2x2 mm;\u001b[0m\n", "\u001b[36mEach run was \u001b[0m\u001b[1;36m2:40\u001b[0m\u001b[36m minutes in length, during which \u001b[0m\u001b[1;36m64\u001b[0m\u001b[36m functional volumes were acquired.\u001b[0m\n", "\n", "\u001b[36mParticipants were specifically instructed to: \u001b[0m\n", "\u001b[36mFor the Rest task One run of bold UNKNOwN SEQUENCE UNKNOWN SEQUENCE VARIANT single-echo fMRI data were collected. \u001b[0m\n", "\u001b[36mThe acquisition parameters were: UNKNOWN slices acquired in a fashion; repetition time, \u001b[0m\u001b[36mTR\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m2500.0\u001b[0m\u001b[36m ms; echo time, \u001b[0m\n", "\u001b[36mTE\u001b[0m\u001b[36m= \u001b[0m\u001b[1;36m30\u001b[0m\u001b[36m ms; field of view \u001b[0m\u001b[36mFOV\u001b[0m\u001b[36m= 128x128 mm; matrix \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 64x64; voxel \u001b[0m\u001b[36msize\u001b[0m\u001b[36m= 2x2x2 mm;\u001b[0m\n", "\u001b[36mEach run was \u001b[0m\u001b[1;36m2:40\u001b[0m\u001b[36m minutes in length, during which \u001b[0m\u001b[1;36m64\u001b[0m\u001b[36m functional volumes were acquired.\u001b[0m\n", "\n", "\u001b[36mParticipants were specifically instructed to: \u001b[0m\n", "\n", "Dicoms were converted to NIfTI-\u001b[1;36m1\u001b[0m format.\n" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "rich.print(counter.most_common()[0][0])" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.3" } }, "nbformat": 4, "nbformat_minor": 5 }