1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
wfield - tools to analysis widefield data
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:
- Motion correction
- Data reduction
- Hemodynamic correction
- Matching to the Allen CCF
- Visualize raw/reduced data and ROIs
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
-
raw frame data, when stored in binary files (uint16)
the filename must end with:_NCHANNELS_H_W_DTYPE.dat
Example: "frames_2_540_640_uint16.dat" H and W are the dimensions of a single frame.
These files can be opened with the commandwfield open_raw <filename> -
denoised/decomposed (locally processed) data are stored as
npyarrays
U.npyare the spatial components(H, W, NCOMPONENTS)
SVT.npyare the temporal components(NCOMPONENTS, NFRAMES) -
SVTcorr.npyis the hemodynamic corrected temporal components(NCOMPONENTS, NFRAMES) -
info.jsonhas information about the dataset like theframe_rateor then_channels
NeuroCAAS results folder
U_atlas.npyare the spatial components transformed to a common atlas reference frame.
(H, W, NCOMPONENTS)reduced_spatial.npyare the spatial components from the PMD(H*W,NCOMPONENTS)
The H and W of the matrix are in theconfig.yamlfile (or useU_atlas)SVTcorr.npyare the hemodynamic corrected temporal components(NCOMPONENTS, NFRAMES)reduced_temporal.npyare the temporal components for the first channel `(NCOMPONENTS, NFRAMES)- LocaNMF returns a matlab file with components in spatial components in the
Avariable and temporal components in theCvariable.
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.
-
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). -
Use anaconda to install all dependencies:
conda env create -f env.ymlthe file env.yml is inside thewfielddirectory. -
Enter the environment
conda activate wfieldand install wfield using the commandpython setup.py install -
You will need to run
conda activate wfieldto activate the environment before running the software every time you start a terminal. -
You are all set.
Typewfield -hto 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:
gitwhen you try the instructions you will be asked to install git, if that fails you can runconda install gitto install using anaconda.
Note for Windows users:
- Get a terminal like git bash [optional]
Runconda init bashto activate conda ongit bash - When you install Anaconda, set the option to install as system python (this makes that it is visible from the terminal without having to run the Anaconda Prompt).
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/.
Release files for wfield 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wfield-0.1.tar.gz | 73.6 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wfield-0.1-py3.8.egg | Legacy Egg format | - | - | Details |
| wfield-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 525.9 kB
Release files / wfield-0.1.tar.gz
| Download URL | wfield-0.1.tar.gz |
|---|---|
| Size | 73.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73de0cd02c2dc2d2c1d016d3b19e975dc556220ad65c561b09cb73c03dd74b6d
|
|
BLAKE2b-256 checksum How to use checksums |
0ede75635333579b96e6e208757ad881d0f1b850f47da5a5990a6a18e38b61fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.6
|
Release files / wfield-0.1-py3.8.egg
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | wfield-0.1-py3.8.egg |
|---|---|
| Size | 154.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
7cbeb43ec5cd2dfc100328fe78c8c06dc27b1675470189cb41dd0e59c08b3fc1
|
|
BLAKE2b-256 checksum How to use checksums |
b41731886d9e330a81820f755a1b33a453e0ecbbb8c10a4255787a61fb022a61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / wfield-0.1-py3-none-any.whl
| Download URL | wfield-0.1-py3-none-any.whl |
|---|---|
| Size | 297.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5add084f803ab4304c612865a97c8164db513b5fd5fa5ee280aea5fd3c7ca362
|
|
BLAKE2b-256 checksum How to use checksums |
5c680b13ef43ffab9fdc29451fa32a70d6e963f88e4899af143017f9e9570eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.6
|