|
1 | 1 | #Installation |
2 | 2 |
|
3 | | -### Install Julia v1.1.0 |
4 | | -Download [Julia]("https://julialang.org/downloads/") |
5 | | - |
6 | 3 | ### Supported Operating Systems: |
7 | 4 |
|
8 | | -#### macOS |
9 | | - |
10 | | -Sierra, High Sierra, and Mojave. |
11 | | - |
12 | | -#### Windows |
| 5 | +macOS ( Sierra, High Sierra, and Mojave ), Windows (7 and 10), and Linux. |
13 | 6 |
|
14 | | -Windows 10, Windows 7. |
| 7 | +### Step 1: Install Julia |
15 | 8 |
|
16 | | -To install Julia on Windows, you can follow the [platform specific instructions](https://julialang.org/downloads/platform.html). |
| 9 | +1. Download [Julia]("https://julialang.org/downloads/") and install the language following the [platform specific instructions](https://julialang.org/downloads/platform.html). |
17 | 10 |
|
18 | | -To run VIVA using Julia from the command prompt or PowerShell, *you will need to add Julia to the Windows path variable*. This should be a quick step (est. time to complete: 1 minute) |
| 11 | +2. Then, follow add Julia to the path variable to run VIVA. |
19 | 12 |
|
20 | 13 | To add Julia to the PATH on Windows 7 or Windows 10: |
21 | 14 |
|
22 | 15 | Add the path to the Julia binaries (C:\Program Files\Julia\bin) to the PATH following the concise instructions [found here](https://www.java.com/en/download/help/path.xml) |
23 | 16 |
|
24 | | -#### Linux |
| 17 | +To add Julia to the PATH on Mac run the following line in the Terminal: |
| 18 | + |
| 19 | +> sudo ln -s /Applications/Julia-1.1.app/Contents/Resources/julia/bin/julia /usr/local/bin/julia |
| 20 | +
|
| 21 | +Be sure to replace "/Applications/Julia-1.1.app/..." to reflect the version of Julia you've downloaded. |
| 22 | + |
| 23 | + |
| 24 | +*Linux Note*: To run on remote compute clusters, you may need to load the opengl and julia modules. |
| 25 | + |
| 26 | + |
| 27 | +### Step 2: Install VariantVisualization.jl |
| 28 | + |
| 29 | +To run the VIVA command line tool and VIVA Jupyter Notebook, you'll need to install our VariantVisualization.jl Julia package which powers VIVA. |
| 30 | + |
| 31 | +To install VariantVisualization.jl: |
| 32 | + |
| 33 | +1. Open the command line or PowerShell |
| 34 | +2. Run the following block of code |
| 35 | + |
| 36 | +>`julia` |
| 37 | +
|
| 38 | +>`]` |
| 39 | +
|
| 40 | +>`add VariantVisualization` |
| 41 | +
|
| 42 | +>`exit()` |
| 43 | +
|
| 44 | +### Step 3: Install the VIVA command line script |
| 45 | + |
| 46 | +Download the VIVA tool script and save it to a working directory for your analysis. Save your VCF file in the working directory. |
| 47 | + |
| 48 | +Copy and paste the following block of code into the command line or PowerShell: |
25 | 49 |
|
26 | | -*Note*: To run on remote compute clusters, you may need to load opengl module along with julia/1.1.0. |
| 50 | +>mkdir new_folder/ |
27 | 51 |
|
28 | | -### Command Line Tool |
| 52 | +>cd new_folder/ |
29 | 53 |
|
30 | | -1. Add VariantVisualization.jl using Pkg in the Julia REPL: |
31 | | - * run `using Pkg` |
32 | | - * run `Pkg.clone("https://github.com/compbiocore/VariantVisualization.jl")` |
33 | | - * run `Pkg.instantiate()` |
34 | | -2. Download the [VIVA](https://github.com/compbiocore/VariantVisualization.jl/blob/master/viva) tool script and save it to a working directory for your analysis. |
35 | | -3. Navigate to your working directory and follow the [VIVA manual](https://compbiocore.github.io/VariantVisualization.jl/latest/) to generate your plots. |
| 54 | +>curl -L https://raw.githubusercontent.com/compbiocore/VariantVisualization.jl/master/viva > viva |
36 | 55 |
|
37 | | -### Jupyter Notebook |
| 56 | +### Optional Step: Install VIVA Jupyter Notebook |
| 57 | + |
| 58 | +To install the VIVA Jupyer Notebook: |
38 | 59 |
|
39 | 60 | 1. [Install Jupyter](https://jupyter.org/install) |
40 | | -2. Install the VariantVisualization.jl Julia package following the Command Line Tool installation instructions above. |
41 | | -3. Download the [VIVA Jupyter Notebook](https://github.com/compbiocore/VariantVisualization.jl/blob/master/VIVA.ipynb). |
42 | | -4. Follow the in-notebook instructions to generate your plots. |
| 61 | +2. Download the [VIVA Jupyter Notebook](https://github.com/compbiocore/VariantVisualization.jl/blob/master/VIVA.ipynb). |
| 62 | + |
| 63 | +Then, follow the in-notebook instructions to generate your plots. |
| 64 | + |
| 65 | +### Latest Features |
| 66 | + |
| 67 | +To stay up to date with cutting edge development features install VariantVisualization.jl from the Master branch. |
| 68 | + |
| 69 | +Using git from the command line: |
| 70 | + |
| 71 | +``` |
| 72 | +git clone https://github.com/compbiocore/VariantVisualization.jl |
| 73 | +``` |
| 74 | + |
| 75 | +or from the Julia REPL (useful if using the PowerShell and don't have git installed): |
| 76 | + |
| 77 | +```julia |
| 78 | +using Pkg |
| 79 | +Pkg.clone("https://github.com/compbiocore/VariantVisualization.jl") |
| 80 | +``` |
| 81 | + |
| 82 | +### For Developers |
| 83 | + |
| 84 | +VIVA Jupyter notebook and the VIVA the command line tool are built with functions contained in our VariantVisualization.jl package. |
| 85 | + |
| 86 | +Developers may contribute to these open source tools by using [functions contained within VariantVisualization.jl](https://github.com/compbiocore/VariantVisualization.jl/tree/master/src/) which are carefully documented with docstrings. |
| 87 | + |
| 88 | +We have included in-line comments within the code for the [VIVA command line tool](https://github.com/compbiocore/VariantVisualization.jl/tree/master/viva). |
| 89 | + |
| 90 | +The ***VIVA Jupyter notebook*** is powered by a [main function](https://github.com/compbiocore/VariantVisualization.jl/tree/master/src/new_notebook_utils.jl) which takes arguments defined by the user in the notebook. We welcome users to post in issues to request a new feature or bug fix. |
| 91 | + |
| 92 | +## Installation Features Under Development |
43 | 93 |
|
44 | 94 | ### Running VIVA with Docker or Docker Compose (Under Active Development) |
45 | 95 |
|
@@ -136,30 +186,3 @@ docker-compose run viva -f file.vcf --save_remotely arg3 arg4 ... |
136 | 186 | ``` |
137 | 187 |
|
138 | 188 | ----- |
139 | | - |
140 | | -### Latest Features |
141 | | - |
142 | | -To stay up to date with cutting edge development features install VariantVisualization.jl from the Master branch. |
143 | | - |
144 | | -Using git from the command line: |
145 | | - |
146 | | -``` |
147 | | -git clone https://github.com/compbiocore/VariantVisualization.jl |
148 | | -``` |
149 | | - |
150 | | -or from the Julia REPL (useful if using the PowerShell and don't have git installed): |
151 | | - |
152 | | -```julia |
153 | | -using Pkg |
154 | | -Pkg.clone("https://github.com/compbiocore/VariantVisualization.jl") |
155 | | -``` |
156 | | - |
157 | | -### *For Developers* |
158 | | - |
159 | | -VIVA Jupyter notebook and the VIVA the command line tool are built with functions contained in our VariantVisualization.jl package. |
160 | | - |
161 | | -Developers may contribute to these open source tools by using [functions contained within VariantVisualization.jl](https://github.com/compbiocore/VariantVisualization.jl/tree/master/src/) which are carefully documented with docstrings. |
162 | | - |
163 | | -We have included in-line comments within the code for the [VIVA command line tool](https://github.com/compbiocore/VariantVisualization.jl/tree/master/viva). |
164 | | - |
165 | | -The ***VIVA Jupyter notebook*** is powered by a [main function](https://github.com/compbiocore/VariantVisualization.jl/tree/master/src/new_notebook_utils.jl) which takes arguments defined by the user in the notebook. We welcome users to post in issues to request a new feature or bug fix. |
|
0 commit comments