Git Product home page Git Product logo

figures_from_pca_paper's Introduction

Generate the figures in my paper Phantom oscillations in principal component analysis.

Requirements

Standard scientific Python stack:

pip install numpy scipy scikit-learn matplotlib seaborn statsmodels scikit-image imageio

CanD for pretty scientific figures:

pip install cand

Colorednoise for easy 1/f noise simulations:

pip install colorednoise

Networkx for the branching manifold:

pip install networkx

Wbplot for rendering the MRI images:

pip install wbplot

I used Python 3.6 but it should work on a more modern version.

Running

Run each Python script from the terminal. After running all scripts, edit the "REVERSE = False" line to be "REVERSE = True" to generate the remaining figures.

Missing data files can in theory be rendered by uncommenting the commented-out sections of each file, but that requires installing more software (specifically this for fMRI and this for NHP electrophysiology) so I uploaded the pre-generated data.

Data from Roitman and Shadlen (2002) is available from the authors.

Copyright

All code copyright 2024 Max Shinn, available under the GNU GPLv3.

ames-task.png is copyright Ames and Churchland 2019 from their eLife paper.

figures_from_pca_paper's People

Contributors

mwshinn avatar

Stargazers

Ramon Bartolo, PhD avatar Ali Farhat avatar  avatar Zhen-Qi Liu avatar Jorge Hernández avatar Eike Petersen avatar Yi Hein Chai avatar Felipe Parodi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.