Skip to content

Commit ec04ae5

Browse files
Merge pull request #69 from compbiocore/develop
docs(readme): update readme
2 parents 422f5a3 + 4f6d618 commit ec04ae5

File tree

2 files changed

+58
-20
lines changed

2 files changed

+58
-20
lines changed

README.md

Lines changed: 58 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,23 @@ macOS ( Sierra, High Sierra, and Mojave ), Windows (7 and 10), and Linux.
2525

2626
### Step 1: Install Julia
2727

28-
Download [Julia]("https://julialang.org/downloads/") and install the language following the [platform specific instructions](https://julialang.org/downloads/platform.html).
28+
1. Download [Julia]("https://julialang.org/downloads/") and install the language following the [platform specific instructions](https://julialang.org/downloads/platform.html).
29+
30+
2. Then, follow add Julia to the path variable to run VIVA.
31+
32+
To add Julia to the PATH on Windows 7 or Windows 10:
33+
34+
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)
35+
36+
To add Julia to the PATH on Mac run the following line in the Terminal:
37+
38+
> sudo ln -s /Applications/Julia-1.1.app/Contents/Resources/julia/bin/julia /usr/local/bin/julia
39+
40+
Be sure to replace "/Applications/Julia-1.1.app/..." to reflect the version of Julia you've downloaded.
41+
42+
43+
*Linux Note*: To run on remote compute clusters, you may need to load the opengl and julia modules.
2944

30-
Then, follow our [installation notes]("https://compbiocore.github.io/VariantVisualization.jl/latest/installation/") to add Julia to the path variable to run VIVA.
3145

3246
### Step 2: Install VariantVisualization.jl
3347

@@ -38,25 +52,35 @@ To install VariantVisualization.jl:
3852
1. Open the command line or PowerShell
3953
2. Run the following block of code
4054

41-
>`julia`
55+
```julia
56+
julia
57+
]add VarianatVisualization
58+
exit()
59+
```
60+
### Step 3: Run `viva`
4261

43-
>`]`
62+
#### Mac and Linux
4463

45-
>`add VariantVisualization`
64+
On Mac and Linux, open another terminal window, navigate to your project folder and run:
4665

47-
>`exit()`
66+
```shell
67+
viva -f filename.vcf -s <format> -o output/directory/
68+
```
4869

49-
### Step 3: Install the VIVA command line script
70+
#### Windows
5071

51-
Download the VIVA tool script and save it to a working directory for your analysis. Save your VCF file in the working directory.
72+
!!! Warning
73+
Viva will not work with Win32.
5274

53-
Copy and paste the following block of code into the command line or PowerShell:
75+
On windows, after installing VariantVisualization, open a new PowerShell and run:
76+
```shell
77+
viva -f filename.vcf -s <format> -o output/directory/
78+
```
5479

55-
>mkdir new_folder/
80+
You'll then be prompted to select an application to open the script. Select the Julia executable, that is normally located
81+
at `C:\Users\<username>\AppData\Local\Julia-<version>\bin\`.
5682

57-
>cd new_folder/
5883

59-
>curl -L https://raw.githubusercontent.com/compbiocore/VariantVisualization.jl/master/viva > viva
6084

6185
### Optional Step: Install VIVA Jupyter Notebook
6286

@@ -67,15 +91,32 @@ To install the VIVA Jupyer Notebook:
6791

6892
Then, follow the in-notebook instructions to generate your plots.
6993

70-
## Run VIVA
94+
### Latest Features
7195

72-
Navigate in the Terminal or PowerShell to the directory containing the viva script run the VIVA command.
96+
To stay up to date with cutting edge development features install VariantVisualization.jl from the Master branch.
7397

74-
>cd new_folder/
98+
From the Julia REPL:
7599

76-
>julia viva -f vcf.file arg1 arg2 arg3
100+
```shell
101+
julia
102+
]add VariantVisualization#master
103+
```
104+
105+
### For Developers
106+
107+
Install VariantVisualization in development mode:
108+
```shell
109+
julia
110+
]dev VariantVisualization
111+
```
112+
113+
VIVA Jupyter notebook and the VIVA the command line tool are built with functions contained in our VariantVisualization.jl package.
114+
115+
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.
116+
117+
We have included in-line comments within the code for the [VIVA command line tool](https://github.com/compbiocore/VariantVisualization.jl/tree/master/viva).
77118

78-
We provide test files to run [EXAMPLES](https://compbiocore.github.io/VariantVisualization.jl/latest/examples/) after installation.
119+
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.
79120

80121
## For Developers
81122

setup.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)