Repository: bids-standard/bids-starter-kit Branch: main Commit: 409a857932d3 Files: 91 Total size: 251.4 KB Directory structure: gitextract_ajxyoq0h/ ├── .all-contributorsrc ├── .github/ │ └── workflows/ │ └── deploy_book.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── interactiveTreeVisualization/ │ └── epilepsyClassification2017/ │ ├── tree.html │ ├── treeData.js │ ├── treeFunctions.js │ └── treeStyle.css ├── matlabCode/ │ ├── anat/ │ │ ├── createBIDS_T1w_json_full.m │ │ ├── createBIDS_T1w_json_full_schma_based.m │ │ └── createBIDS_T1w_json_short.m │ ├── eeg-meg/ │ │ ├── createBIDS_meg_json_full.m │ │ ├── createBIDS_meg_json_short.m │ │ └── rename_brainvision_files.m │ ├── fmap/ │ │ └── createBIDS_fmap_json.m │ ├── func/ │ │ ├── createBIDS_bold_json_full.m │ │ └── createBIDS_bold_json_short.m │ ├── general/ │ │ ├── README.md │ │ ├── bids_spreadsheet2participants.m │ │ ├── createBIDS_dataset_description_json.m │ │ ├── createBIDS_events_tsv_json_full.m │ │ ├── createBIDS_participants_tsv.m │ │ ├── createBIDS_samples_tsv.m │ │ ├── input/ │ │ │ └── spreadsheet_to_convert.xlsx │ │ └── tests/ │ │ ├── data/ │ │ │ ├── participants.json │ │ │ └── participants.tsv │ │ └── test_bids_spreadsheet2participants.m │ ├── ieeg/ │ │ ├── createBIDS_channels_tsv.m │ │ ├── createBIDS_coordsystem_json.m │ │ ├── createBIDS_data_WriteBrainVisionWithFieldtrip.m │ │ ├── createBIDS_electrodes_tsv.m │ │ └── createBIDS_ieeg_json.m │ ├── micr/ │ │ ├── createBIDS_micr_json_full.m │ │ └── createBIDS_micr_json_short.m │ ├── miss_hit.cfg │ └── pet/ │ ├── createBIDS_blood_auto_tsv_and_json_short.m │ ├── createBIDS_blood_manual_tsv_and_json_full.m │ ├── createBIDS_blood_manual_tsv_and_json_short.m │ ├── createBIDS_pet_json_full.m │ └── createBIDS_pet_json_short.m ├── pythonCode/ │ ├── createBIDS_MP2RAGE_json.py │ └── createBIDS_dataset_description_json.py ├── reports/ │ └── Google-2018-report.md ├── src/ │ ├── CONTRIBUTING.md │ ├── _config.yml │ ├── _toc.yml │ ├── epilepsy_phenotype.rst │ ├── index.md │ ├── references.bib │ └── tree.html └── templates/ ├── participants.json ├── participants.tsv ├── phenotype/ │ ├── EpilepsyClassification.tsv │ └── EpilepsyClassification2017.json ├── samples.json ├── samples.tsv ├── sub-01/ │ └── ses-01/ │ ├── anat/ │ │ ├── sub-01_ses-01_acq-FullExample_run-01_T1w.json │ │ └── sub-01_ses-01_acq-ShortExample_run-01_T1w.json │ ├── eeg/ │ │ ├── sub-01_ses-01_task-FilterExample_eeg.json │ │ ├── sub-01_ses-01_task-FullExample_eeg.json │ │ ├── sub-01_ses-01_task-MinimalExample_eeg.json │ │ └── sub-01_ses-01_task-ReferenceExample_eeg.json │ ├── fmap/ │ │ ├── sub-01_ses-01_acq-Case1_run-01_phasediff.json │ │ ├── sub-01_ses-01_acq-Case2_run-01_phase1.json │ │ ├── sub-01_ses-01_acq-Case2_run-01_phase2.json │ │ ├── sub-01_ses-01_acq-Case3_run-01_fieldmap.json │ │ └── sub-01_ses-01_acq-Case4_dir-LR_run-01_epi.json │ ├── func/ │ │ ├── sub-01_ses-01_task-FullExample_run-01_bold.json │ │ ├── sub-01_ses-01_task-FullExample_run-01_events.json │ │ ├── sub-01_ses-01_task-FullExample_run-01_events.tsv │ │ └── sub-01_ses-01_task-ShortExample_run-01_bold.json │ ├── ieeg/ │ │ ├── sub-01_ses-01_coordsystem.json │ │ ├── sub-01_ses-01_electrodes.tsv │ │ ├── sub-01_ses-01_task-LongExample_run-01_channels.tsv │ │ └── sub-01_ses-01_task-LongExample_run-01_ieeg.json │ ├── meg/ │ │ ├── sub-01_ses-01_task-FullExample_acq-CTF_run-1_proc-sss_meg.json │ │ └── sub-01_ses-01_task-ShortExample_acq-CTF_run-1_proc-sss_meg.json │ ├── micr/ │ │ ├── sub-01_ses-01_sample-01_acq-Full_stain-03_chunk-01_SEM.json │ │ └── sub-01_ses-01_sample-01_acq-Short_stain-03_chunk-01_SEM.json │ └── pet/ │ ├── sub-01_ses-01_recording-AutosamplerShortExample_blood.json │ ├── sub-01_ses-01_recording-AutosamplerShortExample_blood.tsv │ ├── sub-01_ses-01_recording-ManualFullExample_blood.json │ ├── sub-01_ses-01_recording-ManualFullExample_blood.tsv │ ├── sub-01_ses-01_recording-ManualShortExample_blood.json │ ├── sub-01_ses-01_recording-ManualShortExample_blood.tsv │ ├── sub-01_ses-01_task-FullExample_pet.json │ └── sub-01_ses-01_task-ShortExample_pet.json └── sub-epilepsy01/ └── ses-01/ └── ieeg/ ├── sub-epilepsy01_ses-01_electrodes.json └── sub-epilepsy01_ses-01_electrodes.tsv ================================================ FILE CONTENTS ================================================ ================================================ FILE: .all-contributorsrc ================================================ { "files": [ "README.md" ], "imageSize": 100, "commit": false, "contributors": [ { "login": "dorahermes", "name": "Dora Hermes", "avatar_url": "https://avatars1.githubusercontent.com/u/4977351?v=4", "profile": "https://github.com/dorahermes", "contributions": [ "code", "content", "ideas", "review", "maintenance", "doc" ] }, { "login": "chrisgorgo", "name": "Chris Gorgolewski", "avatar_url": "https://avatars2.githubusercontent.com/u/238759?v=4", "profile": "http://chrisgorgolewski.org", "contributions": [ "review", "maintenance", "bug" ] }, { "login": "choldgraf", "name": "Chris Holdgraf", "avatar_url": "https://avatars1.githubusercontent.com/u/1839645?v=4", "profile": "http://chrisholdgraf.com", "contributions": [ "review", "content", "maintenance" ] }, { "login": "cofficer", "name": "Chris Gahnström", "avatar_url": "https://avatars1.githubusercontent.com/u/12600386?v=4", "profile": "https://chrisgahnstrom.wordpress.com/", "contributions": [ "code", "content", "ideas" ] }, { "login": "emdupre", "name": "Elizabeth DuPre", "avatar_url": "https://avatars3.githubusercontent.com/u/15017191?v=4", "profile": "http://emdupre.me", "contributions": [ "review", "maintenance", "ideas", "content", "doc" ] }, { "login": "anushkab", "name": "Utmost Happiness", "avatar_url": "https://avatars0.githubusercontent.com/u/20943511?v=4", "profile": "https://github.com/anushkab", "contributions": [ "code", "content", "ideas" ] }, { "login": "KirstieJane", "name": "Kirstie Whitaker", "avatar_url": "https://avatars1.githubusercontent.com/u/3626306?v=4", "profile": "https://whitakerlab.github.io", "contributions": [ "review", "ideas", "maintenance", "content", "doc", "bug" ] }, { "login": "Park-Patrick", "name": "Patrick Park", "avatar_url": "https://avatars3.githubusercontent.com/u/12662110?v=4", "profile": "https://github.com/Park-Patrick", "contributions": [ "ideas", "content", "review" ] }, { "login": "PeerHerholz", "name": "Peer Herholz", "avatar_url": "https://avatars0.githubusercontent.com/u/20129524?v=4", "profile": "http://peerherholz.github.io", "contributions": [ "code" ] }, { "login": "CPernet", "name": "Cyril Pernet", "avatar_url": "https://avatars2.githubusercontent.com/u/4772878?v=4", "profile": "http://www.sbirc.ed.ac.uk/cyril/", "contributions": [ "code" ] }, { "login": "sappelhoff", "name": "Stefan Appelhoff", "avatar_url": "https://avatars1.githubusercontent.com/u/9084751?v=4", "profile": "https://www.stefanappelhoff.com", "contributions": [ "review", "code", "content", "ideas" ] }, { "login": "ilkayisik", "name": "Ilkay Isik", "avatar_url": "https://avatars1.githubusercontent.com/u/22478219?v=4", "profile": "https://ilkayisik.github.io", "contributions": [ "bug" ] }, { "login": "teonbrooks", "name": "Teon L Brooks", "avatar_url": "https://avatars1.githubusercontent.com/u/1578674?v=4", "profile": "https://teonbrooks.com", "contributions": [ "bug" ] }, { "login": "bayab", "name": "ayab", "avatar_url": "https://avatars0.githubusercontent.com/u/16117420?v=4", "profile": "https://github.com/bayab", "contributions": [ "content" ] }, { "login": "Remi-Gau", "name": "Remi Gau", "avatar_url": "https://avatars3.githubusercontent.com/u/6961185?v=4", "profile": "https://remi-gau.github.io/", "contributions": [ "content" ] }, { "login": "JaapVanDerAar", "name": "Jaap van der Aar", "avatar_url": "https://avatars3.githubusercontent.com/u/32334327?v=4", "profile": "https://github.com/JaapVanDerAar", "contributions": [ "code", "content", "ideas" ] }, { "login": "GiulioCastegnaro", "name": "Giulio Castegnaro", "avatar_url": "https://avatars2.githubusercontent.com/u/45361920?v=4", "profile": "https://github.com/GiulioCastegnaro", "contributions": [ "code", "content", "ideas" ] }, { "login": "franklin-feingold", "name": "Franklin Feingold", "avatar_url": "https://avatars1.githubusercontent.com/u/35307458?v=4", "profile": "https://github.com/franklin-feingold", "contributions": [ "bug", "review" ] }, { "login": "nicholst", "name": "Thomas Nichols", "avatar_url": "https://avatars3.githubusercontent.com/u/5155907?v=4", "profile": "http://www.nisox.org", "contributions": [ "review" ] }, { "login": "pvdemael", "name": "Pieter Vandemaele", "avatar_url": "https://avatars1.githubusercontent.com/u/37624277?v=4", "profile": "https://github.com/pvdemael", "contributions": [ "bug" ] }, { "login": "gllmflndn", "name": "Guillaume Flandin", "avatar_url": "https://avatars0.githubusercontent.com/u/5950855?v=4", "profile": "https://github.com/gllmflndn", "contributions": [ "review", "ideas" ] }, { "login": "robertoostenveld", "name": "Robert Oostenveld", "avatar_url": "https://avatars1.githubusercontent.com/u/899043?v=4", "profile": "https://github.com/robertoostenveld", "contributions": [ "bug", "review", "ideas" ] }, { "login": "HappyFacade", "name": "Happy", "avatar_url": "https://avatars0.githubusercontent.com/u/54226355?v=4", "profile": "https://github.com/HappyFacade", "contributions": [ "content" ] }, { "login": "tpatpa", "name": "Tal Pal Attia", "avatar_url": "https://avatars1.githubusercontent.com/u/24300712?v=4", "profile": "https://www.linkedin.com/in/tal-pal-attia-201373b0/", "contributions": [ "code" ] }, { "login": "VisLab", "name": "Kay Robbins", "avatar_url": "https://avatars1.githubusercontent.com/u/1189050?v=4", "profile": "https://github.com/VisLab", "contributions": [ "ideas", "content" ] }, { "login": "eduardklap", "name": "Eduard Klapwijk", "avatar_url": "https://avatars1.githubusercontent.com/u/41283173?v=4", "profile": "https://erasmus-synclab.nl/", "contributions": [ "ideas" ] }, { "login": "DorienHuijser", "name": "Dorien Huijser", "avatar_url": "https://avatars1.githubusercontent.com/u/58177697?v=4", "profile": "https://github.com/DorienHuijser", "contributions": [ "ideas" ] }, { "login": "Arshitha", "name": "Arshitha Basavaraj", "avatar_url": "https://avatars1.githubusercontent.com/u/10297203?v=4", "profile": "http://cmn.nimh.nih.gov/dsst", "contributions": [ "ideas" ] }, { "login": "lnnrtwttkhn", "name": "Lennart Wittkuhn", "avatar_url": "https://avatars0.githubusercontent.com/u/42233065?v=4", "profile": "https://lennartwittkuhn.com", "contributions": [ "ideas" ] }, { "login": "bendhouseart", "name": "Anthony Galassi", "avatar_url": "https://avatars.githubusercontent.com/u/28850131?v=4", "profile": "https://github.com/bendhouseart", "contributions": [ "ideas", "code" ] }, { "login": "Athanasiamo", "name": "Athanasia Monika Mowinckel", "avatar_url": "https://avatars.githubusercontent.com/u/14014329?v=4", "profile": "http://DrMowinckels.io", "contributions": [ "ideas", "code" ] }, { "login": "yonestar", "name": "Yoni Ashar", "avatar_url": "https://avatars.githubusercontent.com/u/4513934?v=4", "profile": "https://github.com/yonestar", "contributions": [ "ideas" ] }, { "login": "dkp", "name": "dkp", "avatar_url": "https://avatars.githubusercontent.com/u/965184?v=4", "profile": "https://github.com/dkp", "contributions": [ "bug" ] }, { "login": "jdkent", "name": "James Kent", "avatar_url": "https://avatars.githubusercontent.com/u/12564882?v=4", "profile": "https://jdkent.github.io/", "contributions": [ "ideas" ] }, { "login": "cfxb", "name": "Chris Benjamin", "avatar_url": "https://avatars.githubusercontent.com/u/39246257?v=4", "profile": "https://github.com/cfxb", "contributions": [ "doc" ] }, { "login": "Islast", "name": "Isla", "avatar_url": "https://avatars.githubusercontent.com/u/23707851?v=4", "profile": "http://isla.st", "contributions": [ "doc" ] }, { "login": "effigies", "name": "Chris Markiewicz", "avatar_url": "https://avatars.githubusercontent.com/u/83442?v=4", "profile": "https://github.com/effigies", "contributions": [ "doc" ] }, { "login": "ankiitgupta7", "name": "Ankit Gupta", "avatar_url": "https://avatars.githubusercontent.com/u/25341569?v=4", "profile": "https://ankiitgupta7.github.io/", "contributions": [ "doc" ] }, { "login": "alexvonlautz", "name": "Alex von Lautz", "avatar_url": "https://avatars.githubusercontent.com/u/44004062?v=4", "profile": "https://github.com/alexvonlautz", "contributions": [ "doc" ] }, { "login": "AlexandreHutton", "name": "Alexandre Hutton", "avatar_url": "https://avatars.githubusercontent.com/u/50920802?v=4", "profile": "https://github.com/AlexandreHutton", "contributions": [ "doc" ] }, { "login": "AbrrenC", "name": "Abrren Chen", "avatar_url": "https://avatars.githubusercontent.com/u/54808990?v=4", "profile": "http://Abrren_Chen", "contributions": [ "maintenance" ] }, { "login": "Gabomfim", "name": "Gabriel Silveira", "avatar_url": "https://avatars.githubusercontent.com/u/21208915?v=4", "profile": "http://gabrielabs.com", "contributions": [ "bug", "code" ] }, { "login": "1nathanliang", "name": "nathan liang", "avatar_url": "https://avatars.githubusercontent.com/u/36468637?v=4", "profile": "http://1nathanliang.github.io", "contributions": [ "bug" ] } ], "contributorsPerLine": 7, "projectName": "bids-starter-kit", "projectOwner": "bids-standard", "repoType": "github", "repoHost": "https://github.com", "skipCi": true } ================================================ FILE: .github/workflows/deploy_book.yml ================================================ --- name: deploy-book concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true # Only run this when the master branch changes on: push: branches: - main # This job installs dependencies, build the book, and pushes it to `gh-pages` jobs: deploy-book: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 # Install dependencies - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.12' - name: Install dependencies run: pip install jupyter-book sphinx-reredirects # Build the book - name: Build the book run: make book # Push the book's HTML to github-pages - name: GitHub Pages action uses: peaceiris/actions-gh-pages@v4.0.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: src/_build/html ================================================ FILE: .gitignore ================================================ .vscode/ .DS_Store src/_build desktop.ini .idea/ # -----------------------------------------------------------------------------# ## template MATLAB gitignore from # https://github.com/github/gitignore/blob/main/Global/MATLAB.gitignore # Windows default autosave extension *.asv # OSX / *nix default autosave extension *.m~ # Compiled MEX binaries (all platforms) *.mex* # Packaged app and toolbox files *.mlappinstall *.mltbx # Generated helpsearch folders helpsearch*/ # Simulink code generation folders slprj/ sccprj/ # Matlab code generation folders codegen/ # Simulink autosave extension *.autosave # Simulink cache files *.slxc # Octave session info octave-workspace # -----------------------------------------------------------------------------# ## template python gitignore from # https://github.com/github/gitignore/blob/main/Python.gitignore # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ share/python-wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ cover/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py db.sqlite3 db.sqlite3-journal # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder .pybuilder/ target/ # Jupyter Notebook .ipynb_checkpoints # IPython profile_default/ ipython_config.py # pyenv # For a library or package, you might want to ignore these files since the code is # intended to run in multiple environments; otherwise, check them in: # .python-version # pipenv # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # However, in case of collaboration, if having platform-specific dependencies or dependencies # having no cross-platform support, pipenv may install dependencies that don't work, or not # install all needed dependencies. #Pipfile.lock # poetry # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. # This is especially recommended for binary packages to ensure reproducibility, and is more # commonly ignored for libraries. # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control #poetry.lock # PEP 582; used by e.g. github.com/David-OConnor/pyflow __pypackages__/ # Celery stuff celerybeat-schedule celerybeat.pid # SageMath parsed files *.sage.py # Environments .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ # Spyder project settings .spyderproject .spyproject # Rope project settings .ropeproject # mkdocs documentation /site # mypy .mypy_cache/ .dmypy.json dmypy.json # Pyre type checker .pyre/ # pytype static type analyzer .pytype/ # Cython debug symbols cython_debug/ # PyCharm # JetBrains specific template is maintained in a separate JetBrains.gitignore that can # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ ================================================ FILE: LICENSE ================================================ Attribution 4.0 International ======================================================================= Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an "as-is" basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. Using Creative Commons Public Licenses Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC- licensed material, or material used under an exception or limitation to copyright. More considerations for licensors: wiki.creativecommons.org/Considerations_for_licensors Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor's permission is not necessary for any reason--for example, because of any applicable exception or limitation to copyright--then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More_considerations for the public: wiki.creativecommons.org/Considerations_for_licensees ======================================================================= Creative Commons Attribution 4.0 International Public License By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. Section 1 -- Definitions. a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. Section 2 -- Scope. a. License grant. 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: a. reproduce and Share the Licensed Material, in whole or in part; and b. produce, reproduce, and Share Adapted Material. 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 3. Term. The term of this Public License is specified in Section 6(a). 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a) (4) never produces Adapted Material. 5. Downstream recipients. a. Offer from the Licensor -- Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. b. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). b. Other rights. 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. 2. Patent and trademark rights are not licensed under this Public License. 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. Section 3 -- License Conditions. Your exercise of the Licensed Rights is expressly made subject to the following conditions. a. Attribution. 1. If You Share the Licensed Material (including in modified form), You must: a. retain the following if it is supplied by the Licensor with the Licensed Material: i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); ii. a copyright notice; iii. a notice that refers to this Public License; iv. a notice that refers to the disclaimer of warranties; v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; b. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and c. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. Section 4 -- Sui Generis Database Rights. Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. Section 5 -- Disclaimer of Warranties and Limitation of Liability. a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. Section 6 -- Term and Termination. a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or 2. upon express reinstatement by the Licensor. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. Section 7 -- Other Terms and Conditions. a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. Section 8 -- Interpretation. a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. ======================================================================= Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark "Creative Commons" or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. Creative Commons may be contacted at creativecommons.org. ================================================ FILE: Makefile ================================================ .PHONY: all clean define BROWSER_PYSCRIPT import os, webbrowser, sys from urllib.request import pathname2url webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1]))) endef export BROWSER_PYSCRIPT define PRINT_HELP_PYSCRIPT import re, sys for line in sys.stdin: match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line) if match: target, help = match.groups() print("%-20s %s" % (target, help)) endef export PRINT_HELP_PYSCRIPT BROWSER := python -c "$$BROWSER_PYSCRIPT" # Put it first so that "make" without argument is like "make help". help: @python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) clean: rm -fr src/_build/ book: clean ## build the book jupyter-book build src view: book ## view the book $(BROWSER) $$PWD/src/_build/html/index.html test: ## build the book and tests the links jupyter-book build src --builder linkcheck ================================================ FILE: README.md ================================================ [![All Contributors](https://img.shields.io/badge/all_contributors-43-orange.svg?style=flat-square)](#contributors-) # The Starter-kit has moved to the new BIDS website. ## Contributors ✨ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

Dora Hermes

💻 🖋 🤔 👀 🚧 📖

Chris Gorgolewski

👀 🚧 🐛

Chris Holdgraf

👀 🖋 🚧

Chris Gahnström

💻 🖋 🤔

Elizabeth DuPre

👀 🚧 🤔 🖋 📖

Utmost Happiness

💻 🖋 🤔

Kirstie Whitaker

👀 🤔 🚧 🖋 📖 🐛

Patrick Park

🤔 🖋 👀

Peer Herholz

💻

Cyril Pernet

💻

Stefan Appelhoff

👀 💻 🖋 🤔

Ilkay Isik

🐛

Teon L Brooks

🐛

ayab

🖋

Remi Gau

🖋

Jaap van der Aar

💻 🖋 🤔

Giulio Castegnaro

💻 🖋 🤔

Franklin Feingold

🐛 👀

Thomas Nichols

👀

Pieter Vandemaele

🐛

Guillaume Flandin

👀 🤔

Robert Oostenveld

🐛 👀 🤔

Happy

🖋

Tal Pal Attia

💻

Kay Robbins

🤔 🖋

Eduard Klapwijk

🤔

Dorien Huijser

🤔

Arshitha Basavaraj

🤔

Lennart Wittkuhn

🤔

Anthony Galassi

🤔 💻

Athanasia Monika Mowinckel

🤔 💻

Yoni Ashar

🤔

dkp

🐛

James Kent

🤔

Chris Benjamin

📖

Isla

📖

Chris Markiewicz

📖

Ankit Gupta

📖

Alex von Lautz

📖

Alexandre Hutton

📖

Abrren Chen

🚧

Gabriel Silveira

🐛 💻

nathan liang

🐛
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! ================================================ FILE: interactiveTreeVisualization/epilepsyClassification2017/tree.html ================================================ ILAE classification of the epilepsies Tree

ILAE classification of the epilepsies Tree

Scheffer, I. E., Berkovic, S., Capovilla, G., Connolly, M. B., French, J., Guilhoto, L., ... & Nordli, D. R. (2017). ILAE classification of the epilepsies: position paper of the ILAE Commission for Classification and Terminology. Epilepsia, 58(4), 512-521.

    

================================================ FILE: interactiveTreeVisualization/epilepsyClassification2017/treeData.js ================================================ var treeData = [{ "name": "Epilepsy Classification", "parent": "null", "_children": [ // ****** Seizure Type ****** { "name": "Seizure Type", "parent": "Epilepsy Classification", "_children": [ // *** Generalised *** { "name": "Generalised", "parent": "Seizure Type", "_children": [{ "name": "Motor", "parent": "Generalised", "_children": [{ "name": "Generalized tonic-clonic and variants", "parent": "Motor" }, { "name": "Generalized tonic", "parent": "Motor" }, { "name": "Generalized atonic", "parent": "Motor" }, { "name": "Myoclonic", "parent": "Motor" }, { "name": "Myoclonic-atonic", "parent": "Motor" }, { "name": "Epileptic spasms", "parent": "Motor" } ] }, { "name": "Non-motor", "parent": "Generalised", "_children": [{ "name": "Typical Absence", "parent": "Non-motor" }, { "name": "Atypical Absence", "parent": "Non-motor" }, { "name": "Myoclonic absence", "parent": "Non-motor" }, { "name": "Absence with eyelid myoclonia", "parent": "Non-motor" }] } ] }, // *** Focal *** { "name": "Focal", "parent": "Seizure Type", "_children": [{ "name": "Awareness", "parent": "Focal", "_children": [{ "name": "Aware", "parent": "Awareness", }, { "name": "Impaired Awareness", "parent": "Awareness", }] }, { "name": "Motor", "parent": "Focal", "_children": [{ "name": "Focal clonic seizure", "parent": "Motor" }, { "name": "Focal tonic seizure", "parent": "Motor" }, { "name": "Focal motor seizure with dystonia", "parent": "Motor" }, { "name": "Focal myoclonic seizure", "parent": "Motor" }, { "name": "Focal atonic seizure", "parent": "Motor" }, { "name": "Focal motor seizure with paresis/paralysis", "parent": "Motor" }, { "name": "Focal epileptic spasms", "parent": "Motor" }, { "name": "Focal hyperkinetic seizure", "parent": "Motor" }, { "name": "Focal automatism seizure", "parent": "Motor" }, { "name": "Focal motor seizure with dysarthria / anarthria", "parent": "Motor" }, { "name": "Focal motor seizure with negative myoclonus", "parent": "Motor" }, { "name": "Focal motor seizure with version", "parent": "Motor" }, { "name": "Focal bilateral motor seizure", "parent": "Motor" } ] }, { "name": "Non-motor", "parent": "Focal", "_children": [{ "name": "Focal sensory seizure", "parent": "Non-motor", "_children": [{ "name": "Focal somatosensory seizure", "parent": "Focal sensory seizure" }, { "name": "Focal sensory visual seizure", "parent": "Focal sensory seizure" }, { "name": "Focal sensory auditory seizure", "parent": "Focal sensory seizure" }, { "name": "Focal sensory olfactory seizure", "parent": "Focal sensory seizure" }, { "name": "Focal sensory gustatory seizure", "parent": "Focal sensory seizure" }, { "name": "Focal sensory vestibular seizure", "parent": "Focal sensory seizure" }, { "name": "Focal sensory seizure with hot-cold sensations", "parent": "Focal sensory seizure" }, { "name": "Focal sensory seizure with cephalic sensation", "parent": "Focal sensory seizure" }] }, { "name": "Focal cognitive seizure", "parent": "Non-motor", "_children": [{ "name": "Focal cognitive seizure with expressive dysphasia / aphasia", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with anomia", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with receptive dysphasia / aphasia", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with auditory agnosia", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with conduction dysphasia / aphasia", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with dyslexia / alexia", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with memory impairment", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with deja vu / jamais vu", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with hallucination", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with illusion", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with dissociation", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with forced thinking", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with dyscalculia / acalculia", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with dysgraphia/agraphia", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with left-right confusion", "parent": "Focal cognitive seizure" }, { "name": "Focal cognitive seizure with neglect", "parent": "Focal cognitive seizure" }] }, { "name": "Focal emotional seizure", "parent": "Non-motor", "_children": [{ "name": "Focal emotional seizure with fear/anxiety/panic", "parent": "Focal emotional seizure" }, { "name": "Focal emotional seizure with laughing (gelastic)", "parent": "Focal emotional seizure" }, { "name": "Focal emotional seizure with crying (dacrystic)", "parent": "Focal emotional seizure" }, { "name": "Focal emotional seizure with pleasure", "parent": "Focal emotional seizure" }, { "name": "Focal emotional seizure with anger", "parent": "Focal emotional seizure" }] }, { "name": "Focal autonomic seizure", "parent": "Non-motor", "_children": [{ "name": "Focal autonomic seizure with palpitations / tachycardia / bradycardia / asystole", "parent": "Focal autonomic seizure" }, { "name": "Focal autonomic seizure with epigastric sensation", "parent": "Focal autonomic seizure" }, { "name": "Focal autonomic seizure with pallor / flushing", "parent": "Focal autonomic seizure" }, { "name": "Focal autonomic seizure with hypoventilation / hyperventilation / altered respiration", "parent": "Focal autonomic seizure" }, { "name": "Focal autonomic seizure with piloerection", "parent": "Focal autonomic seizure" }, { "name": "Focal autonomic seizure with erection", "parent": "Focal autonomic seizure" }, { "name": "Focal autonomic seizure with urge to urinate / defecate", "parent": "Focal autonomic seizure" }, { "name": "Focal autonomic seizure with lacrimation", "parent": "Focal autonomic seizure" }, { "name": "Focal autonomic seizure with pupillary dilation / constriction", "parent": "Focal autonomic seizure" }] }, { "name": "Focal behavioural arrest seizure", "parent": "Non-motor", "_children": [{ "name": "Focal behavioural arrest seizure", "parent": "Focal behavioural arrest seizure" }] } ] }, { "name": "Focal to bilateral tonic-clonic seizure", "parent": "Focal", "_children": [{ "name": "Focal to bilateral tonic-clonic seizure", "parent": "Focal to bilateral tonic-clonic seizure" }] } ] }, // *** Unknown *** { "name": "Unknown", "parent": "Seizure Type", "_children": [{ "name": "Motor", "parent": "Focal", "_children": [{ "name": "Tonic–clonic", "parent": "Motor" }, { "name": "Epileptic spasms", "parent": "Motor" } ] }, { "name": "Non-motor", "parent": "Focal", "_children": [{ "name": "Behaviour arrest", "parent": "Non-motor" }, { "name": "Unclassified", "parent": "Non-motor" }] } ] } ] }, // ****** Epilepsy Type ****** { "name": "Epilepsy Type", "parent": "Epilepsy Classification", "_children": [{ "name": "Generalised Epilepsy", "parent": "Epilepsy Type" }, { "name": "Focal Epilepsy", "parent": "Epilepsy Type" }, { "name": "Combined generalised and focal Epilepsy", "parent": "Epilepsy Type" }, { "name": "Unknown Epilepsy", "parent": "Epilepsy Type" }] }, // ****** Epilepsy Syndrome ****** { "name": "Epilepsy Syndrome", "parent": "Epilepsy Classification", "_children": [{ "name": "Neonatal/Infantile", "parent": "Epilepsy Syndrome", "_children": [{ "name": "Self-limited neonatal seizures and Self-limited familial neonatal epilepsy", "parent": "Neonatal/Infantile" }, { "name": "Self limited familial and non-familial infantile epilepsy", "parent": "Neonatal/Infantile" }, { "name": "Early myoclonic encephalopathy", "parent": "Neonatal/Infantile" }, { "name": "Ohtahara syndrome", "parent": "Neonatal/Infantile" }, { "name": "West syndrome", "parent": "Neonatal/Infantile" }, { "name": "Dravet syndrome", "parent": "Neonatal/Infantile" }, { "name": "Myoclonic epilepsy in infancy", "parent": "Neonatal/Infantile" }, { "name": "Epilepsy of infancy with migrating focal seizures", "parent": "Neonatal/Infantile" }, { "name": "Myoclonic encephalopathy in non-progressive disorders", "parent": "Neonatal/Infantile" }, { "name": "Febrile seizures plus, genetic epilepsy with febrile seizures plus", "parent": "Neonatal/Infantile" }] }, { "name": "Childhood", "parent": "Epilepsy Syndrome", "_children": [{ "name": "Epilepsy with myoclonic-atonic seizures", "parent": "Childhood" }, { "name": "Epilepsy with eyelid myoclonias", "parent": "Childhood" }, { "name": "Lennox-Gastaut syndrome", "parent": "Childhood" }, { "name": "Childhood absence epilepsy", "parent": "Childhood" }, { "name": "Epilepsy with myoclonic absences", "parent": "Childhood" }, { "name": "Panayiotopoulos syndrome", "parent": "Childhood" }, { "name": "Childhood occipital epilepsy (Gastaut type)", "parent": "Childhood" }, { "name": "Photosensitive occipital lobe epilepsy", "parent": "Childhood" }, { "name": "Childhood epilepsy with centrotemporal spikes", "parent": "Childhood" }, { "name": "Atypical childhood epilepsy with centrotemporal spikes", "parent": "Childhood" }, { "name": "Epileptic encephalopathy with continuous spike-and-wave during sleep", "parent": "Childhood" }, { "name": "Landau-Kleffner syndrome", "parent": "Childhood" }, { "name": "Autosomal dominant nocturnal frontal lobe epilepsy", "parent": "Childhood" }] }, { "name": "Adolescent/Adult", "parent": "Epilepsy Syndrome", "_children": [{ "name": "Juvenile absence epilepsy", "parent": "Adolescent/Adult" }, { "name": "Juvenile myoclonic epilepsy", "parent": "Adolescent/Adult" }, { "name": "Epilepsy with generalized tonic-clonic seizures alone", "parent": "Adolescent/Adult" }, { "name": "Autosomal dominant epilepsy with auditory features", "parent": "Adolescent/Adult" }, { "name": "Other familial temporal lobe epilepsies", "parent": "Adolescent/Adult" }] }, { "name": "Any Age", "parent": "Epilepsy Syndrome", "_children": [{ "name": "Familial focal epilepsy with variable foci", "parent": "Any Age" }, { "name": "Reflex epilepsies", "parent": "Any Age" }, { "name": "Progressive myoclonus epilepsies", "parent": "Any Age" } ] }] }, // ****** Etiology ****** { "name": "Etiology", "parent": "Epilepsy Classification", "_children": [{ "name": "Genetic Etiology", "parent": "Etiology", "_children": [{ "name": "Chromosomal abnormalities", "parent": "Genetic Etiology" }, { "name": "Gene abnormalities", "parent": "Genetic Etiology" }] }, { "name": "Structural Etiology", "parent": "Etiology", "_children": [{ "name": "Malformations of cortical development", "parent": "Structural Etiology" }, { "name": "Vascular malformations", "parent": "Structural Etiology" }, { "name": "Hippocampal sclerosis", "parent": "Structural Etiology" }, { "name": "Hypoxic-ischemic structural abnormalities", "parent": "Structural Etiology" }, { "name": "Traumatic Brain Injury", "parent": "Structural Etiology" }, { "name": "Tumors", "parent": "Structural Etiology" }, { "name": "Porencephalic cyst", "parent": "Structural Etiology" }] }, { "name": "Metabolic Etiology", "parent": "Etiology", "_children": [{ "name": "Biotinidase and holocarboxylase synthase deficiency", "parent": "Metabolic Etiology" }, { "name": "Cerebral folate deficiency", "parent": "Metabolic Etiology" }, { "name": "Creatine disorders", "parent": "Metabolic Etiology" }, { "name": "Folinic acid responsive seizures", "parent": "Metabolic Etiology" }, { "name": "Glucose transporter 1 (GLUT1) deficiency", "parent": "Metabolic Etiology" }, { "name": "Mitochondrial disorders", "parent": "Metabolic Etiology" }, { "name": "Peroxisomal Disorders", "parent": "Metabolic Etiology" }, { "name": "Pyridoxine dependent epilepsy/PNPO deficiency", "parent": "Metabolic Etiology" }] }, { "name": "Immune Etiology", "parent": "Etiology", "_children": [{ "name": "Rasmussen syndrome", "parent": "Immune Etiology" }, { "name": "Antibody mediated etiologies", "parent": "Immune Etiology" }] }, { "name": "Infectious Etiology", "parent": "Etiology", "_children": [{ "name": "Bacterial Meningitis", "parent": "Infectious Etiology" }, { "name": "Cerebral Malaria", "parent": "Infectious Etiology" }, { "name": "Cerebral Toxoplasmosis", "parent": "Infectious Etiology" }, { "name": "CMV", "parent": "Infectious Etiology" }, { "name": "HIV", "parent": "Infectious Etiology" }, { "name": "Neurocysticercosis", "parent": "Infectious Etiology" }, { "name": "Tuberculosis", "parent": "Infectious Etiology" }, { "name": "Viral Encephalitis", "parent": "Infectious Etiology" }, { "name": "Other infections", "parent": "Infectious Etiology" }] }, { "name": "Unknown Etiology", "parent": "Etiology", "_children": [{ "name": "Febrile infection related epilepsy syndrome (FIRES)", "parent": "Unknown Etiology" }] }] } ] }]; ================================================ FILE: interactiveTreeVisualization/epilepsyClassification2017/treeFunctions.js ================================================ // ************** Generate the tree diagram ***************** var margin = { top: 50, right: 150, bottom: 50, left: 150 }, width = 2 * window.innerWidth - margin.right - margin.left, height = 4 * window.innerHeight - margin.top - margin.bottom; var i = 0, duration = 750, root; var tree = d3.layout.tree() .separation(function (a, b) { if (a.depth > 0) { depth = a.depth } else { depth = 1 } return (a.parent === b.parent ? 2 : 3) / depth; }) .size([height, width]); //var tree = d3.layout.tree() // .size([height, width]); var diagonal = d3.svg.diagonal() .projection(function (d) { return [d.y, d.x]; }); var svg0 = d3.select("body").append("svg") .attr("width", width + margin.right + margin.left) .attr("height", height + margin.top + margin.bottom) .attr("style", "background-color:white") svg = svg0.append("g") .attr("transform", "translate(" + margin.left + "," + margin.top + ")"); root = treeData[0]; root.x0 = height / 2; root.y0 = 0; update(root); d3.select(self.frameElement).style("height", "500px"); // ************** functions to update the tree diagram ***************** function update(source) { var levelWidth = [1]; var childCount = function (level, n) { if (n.children && n.children.length > 0) { if (levelWidth.length <= level + 1) levelWidth.push(0); levelWidth[level + 1] += n.children.length; n.children.forEach(function (d) { childCount(level + 1, d); }); } }; childCount(0, root); var newHeight = d3.max(levelWidth) * 50; // 50 pixels per line tree = tree.size([newHeight, width]); // Compute the new tree layout. var nodes = tree.nodes(root).reverse(), links = tree.links(nodes); // Normalize for fixed-depth. nodes.forEach(function (d) { d.y = d.depth * 350; }); // Update the nodes… var node = svg.selectAll("g.node") .data(nodes, function (d) { return d.id || (d.id = ++i); }); // Enter any new nodes at the parent's previous position. var nodeEnter = node.enter().append("g") .attr("class", "node") .attr("transform", function (d) { return "translate(" + source.y0 + "," + source.x0 + ")"; }) .on("click", click); nodeEnter.append("circle") .attr("r", 1e-6) .style("fill", function (d) { return d._children ? "lightsteelblue" : "#fff"; }); nodeEnter.append("text") .attr("x", function (d) { return d.children || d._children ? -13 : 13; }) .attr("dy", ".35em") .attr("text-anchor", function (d) { return d.children || d._children ? "end" : "start"; }) .text(function (d) { return d.name; }) .style("fill-opacity", 1e-6); // Transition nodes to their new position. var nodeUpdate = node.transition() .duration(duration) .attr("transform", function (d) { return "translate(" + d.y + "," + d.x + ")"; }); nodeUpdate.select("circle") .attr("r", 10) .style("fill", function (d) { return d._children ? "lightsteelblue" : "#fff"; }); nodeUpdate.select("text") .style("fill-opacity", 1); // Transition exiting nodes to the parent's new position. var nodeExit = node.exit().transition() .duration(duration) .attr("transform", function (d) { return "translate(" + source.y + "," + source.x + ")"; }) .remove(); nodeExit.select("circle") .attr("r", 1e-6); nodeExit.select("text") .style("fill-opacity", 1e-6); // Update the links… var link = svg.selectAll("path.link") .data(links, function (d) { return d.target.id; }); // Enter any new links at the parent's previous position. link.enter().insert("path", "g") .attr("class", "link") .attr("d", function (d) { var o = { x: source.x0, y: source.y0 }; return diagonal({ source: o, target: o }); }) // Transition links to their new position. link.transition() .duration(duration) .attr("d", diagonal); // Transition exiting nodes to the parent's new position. link.exit().transition() .duration(duration) .attr("d", function (d) { var o = { x: source.x, y: source.y }; return diagonal({ source: o, target: o }); }) .remove(); // Stash the old positions for transition. nodes.forEach(function (d) { d.x0 = d.x; d.y0 = d.y; }); } // Toggle children on click. function click(d) { if (d.children) { d._children = d.children; d.children = null; } else { d.children = d._children; d._children = null; } update(d); } function expand(d) { var children = (d.children) ? d.children : d._children; if (d._children) { d.children = d._children; d._children = null; } if (children) children.forEach(expand); } function collapse(d) { if (d.children) { d._children = d.children; d._children.forEach(collapse); d.children = null; } } function expandAll() { expand(root); update(root); } function collapseAll() { root.children.forEach(collapse); collapse(root); update(root); } // ************** functions to save the tree diagram ***************** // Set-up the export button d3.select('#saveButton').on('click', function () { var svgString = getSVGString(svg0.node()); svgString2Image(svgString, 1 * width, 1 * height, 'png', save); // passes Blob and filesize String to the callback function save(dataBlob, filesize) { saveAs(dataBlob, 'D3 vis exported to PNG.png'); // FileSaver.js function } }); // Below are the functions that handle actual exporting: // getSVGString ( svgNode ) and svgString2Image( svgString, width, height, format, callback ) function getSVGString(svgNode) { svgNode.setAttribute('xlink', 'http://www.w3.org/1999/xlink'); var cssStyleText = getCSSStyles(svgNode); appendCSS(cssStyleText, svgNode); var serializer = new XMLSerializer(); var svgString = serializer.serializeToString(svgNode); svgString = svgString.replace(/(\w+)?:?xlink=/g, 'xmlns:xlink='); // Fix root xlink without namespace svgString = svgString.replace(/NS\d+:href/g, 'xlink:href'); // Safari NS namespace fix return svgString; function getCSSStyles(parentElement) { var selectorTextArr = []; // Add Parent element Id and Classes to the list selectorTextArr.push('#' + parentElement.id); for (var c = 0; c < parentElement.classList.length; c++) if (!contains('.' + parentElement.classList[c], selectorTextArr)) selectorTextArr.push('.' + parentElement.classList[c]); // Add Children element Ids and Classes to the list var nodes = parentElement.getElementsByTagName("*"); for (var i = 0; i < nodes.length; i++) { var id = nodes[i].id; if (!contains('#' + id, selectorTextArr)) selectorTextArr.push('#' + id); var classes = nodes[i].classList; for (var c = 0; c < classes.length; c++) if (!contains('.' + classes[c], selectorTextArr)) selectorTextArr.push('.' + classes[c]); } // Extract CSS Rules var extractedCSSText = ""; for (var i = 0; i < document.styleSheets.length; i++) { var s = document.styleSheets[i]; try { if (!s.cssRules) continue; } catch (e) { if (e.name !== 'SecurityError') throw e; // for Firefox continue; } var cssRules = s.cssRules; for (var r = 0; r < cssRules.length; r++) { if (contains(cssRules[r].selectorText, selectorTextArr)) extractedCSSText += cssRules[r].cssText; } } return extractedCSSText; function contains(str, arr) { return arr.indexOf(str) === -1 ? false : true; } } function appendCSS(cssText, element) { var styleElement = document.createElement("style"); styleElement.setAttribute("type", "text/css"); styleElement.innerHTML = cssText; var refNode = element.hasChildNodes() ? element.children[0] : null; element.insertBefore(styleElement, refNode); } } function svgString2Image(svgString, width, height, format, callback) { var format = format ? format : 'png'; var imgsrc = 'data:image/svg+xml;base64,' + btoa(unescape(encodeURIComponent(svgString))); // Convert SVG string to data URL var canvas = document.createElement("canvas"); var context = canvas.getContext("2d"); canvas.width = width; canvas.height = height; var image = new Image(); image.onload = function () { context.clearRect(0, 0, width, height); context.drawImage(image, 0, 0, width, height); canvas.toBlob(function (blob) { var filesize = Math.round(blob.length / 1024) + ' KB'; if (callback) callback(blob, filesize); }); }; image.src = imgsrc; } ================================================ FILE: interactiveTreeVisualization/epilepsyClassification2017/treeStyle.css ================================================ .node { cursor: pointer; } .node circle { fill: #fff; stroke: steelblue; stroke-width: 3px; } .node text { font: 12px sans-serif; } .link { fill: none; stroke: #ccc; stroke-width: 3px; } .button { background-color: #ccc; color: black; border: none; padding: 15px 32px; border-radius: 8px; text-align: center; text-decoration: none; display: inline-block; font-size: 14px; transition-duration: 0.4s; cursor: pointer; } .button:hover { background-color:steelblue; } ================================================ FILE: matlabCode/anat/createBIDS_T1w_json_full.m ================================================ % Template Matlab script to create a BIDS compatible file: % % sub-01_ses-01_run-01_acq-FullExample_T1w.json % % This example lists only the REQUIRED, RECOMMENDED and OPTIONAL fields. % When adding additional metadata please use CamelCase % Writing json files relies on the JSONio library % https://github.com/bids-standard/bids-matlab % % Make sure it is in the matab/octave path try bids.bids_matlab_version; catch warning('%s\n%s\n%s\n%s', ... 'Writing the JSON file seems to have failed.', ... 'Make sure that the following library is in the matlab/octave path:', ... 'https://github.com/bids-standard/bids-matlab'); end %% clear; this_dir = fileparts(mfilename('fullpath')); root_dir = fullfile(this_dir, '..', filesep, '..'); project = 'templates'; sub_label = '01'; ses_label = '01'; run_label = '01'; % The OPTIONAL acq-