# π Step-by-Step Guide: Installing the Inscopix Python API
### β οΈ Disclaimer
Before you begin, make sure you have **Anaconda** installed on your PC.
If not, you can follow the official installation guide β donβt panic, itβs easy!
*(These instructions are written for Windows systems.)*
---
## 1. Locate the Inscopix Installation Path
*(You can perform this step using the Windows File Explorer.)*
If Inscopix is installed under the `./adm` user and you donβt have administrative access, no worries β we can work around that by copying the **Data Processing** folder.
Example: default installation path
```
C:\Program Files\Inscopix\Data Processing
```
Copy this folder and paste it into your own user directory so that you have permission to modify its contents.
Itβs also recommended to **rename the folder** (remove spaces) to make it easier to use in scripts.
Example of my case, I am user uid-1908
```
C:\Users\uid-1908\
```
Once you paste the folder, you will have:
`C:\Users\uid-1908\DataProcessing`
## 2. Installing `isx` (Inscopix Python API)
Youβll need the **Anaconda Prompt** for this step and the ones that follow.
1. Open your **Anaconda Prompt**.
2. Navigate to the folder you just created in Step 1 using the `cd` command.
If youβre currently in the wrong directory, move up one level with `cd..`
For example, if youβre in another userβs folder:
```
PS C:\Users\uid-1919> cd..
PS C:\Users>
```
Now navigate to your own user folder and then to **DataProcessing**:
```
PS C:\Users> cd .\uid-1908
PS C:\Users\uid-1908> cd .\DataProcessing
PS C:\Users\uid-1908\DataProcessing>
```
Once inside the `DataProcessing` folder, create a new **Mamba environment** using the following command:
```
PS C:\Users\uid-1908\DataProcessing> mamba create -n isxenv -f enviroment.yml
```
If everything installs correctly, activate the environment: `conda activate isxenv`
If you encounter issues during the environment setup (e.g., missing dependencies from `environment.yml`), try installing manually using `pip`:
First activate the enviroment you already created, and then install it again using `pip`
```
PS C:\Users\uid-1908\DataProcessing> conda activate isxenv
(isxenv)PS C:\Users\uid-1908\DataProcessing> pip install -e .
```
Do not miss the `.` at the end
## 3. Install JupyterLab to Run the Notebooks
The analysis scripts in this repository are designed to be run in **Jupyter Notebooks**.
Youβll also need to make sure youβre using **Python 3.6** for compatibility.
Install both with:
```
(isxenv)PS C:\Users\uid-1908\DataProcessing> mamba install jupyterlab python=3.6
```
Once installation is complete, navigate to the folder where your datasets and cloned GitHub repository are stored.
*(They should be in the same directory for smooth operation.)*
---
### 3.1 Clone the GitHub Repository
If you havenβt cloned the repository yet, you can do so with:
##### IN CONSTRUCTION ... (comming soon)
:construction:
### BONUS PART: How to catch the preprocessing pipeline ?
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Calcium Imaging Preprocessing Pipeline β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 1. Data Organization (TIFF stacks + metadata) β
β 2. Motion Correction (Rigid/Non-rigid) β
β 3. Neuropil Correction (Background subtraction) β
β 4. Cell Segmentation (ROI extraction)
β 5. Signal Extraction (dF/F calculation) β
β 6. Spike Inference (Deconvolution) / depends of the mains β
β 7. Denoising (Photobleaching, drift, noise removal) β
β 8. Alignment with Behavioral Data (Optional) β
β 9. Quality Control (Visual inspection) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Jupyter lab misundertanding with CV2
cv2 cv2.color
### π‘ Tips
- Always activate your `isxenv` environment before running any scripts.
- If something doesnβt work, double-check that your paths and permissions are correct.
- Keep your `environment.yml` file handy in case you need to recreate the setup later.
---
### π§Ύ License
These instructions are provided for educational and research purposes.
Inscopix software and APIs remain the property of **Inscopix, Inc.**