:py:mod:`cubnm.datasets` ####################### .. py:module:: cubnm.datasets .. autoapi-nested-parse:: Example datasets .. autoapisummary:: cubnm.datasets.load_sc cubnm.datasets.load_functional cubnm.datasets.load_maps .. py:function:: load_sc(what, parc, return_path=False) Load example structural connectivity matrix Parameters ---------- what: {'strength', 'length'} - 'strength': SC strength (normalized tract counts) - 'length': SC tracts length parc: {'schaefer-[100, 200, 400, 600]', 'aparc', 'glasser-360'} parcellation. For Schaefer, specify number of parcels. return_path: :obj:`bool`, optional If True, returns path to the file Otherwise, returns the matrix Returns ------- :obj:`np.ndarray` or :obj:`str` Structural connectivity matrix or path to its text file. Shape: (nodes, nodes) .. py:function:: load_functional(what, parc, exc_interhemispheric=False, return_path=False) Load example funcitonal data including lower triangle of FC/FCD or BOLD time series Parameters -------- what: {'FC', 'FCD', 'bold'} - 'FC': functional connectivity - 'FCD': functional connectivity dynamics parc: 'schaefer-100' parcellation exc_interhemispheric: :obj:`bool`, optional whether to exclude interhemispheric connections valid for 'FC' and 'FCD' return_path: :obj:`bool`, optional If True, returns path to the file Otherwise, returns the matrix Returns -------- :obj:`np.ndarray` or :obj:`str` Path to a text file or numpy array including: - 'FC': Shape: (n_node_pairs,) - 'FCD': Shape: (n_window_pairs,) - 'bold': Shape: (nodes, volumes) .. py:function:: load_maps(names, parc, norm='minmax') Loads example heterogeneity maps Parameters ---------- names: :obj:`str` or :obj:`list` One or more maps selected from this list: - 'myelinmap' - 'thickness' - 'fcgradient01' - 'genepc1' - 'nmda' - 'gabaa' - 'yeo7' parc: {'schaefer-100'} parcellation norm: {'zscore', 'minmax', None} - 'zscore': maps are z-score normalized - 'minmax': maps are min-max normalized to [0, 1] Returns -------- :obj:`np.ndarray` or :obj:`str` Maps arrays or path to their text file. Shape: (maps, nodes) Notes ----- For more information and code on how these maps were obtained and parcellated see `utils.datasets.load_maps` in https://github.com/amnsbr/eidev. The set of maps included here are limited and provided just as examples. We recommend users to use `neuromaps` and similar tools to obtain and parcellate further maps.