.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "howto/howto_examples/plot_acoustic_radiations.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_howto_howto_examples_plot_acoustic_radiations.py: =============================================================== How to add new bundles into pyAFQ (Acoustic Radiations Example) =============================================================== pyAFQ is designed to be customizable and extensible. This example shows how you can customize it to define a new bundle based on a definition of waypoint and endpoint ROIs of your design. In this case, we add the acoustic radiations. We start by importing some of the components that we need for this example and fixing the random seed for reproducibility .. GENERATED FROM PYTHON SOURCE LINES 14-26 .. code-block:: Python import os.path as op import plotly import numpy as np from AFQ.api.group import GroupAFQ import AFQ.api.bundle_dict as abd import AFQ.data.fetch as afd from AFQ.definitions.image import ImageFile, RoiImage np.random.seed(1234) .. GENERATED FROM PYTHON SOURCE LINES 27-34 Get dMRI data --------------- We will analyze one subject from the Healthy Brain Network Processed Open Diffusion Derivatives dataset (HBN-POD2) [1]_, [2]_. We'll use a fetcher to get preprocessed dMRI data for one of the >2,000 subjects in that study. The data gets organized into a BIDS-compatible format in the `~/AFQ_data/HBN` folder: .. GENERATED FROM PYTHON SOURCE LINES 34-37 .. code-block:: Python study_dir = afd.fetch_hbn_preproc(["NDARAA948VFH"])[1] .. rst-class:: sphx-glr-script-out .. code-block:: none 0%| | 0/36 [00:00` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_acoustic_radiations.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_acoustic_radiations.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_