jcouto / wfield

Tools to process widefield data
GNU General Public License v3.0
13 stars 14 forks source link

wfield - tools to analysis widefield data

picture

This is a python package for visualizing and analysing data collected with a widefield macroscope.

Use the graphical interface to launch analysis on NeuroCAAS

These tools are for:

Use cases and instructions here

A dataset that can be used to demo some of the functionality of this repository will be made available in the demoRec folder.

File format conventions

NeuroCAAS results folder

Installation (from pip)

pip install wfield

Installation (using Anaconda)

To install start by getting Anaconda or Miniconda. Install also git. Run the following commands from a terminal window (Anaconda prompt or git Bash on Windows, the Mac OS terminal). Check the notes below for common issues.

  1. Go to the folder where you want to install and clone the repository: git clone https://github.com/jcouto/wfield.git. This creates a directory; go inside that directory: cd wfield. Alternatively you can download the repository as a [zip file] (https://github.com/churchlandlab/wfield/archive/master.zip).

  2. Use anaconda to install all dependencies: conda env create -f env.yml the file env.yml is inside the wfield directory.

  3. Enter the environment conda activate wfield and install wfield using the command python setup.py install

  4. You will need to run conda activate wfield to activate the environment before running the software every time you start a terminal.

  5. You are all set.
    Type wfield -h to see the available commands.
    Go here for instructions on how to use NeuroCAAS.

Note: Some reference files used to match to the Allen Common Coordinate Framework are copied from the folder references to $HOME/.wfield during installation.

Note for Mac users:

Note for Windows users:

Note for developers: In some cases you may want to make changes to the software, if you need this run python setup.py develop (you can not move the folder after this - the installation will point to that directory).

The software was tested on Windows, Linux and MacOS Catalina. Installation takes less than 5 minutes on a standard computer with fast access to internet and a previous anaconda installation.

Tutorial

Instructions to use with NeuroCAAS here.

There is a command-line inteface to run computations from the command line. Do wfield -h to learn more.

Notebook examples are here.

Look at this one to load decomposed data and extract ROIs.

Copyright (C) 2020 Joao Couto - jpcouto@gmail.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.