@@ -608,3 +608,62 @@ def fetch_hcp_standards(data_dir=None, url=None, resume=True, verbose=1):
608608 _fetch_files (data_dir , files = files , resume = resume , verbose = verbose )
609609
610610 return op .join (data_dir , dataset_name )
611+
612+
613+ def fetch_voneconomo (data_dir = None , url = None , resume = True , verbose = 1 ):
614+ """
615+ Fetches von-Economo Koskinas probabilistic FreeSurfer atlas
616+
617+ Parameters
618+ ----------
619+ data_dir : str, optional
620+ Path to use as data directory. If not specified, will check for
621+ environmental variable 'NNT_DATA'; if that is not set, will use
622+ `~/nnt-data` instead. Default: None
623+ url : str, optional
624+ URL from which to download data. Default: None
625+ resume : bool, optional
626+ Whether to attempt to resume partial download, if possible. Default:
627+ True
628+ verbose : int, optional
629+ Modifies verbosity of download, where higher numbers mean more updates.
630+ Default: 1
631+
632+ Returns
633+ -------
634+ filenames : :class:`sklearn.utils.Bunch`
635+ Dictionary-like object with keys of format '{}Parcels{}Networks' where
636+ corresponding values are the left/right hemisphere annotation files
637+
638+ References
639+ ----------
640+ Scholtens, L. H., de Reus, M. A., de Lange, S. C., Schmidt, R., & van den
641+ Heuvel, M. P. (2018). An MRI von Economo–Koskinas atlas. NeuroImage, 170,
642+ 249-256.
643+
644+ Notes
645+ -----
646+ License: CC-BY-NC-SA 4.0
647+ """
648+
649+ dataset_name = 'atl-voneconomo_koskinas'
650+ keys = ['gcs' , 'ctab' ]
651+
652+ data_dir = _get_data_dir (data_dir = data_dir )
653+ info = _get_dataset_info (dataset_name )
654+ if url is None :
655+ url = info ['url' ]
656+ opts = {
657+ 'uncompress' : True ,
658+ 'md5sum' : info ['md5' ],
659+ 'move' : '{}.tar.gz' .format (dataset_name )
660+ }
661+ filenames = [
662+ 'atl-vonEconomoKoskinas_hemi-{}_probabilistic.{}' .format (hemi , suff )
663+ for hemi in ['L' , 'R' ] for suff in ['gcs' , 'ctab' ]
664+ ]
665+ files = [(op .join (dataset_name , f ), url , opts ) for f in filenames ]
666+ data = _fetch_files (data_dir , files = files , resume = resume , verbose = verbose )
667+ data = [ANNOT (* data [n ::2 ]) for n in range (len (keys ))]
668+
669+ return Bunch (** dict (zip (keys , data )))
0 commit comments