To run cellfinder, use this general syntax
cellfinder -s signal_channel_images optional_signal_channel_images -b background_channel_images -o /path/to/output_directory -x 2 -y 2 -z 5
--signal-planes-paths Path to the directory of the signal files. Can also be a text file pointing to the files. There can be as many signal channels as you like, and each will be treated independently.
--signal-planes-path Path to the directory of the background files. Can also be a text file pointing to the files. This background channel will be used for all signal channels
--output-dir Output directory for all intermediate and final results
--register Register the background channel to the Allen brain atlas
--summarise Generate summary csv files showing how many cells are in
each brain area (will also run registration if not specified.
--signal-channel-ids Channel ID numbers, in the same order as
--figures Generate figures
Only run parts of cellfinder
If for some reason you don't want some parts of cellfinder to run, you can use the following options. If a part of the pipeline is required by another part it will be run (i.e.
--no-detection won't do anything unless
--no-classification is also used). cellfinder will attempt to work out what parts of the pipeline have already been run (in a given output directory) and not run them again if appropriate.
--no-detection Don't run cell candidate detection
--no-classification Don't run cell classification
--no-standard_space Don't convert cell positions to standard space. Otherwise will run automatically if registration and classification has run.
Figures cannot yet be customised much, but the current options are here:
--no-heatmap Don't generate a heatmap of cell locations
--heatmap-bin Heatmap bin size (um of each edge of histogram cube)
--heatmap-smoothing Gaussian smoothing sigma, in um.
--no-mask-figs Don't mask the figures (removing any areas outside the
brain, from e.g. smoothing)
Performance, debugging and testing
--debug Increase verbosity of statements printed to console and save all
--n-free-cpus The number of CPU cores on the machine to leave
unused by the program to spare resources.
--max-ram Maximum amount of RAM to use (in GB) - not currently fully
implemented for all parts of cellfinder
Useful for testing or if you know your cells are only in a specific region
--start-plane The first plane to process in the Z dimension
--end-plane The last plane to process in the Z dimension
Standard space options
--transform-all Transform all cell positions (including artifacts).
To change how the initial cell candidate detection performs, see Cell candidate detection.
To change how the cell candidate classification performs, see Cell candidate classification.
If your data does not match the NifTI standard orientation (origin is the most ventral, posterior, left voxel), then please see Image orientation to reorient the atlas.
To change how the actual registration performs, see Registration parameters.
If you have used old versions of cellfinder, there may be some options you want to change in Historical options