|
31 | 31 | "### Install conda on Linux\n",
|
32 | 32 | "\n",
|
33 | 33 | "```bash\n",
|
34 |
| - "curl https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh --output-file Miniconda2-latest-Linux-x86_64.sh\n", |
35 |
| - "bash Miniconda2-latest-Linux-x86_64.sh\n", |
| 34 | + "curl https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O Miniconda2-latest-Linux-x86_64.sh\n", |
| 35 | + "sh Miniconda2-latest-Linux-x86_64.sh\n", |
36 | 36 | "```\n",
|
37 | 37 | "\n",
|
38 |
| - "### Install conda on Windows\n", |
| 38 | + "### Install conda on Windows (WSL)\n", |
39 | 39 | "\n",
|
40 |
| - "Download EXE installer and install it.\n", |
| 40 | + "The easiest way is to first install the [Windwos Subsystem for Linux (WSL)](https://docs.microsoft.com/en-us/windows/wsl/install-win10)\n", |
| 41 | + "Once this is done start the Linux distrubition that was previously installed from the Start Menu\n", |
| 42 | + "\n", |
| 43 | + "```bash\n", |
| 44 | + "curl https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O Miniconda2-latest-Linux-x86_64.sh\n", |
| 45 | + "sh Miniconda2-latest-Linux-x86_64.sh\n", |
| 46 | + "```\n", |
41 | 47 | "\n",
|
42 | 48 | "\n",
|
43 | 49 | "## Create a conda environment and install limix, jupyter notebook\n",
|
44 | 50 | "\n",
|
| 51 | + "### For Linux, Mac OSX and WSL follow this:\n", |
| 52 | + "\n", |
45 | 53 | "```bash\n",
|
46 | 54 | "$ git clone https://github.com/timeu/gwas-lecture.git \n",
|
47 | 55 | "$ # or download archive from and extract it from https://github.com/timeu/gwas-lecture/archive/master.zip\n",
|
48 | 56 | "$ cd gwas-lecture\n",
|
49 | 57 | "$ conda env create -f environment.yml\n",
|
50 | 58 | "```\n",
|
51 | 59 | "\n",
|
| 60 | + "\n", |
| 61 | + "## Docker container\n", |
| 62 | + "\n", |
| 63 | + "As a fallback if any of the installations above fail, it is possible to use a docker container that comes with all libraries pre-installed. First make sure to install [Docker](https://docs.docker.com/install/) on your machine.\n", |
| 64 | + "Once docker is installed just run: \n", |
| 65 | + "\n", |
| 66 | + "```\n", |
| 67 | + "$ docker run -it -p 8888:8888 timeu/gwas-lecture\n", |
| 68 | + "```\n", |
| 69 | + "Open http://localhost:8888 in your browser and copy and paste the token for the docker run above\n", |
| 70 | + "\n", |
| 71 | + "\n", |
52 | 72 | "## Start jupyter notebook\n",
|
53 | 73 | "\n",
|
54 | 74 | "```\n",
|
|
70 | 90 | "\n",
|
71 | 91 | "In the terminal, type:\n",
|
72 | 92 | "* install.packages('IRkernel')\n",
|
73 |
| - "* IRkernel::installspec() # to register the kernel in the current R installation\n", |
74 |
| - "\n", |
75 |
| - "Launch jupyter with the specified kernel:\n", |
76 |
| - "* jupyter console --kernel=ir" |
| 93 | + "* IRkernel::installspec() # to register the kernel in the current R installation" |
77 | 94 | ]
|
78 | 95 | }
|
79 | 96 | ],
|
|
0 commit comments