You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ Pachitariu, M., Stringer, C., Schröder, S., Dipoppa, M., Rossi, L. F., Carandin
52
52
### <aname="installation_section"></a> Installation for Linux, Windows, and MacOS (intel processors) machines
53
53
1. Install an [Anaconda](https://www.anaconda.com/download/) distribution of Python -- Choose **Python 3.8** and your operating system. Note you might need to use an anaconda prompt if you did not add anaconda to the path.
54
54
2. Open an anaconda prompt / command prompt with `conda` for **python 3** in the path
55
-
3. Create a new environment with `conda create --name suite2p python=3.8`.
55
+
3. Create a new environment with `conda create --name suite2p python=3.9`.
56
56
4. To activate this new environment, run `conda activate suite2p`
57
57
5. (Option 1) You can install the minimal version of suite2p, run `python -m pip install suite2p`.
58
58
6. (Option 2) You can install the GUI version with `python -m pip install suite2p[gui]`. If you're on a zsh server, you may need to use `' '` around the suite2p[gui] call: `python -m pip install 'suite2p[gui]'`. This also installs the NWB dependencies.
@@ -76,7 +76,7 @@ pip install --upgrade suite2p
76
76
1. Download an iTerm2 terminal from this [link](https://iterm2.com/). Install it into your /Applications folder. If you already have downloaded iTerm, duplicate it and give it whatever name you'd like (e.g., "iterm2Rosetta").
77
77
2. Navigate to the iTerm app you will use, right click it, and then select "Get Info". Check "Open using Rosetta".
78
78
3. Open up this iTerm app and follow steps 1 & 2 in the installation section [above](#installation_section) to install anaconda.
79
-
4. Use the following command `CONDA_SUBDIR=osx-64 conda create --name suite2p python=3.8`
79
+
4. Use the following command `CONDA_SUBDIR=osx-64 conda create --name suite2p python=3.9`
80
80
5. Follow steps 4-7 in the installation section [above](#installation_section) to install the `suite2p` package.
81
81
82
82
@@ -102,7 +102,7 @@ The software has been heavily tested on Windows 10 and Ubuntu 18.04, and less we
102
102
1. Clone the repository and `cd suite2p` in an anaconda prompt / command prompt with `conda` for **python 3** in the path
103
103
2. Run `conda env create --name suite2p`
104
104
3. To activate this new environment, run `conda activate suite2p` (you will have to activate every time you want to run suite2p)
105
-
4. Install the local version of suite2p into this environment in develop mode with the command `pip install -e .`
105
+
4. Install the local version of suite2p into this environment in develop mode with the command `pip install -e .[all]`
106
106
5. Run tests: `python setup.py test` or `pytest -vs`, this will automatically download the test data into your `suite2p` folder. The test data is split into two parts: test inputs and expected test outputs which will be downloaded in `data/test_inputs` and `data/test_outputs` respectively. The .zip files for these two parts can be downloaded from these links: [test_inputs](https://www.suite2p.org/static/test_data/test_inputs.zip) and [test_outputs](https://www.suite2p.org/static/test_data/test_outputs.zip).
Copy file name to clipboardExpand all lines: docs/inputs.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,21 +156,21 @@ Suite2p reads nd2 files using the nd2 package and returns a numpy array represen
156
156
157
157
158
158
159
-
BinaryRWFile
159
+
BinaryFile
160
160
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
161
161
162
-
The ``BinaryRWFile`` is a special class in suite2p that is used to read/write imaging data and acts like a Numpy Array. Inputs of any format listed above will be converted into a ``BinaryRWFile`` before being passed in through the suite2p pipeline. An input file can easily be changed to a ``BinaryRWFile`` in the following way:
162
+
The ``BinaryFile`` is a special class in suite2p that is used to read/write imaging data and acts like a Numpy Array. Inputs of any format listed above will be converted into a ``BinaryFile`` before being passed in through the suite2p pipeline. An input file can easily be changed to a ``BinaryFile`` in the following way:
163
163
164
164
::
165
165
166
166
import suite2p
167
167
168
168
fname = "gt1.tif" # Let's say input is of shape (4200, 325, 556)
169
169
Lx, Ly = 556, 326 # Lx and Ly are the x and y dimensions of the imaging input
170
-
# Read in our input tif and convert it to a BinaryRWFile
Copy file name to clipboardExpand all lines: docs/settings.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ Suite2p can accomodate many different file formats. Refer to this
77
77
78
78
- **nwb_series** (*str, default: ''*) Name of TwoPhotonSeries values you wish to retrieve from your NWB file.
79
79
80
-
- **save_path0** (*list[str], default: empty list*) List containing pathname of where you'd like to save your pipeline results. If list is empty, the first element of ``ops['data_path']`` is used.
80
+
- **save_path0** (*str, default: ''*) String containing pathname of where you'd like to save your pipeline results. If no pathname is provided, the first element of ``ops['data_path']`` is used.
81
81
82
82
- **save_folder** (*list[str], default: empty list*) List containing directory name you'd like results to be saved under. Defaults to ``"suite2p"``.
83
83
@@ -247,7 +247,7 @@ ROI detection settings
247
247
1.0.
248
248
249
249
- **high_pass**: (*int, default: 100*) running mean subtraction across
250
-
time with window of size 'high_pass'. Values of less than 10 are
250
+
bins of frames with window of size 'high_pass'. Values of less than 10 are
251
251
recommended for 1P data where there are often large full-field
252
252
changes in brightness.
253
253
@@ -355,4 +355,4 @@ Channel 2 specific settings
355
355
Miscellaneous settings
356
356
~~~~~~~~~~~~~~~~~~~~~~
357
357
358
-
- **suite2p_version**: specifies version of suite2p pipeline that was run with these settings. Changing this parameter will NOT change the version of suite2p used.
358
+
- **suite2p_version**: specifies version of suite2p pipeline that was run with these settings. Changing this parameter will NOT change the version of suite2p used.
1. Make sure you are in the `suite2p/scripts` directory instead of `suite2p/tests` where this `instructions.md` file is located. Run `python generate_test_data.py`.
3
+
2. All the generated test data will be placed in the directory
4
+
`suite2p/scripts/test_data`. These directories will correspond to the expected outputs for our tests.
0 commit comments