Skip to content

Installation

wagenrace edited this page Nov 14, 2019 · 2 revisions

In order to run the project correctly some programs need to be installed.

clone project

Make sure the project is cloned to you machine. From this point on we will assume you cloned the project to [git-path]/single-cell-classifier

WSL (Windows users only)

Windows users will need to first setup WSL with linux before continuing with this instruction.

installing ubuntu

  • Open 'microsoft store' and install 'ubuntu 18.04 LTS'
  • Read the instruction given with this ubuntu app
    • Go in setting to 'Turn windows features on or off'
    • Check the box before 'windows Subsystem for Linux'
    • Reboot your machine

connect your code via vscode

  • open vscode
  • install extension 'remote wsl'
  • In the left bottom a green box appears
    • Click it
    • Hit 'Remote WSL Reopen folder in WSL'
    • If all files have changed according to git discards these. It might change everything from unix to dos. You do NOT want that.

done You now can run Ubuntu within windows. You can use it by opening the ubuntu app (you will get the bash shell) or by using remote wsl with vs-code.

Install mini anaconda

Anaconda is an python package distributor. It will also install python itself. To install it open bash and run the commands below.

# download latest mini anaconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

# run installation
bash Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc

# remove installation file
rm Miniconda3-latest-Linux-x86_64.sh

Setting up conda environment

To initialize the compute environment used in this project, run:

cd [git-path]/single-cell-classifier
# Using conda version > 4.7.12
# Step 1: Create the environment
conda env create --force --file environment.yml

# Step 2: Activate the environment
conda activate cytodata-single-cell

Clone this wiki locally