nimare.extract.download_cognitive_atlas

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

Download Cognitive Atlas ontology and extract IDs and relationships.

Added in version 0.0.2.

Parameters:
  • 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.

Returns:

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:

dict

Examples using nimare.extract.download_cognitive_atlas

The Cognitive Atlas

The Cognitive Atlas