5-20-2021 Note:
These instructions were originally written by Ben D. Singer in November 2018. I, Jia Jie Choong have added modifications to the R, RStudio, Rtools, and ROpenCVLite installation sections and include general suggestions on path setups due to various errors we have encountered in Windows. As I do not provide technical support for Wholebrain, errors in installation that can’t be solved by following these instructions should be directed to Daniel Furth, either through the Wholebrain Gitter chat room (https://gitter.im/tractatus/Lobby) or through his email (furth@cshl.edu).
Because of issues we have encountered previously with spaces in Windows paths, we recommend you check your user profile folder name located in the directory below:
C:\Users
Make sure that your user account folder contains no spaces, otherwise the path spaces may cause an error during the installation. If you do have a space in your user folder, we suggest renaming your user account along with the user folder using these in-depth instructions: link here. Alternatively, you can create an entirely new user account with administrative privileges for the purposes of this installation and pipeline usage (this will be entirely separate from your normal account which may be annoying).
Please follow the steps from top to bottom.
Please go to this link to download all the installation files needed for wholebrain.
Open Rstudio and run the following command, devtools::install_github("r-lib/devtools")
If it asks to install the latest update, choose 1. All
You will get the option to set the System Path from within the Rtools installer. Check the box. At the top of the list, it should list (add if not) the Rtools bin directories:
C:\Program Files\R\R-3.5.2\bin\x64
To check compatibility of the devtools package with the Rtools installation, first restart your RStudio session to ensure the paths are updated in R; then run the command below in the console as a check. The output should be TRUE.
library(pkgbuild)
find_rtools()
Quit RStudio
devtools::install_github("swarm-lab/ROpenCVLite", ref = "v0.3.410", INSTALL_opts="--no-multiarch")
ROpenCVLite::installOpenCV()
Select 1. Yes.
devtools::install_github("tractatus/wholebrain", args="--no-multiarch")
3. None
library(wholebrain)
filename<-system.file('sample_tiles/rabiesEGFP.tif', package='wholebrain')
output<-segment(filename)
OUTPUT SEGMENTED CELLS: 248
library(devtools)
install_github("mjin1812/SMART")
library(SMART)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.