def get_data_dictionary(path_to_clinical_data_folder): """Temporary function to get DataDictionary_NIFD_2017.10.18.xlsx file. See https://github.com/aramis-lab/clinica/issues/122 for details. Args: path_to_clinical_data_folder: Path to clinical data folder. Returns: Path to 'DataDictionary_NIFD_2017.10.18.xlsx' file. """ import os from clinica.utils.inputs import RemoteFileStructure, get_file_from_server local_nifd_dictionary = os.path.join( path_to_clinical, "DataDictionary_NIFD_2017.10.18.xlsx") if os.path.exists(local_nifd_dictionary): path_to_nifd_dictionary = local_nifd_dictionary else: NIFD_DICTIONNARY = RemoteFileStructure( filename="DataDictionary_NIFD_2017.10.18.xlsx", url= "https://aramislab.paris.inria.fr/files/data/databases/converters/", checksum= "e75b23a9f4dad601463f48031cfc00e1180e4877d0bebbdfd340fdbcbacab5cb", ) path_to_nifd_dictionary = get_file_from_server(NIFD_DICTIONNARY) return path_to_nifd_dictionary
def get_atlas_labels(): from clinica.utils.inputs import RemoteFileStructure, get_file_from_server NEUROMORPHOMETRICS_PARC = RemoteFileStructure( filename="atlas-Neuromorphometrics_dseg.nii.gz", url= "https://aramislab.paris.inria.fr/files/software/cat12/CAT12-Atlases/", checksum= "19a50136cd2f8a14357a19ad8a1dc4a2ecb6beb3fc16cb5441f4f2ebaf64a9a5", ) return get_file_from_server(NEUROMORPHOMETRICS_PARC)
def get_atlas_labels(): from clinica.utils.inputs import RemoteFileStructure, get_file_from_server LPBA40_PARC = RemoteFileStructure( filename="atlas-LPBA40_dseg.nii.gz", url= "https://aramislab.paris.inria.fr/files/software/cat12/CAT12-Atlases/", checksum= "20826b572bbbdbcdbf28bbd3801dc0c2fed28d1e54bc4fd5027e64ccc6d50374", ) return get_file_from_server(LPBA40_PARC)
def get_atlas_labels(): from clinica.utils.inputs import RemoteFileStructure, get_file_from_server HAMMERS_PARC = RemoteFileStructure( filename="atlas-Hammers_dseg.nii.gz", url= "https://aramislab.paris.inria.fr/files/software/cat12/CAT12-Atlases/", checksum= "c034a7bce2dcab390a0b72f4e7d04769eb3fe5b990d0e18d89b0ce73339a5376", ) return get_file_from_server(HAMMERS_PARC)