download_cognitive_atlas(data_dir=None, overwrite=False)[source]

Download Cognitive Atlas ontology and extract IDs and relationships.

New in version 0.0.2.

  • data_dir (pathlib.Path or str, optional) – Path where data should be downloaded. By default, files are downloaded in home directory.

  • overwrite (bool, optional) – Whether to overwrite existing files or not. Default is False.


out_dict – Dictionary with two keys: ‘ids’ and ‘relationships’. Each points to a csv file. The ‘ids’ file contains CogAt identifiers, canonical names, and aliases, sorted by alias length (number of characters). The ‘relationships’ file contains associations between CogAt items, with three columns: input, output, and rel_type (relationship type).

Return type


Examples using nimare.extract.download_cognitive_atlas