|
| 1 | +--- |
| 2 | +description: Getting started with cellfinder |
| 3 | +--- |
| 4 | + |
1 | 5 | # Tutorial
|
2 | 6 |
|
3 | 7 | {% hint style="danger" %}
|
4 |
| -Still a work in progress. |
| 8 | +**Still a work in progress. The test data is not yet uploaded** |
| 9 | +{% endhint %} |
| 10 | + |
| 11 | +Although cellfinder is designed to be easy to install and use, if you're coming to it with fresh eyes, it's not always clear where to start. We provide an example brain to get you started, and also to illustrate how to play with the parameters to better suit your data. |
| 12 | + |
| 13 | +{% hint style="warning" %} |
| 14 | +**The test dataset is large** \(~250GB\). It is recommended that you try this tutorial out on the fastest machine you have, with the fastest hard drive possible \(ideally SSD\) and an NVIDIA GPU. See [System requirements](../installation/system-requirements.md) for more details. |
5 | 15 | {% endhint %}
|
6 | 16 |
|
| 17 | +### Instructions |
| 18 | + |
| 19 | +#### Setting up |
| 20 | + |
| 21 | +* First install cellfinder, following the [Installation](../installation/installation.md) guide. |
| 22 | +* Download the data from [here](https://gin.g-node.org/cellfinder/data/raw/master/brainreg/test_brain.zip) \(it will take a long time to download\). |
| 23 | +* Unzip the data to a directory of your choice \(doesn't matter where\). You should end up with a directory called `test_brain` with two directories, each containing 2800 images. |
| 24 | +* Open a terminal \(Linux\) or your command prompt \(Windows\) |
| 25 | +* Activate your [conda environment ](../installation/using-conda.md) |
| 26 | + |
| 27 | +{% hint style="info" %} |
| 28 | +The test data supplied is purposefully not the "best". It has some artefacts such as fluorescent vasculature, bright spots of the brain surface and stitching artefacts. |
| 29 | + |
| 30 | +The aim of this tutorial is not to show cellfinder performing perfectly, but to illustrate how it deals with less than perfect data, and how to improve the performance. |
| 31 | +{% endhint %} |
| 32 | + |
| 33 | +#### Run cellfinder |
| 34 | + |
| 35 | +To run cellfinder, you need to know: |
| 36 | + |
| 37 | +* Where your data is \(in this case, it's the path to the `test_brain` directory\) |
| 38 | +* Where you want to save the output data \(we'll just save it into a directory called `cellfinder_output`in the same directory as the `test_brain`\) |
| 39 | +* The pixel sizes of your data in microns \(see [Specifying pixel size](../user-guide/usage/specifying-pixel-size.md) for details\). In this case, our data is 2um per pixel in x and y \(in the coronal plane\) and 5um in z \(the spacing of each plane\). |
| 40 | +* The orientation of your data. For registration |
| 41 | +* Which atlas you want to use \(you can see which are available by running `brainglobe list`. In this case, we want to use a mouse atlas \(as that's what our data is\), and we'll use the 10um version of the [Allen Mouse Brain Atlas](https://mouse.brain-map.org/static/atlas). |
| 42 | + |
| 43 | + |
| 44 | + |
0 commit comments