Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(readme): update readme #69

Merged
merged 2 commits into from
Jul 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 58 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,23 @@ macOS ( Sierra, High Sierra, and Mojave ), Windows (7 and 10), and Linux.

### Step 1: Install Julia

Download [Julia]("https://julialang.org/downloads/") and install the language following the [platform specific instructions](https://julialang.org/downloads/platform.html).
1. Download [Julia]("https://julialang.org/downloads/") and install the language following the [platform specific instructions](https://julialang.org/downloads/platform.html).

2. Then, follow add Julia to the path variable to run VIVA.

To add Julia to the PATH on Windows 7 or Windows 10:

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)

To add Julia to the PATH on Mac run the following line in the Terminal:

> sudo ln -s /Applications/Julia-1.1.app/Contents/Resources/julia/bin/julia /usr/local/bin/julia

Be sure to replace "/Applications/Julia-1.1.app/..." to reflect the version of Julia you've downloaded.


*Linux Note*: To run on remote compute clusters, you may need to load the opengl and julia modules.

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

### Step 2: Install VariantVisualization.jl

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

>`julia`
```julia
julia
]add VarianatVisualization
exit()
```
### Step 3: Run `viva`

>`]`
#### Mac and Linux

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

>`exit()`
```shell
viva -f filename.vcf -s <format> -o output/directory/
```

### Step 3: Install the VIVA command line script
#### Windows

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

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

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

>cd new_folder/

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

### Optional Step: Install VIVA Jupyter Notebook

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

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

## Run VIVA
### Latest Features

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

>cd new_folder/
From the Julia REPL:

>julia viva -f vcf.file arg1 arg2 arg3
```shell
julia
]add VariantVisualization#master
```

### For Developers

Install VariantVisualization in development mode:
```shell
julia
]dev VariantVisualization
```

VIVA Jupyter notebook and the VIVA the command line tool are built with functions contained in our VariantVisualization.jl package.

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.

We have included in-line comments within the code for the [VIVA command line tool](https://github.com/compbiocore/VariantVisualization.jl/tree/master/viva).

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

## For Developers

Expand Down
3 changes: 0 additions & 3 deletions setup.cfg

This file was deleted.