Skip to content

KamitaniLab/spurious_reconstruction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spurious-reconstruction

This repository contains demo code for the paper:
Ken Shirakawa, Yoshihiro Nagano, Misato Tanaka, Shuntaro C. Aoki, Yusuke Muraki, Kei Majima, and Yukiyasu Kamitani, "Spurious reconstruction from brain activity" (arXiv).

Getting Started

Installation

To clone this repository on your local machine, use the following git clone command with the project URL:

git clone https://github.com/KamitaniLab/spurious_reconstruction.git

Environment Setup

The environment for this project was created using Rye. To set it up, follow the official instructions to install Rye. After installation, you can synchronize the environment for this repository using:

cd spurious_reconstruction 
rye sync

Usage


We are currently preparing to share the preprocessed data and files. These files will be made available on Figshare at this DOI.

Reproducing the full analysis requires a large amount of data (approximately 3TB) and some analyses take considerable time to complete (up to ~2 weeks). Therefore, we recommend downloading only the minimum necessary files to reproduce specific analysis, such as image reconstruction, UMAP results or simulation analysis.

For example, if you want to reproduce the UMAP results (related to Figure 4), you can download the required data by running the following command:

python ./download.py "UMAP visualization analysis"

Alternatively, you can directly download the results of UMAP analysis with:

python ./download.py "UMAP visualization results"

Each analysis directory contains additional information on how to reproduce the corresponding results. Please check the README files within each directory for specific instructions.

Original Dataset

We used publicly available datasets for this project. The key datasets are:

If you want to fully reproduce the analysis, you can use these brain data, image stimuli and corresponding text annotations.