Skip to content

Commit b459be5

Browse files
Merge pull request #67 from compbiocore/develop
Fix compilation errors and rewrite docs
2 parents 5330ef3 + ed31a7f commit b459be5

File tree

8 files changed

+152
-107
lines changed

8 files changed

+152
-107
lines changed

Project.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
name = "VariantVisualization"
22
uuid = "7f8bf45c-0ad5-53b5-97e6-33c1305e0aa4"
33
authors = ["George Tollefson <gatollefson@gmail.com>"]
4-
version = "0.4.1"
4+
version = "0.4.2"
55

66
[deps]
7-
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
8-
Blink = "ad839575-38b3-5650-b840-f874b8c74a25"
97
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
8+
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
109
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
1110
GeneticVariation = "9bc6ac9d-e6b2-5f70-b0a8-242a01662520"
1211
ORCA = "47be7bcc-f1a6-5447-8b36-7eeeff7534fd"
1312
PlotlyJS = "f0f68f2c-4968-5e81-91da-67840de0976a"
14-
Rsvg = "c4c386cf-5103-5370-be45-f3a111cca3b8"
1513
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1614

1715
[compat]

README.md

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# VIVA: A VCF File Visualization Tool and VariantVisualization.jl
2-
## Visualization of Variants
2+
3+
## Visualization of Genomic Variants from VCF Files
34

45

56
| MacOS / Linux | Windows | License | Test Coverage | Documentation | Lifecycle |
@@ -16,69 +17,75 @@ VariantVisualization.jl is a package we built specifically to power the genetics
1617

1718
## Getting Started:
1819

19-
Note: Once you have set up VIVA, you can quickly run the command line tool [EXAMPLES](https://compbiocore.github.io/VariantVisualization.jl/latest/examples/) found in the documentation.
20-
2120
## Installation
2221

23-
Read the [installation documentation](https://compbiocore.github.io/VariantVisualization.jl/latest/installation/) for complete installation details.
24-
2522
### Supported Operating Systems:
2623

27-
macOS ( Sierra, High Sierra, and Mojave ), Windows, and Linux.
24+
macOS ( Sierra, High Sierra, and Mojave ), Windows (7 and 10), and Linux.
2825

29-
To use VIVA, you must download the Julia programming language version >=1.0 and install the VariantVisualization.jl Julia package as well as the VIVA script.
26+
### Step 1: Install Julia
3027

31-
Expected Time for Installation: Installation time depends on your network bandwidth, but should take less than 10 minutes for VIVA installation to install all dependency packages. Installing and using Julia packages for the first time takes longer than when using them in subsequent sessions.
28+
Download [Julia]("https://julialang.org/downloads/") and install the language following the [platform specific instructions](https://julialang.org/downloads/platform.html).
3229

33-
*Note*: When installing Julia and running VIVA on Windows, you will need to add Julia to the Windows path variable. This takes ~ 1 minute following the instructions found [here](https://compbiocore.github.io/VariantVisualization.jl/latest/installation/)
30+
Then, follow our [installation notes]("https://compbiocore.github.io/VariantVisualization.jl/latest/installation/") to add Julia to the path variable to run VIVA.
3431

35-
### Command Line Tool
32+
### Step 2: Install VariantVisualization.jl
3633

37-
1. Add VariantVisualization.jl using Pkg in the Julia REPL
34+
To run the VIVA command line tool and VIVA Jupyter Notebook, you'll need to install our VariantVisualization.jl Julia package which powers VIVA.
3835

39-
* Open the Julia REPL by typing `julia` into the command line
40-
* Enter the Pkg manager by entering `]` into the REPL
41-
* Enter `add VariantVisualization` in the Pkg manager. This will install all of VIVA's dependencies.
36+
To install VariantVisualization.jl:
4237

43-
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.
38+
1. Open the command line or PowerShell
39+
2. Run the following block of code
4440

45-
3. Navigate to your working directory and follow the [VIVA manual](https://compbiocore.github.io/VariantVisualization.jl/stable/) to generate your plots.
41+
>`julia`
4642
47-
### Jupyter Notebook
43+
>`]`
4844
49-
1. [Install Jupyter](https://jupyter.org/install)
50-
2. Install the VariantVisualization.jl Julia package following the Command Line Tool installation instructions above.
51-
3. Download the [VIVA Jupyter Notebook](https://github.com/compbiocore/VariantVisualization.jl/blob/master/VIVA.ipynb).
52-
4. Open the VIVA Jupyter Notebook following the instructions in the [manual](https://compbiocore.github.io/VariantVisualization.jl/latest/).
53-
4. Follow the in-notebook instructions to generate your plots.
45+
>`add VariantVisualization`
46+
47+
>`exit()`
48+
49+
### Step 3: Install the VIVA command line script
50+
51+
Download the VIVA tool script and save it to a working directory for your analysis. Save your VCF file in the working directory.
5452

55-
### Latest Features
53+
Copy and paste the following block of code into the command line or PowerShell:
54+
55+
>mkdir new_folder/
56+
57+
>cd new_folder/
58+
59+
>curl -L https://raw.githubusercontent.com/compbiocore/VariantVisualization.jl/master/viva > viva
60+
61+
### Optional Step: Install VIVA Jupyter Notebook
62+
63+
To install the VIVA Jupyer Notebook:
64+
65+
1. [Install Jupyter](https://jupyter.org/install)
66+
2. Download the [VIVA Jupyter Notebook](https://github.com/compbiocore/VariantVisualization.jl/blob/master/VIVA.ipynb).
5667

57-
To stay up to date with cutting edge development features install VariantVisualization.jl from the Master branch.
68+
Then, follow the in-notebook instructions to generate your plots.
5869

59-
Using git from the command line:
70+
## Run VIVA
6071

61-
```
62-
git clone https://github.com/compbiocore/VariantVisualization.jl
63-
```
72+
Navigate in the Terminal or PowerShell to the directory containing the viva script run the VIVA command.
6473

65-
or from the Julia REPL (useful if using the PowerShell and don't have git installed):
74+
>cd new_folder/
6675
67-
```julia
68-
using Pkg
69-
Pkg.clone("https://github.com/compbiocore/VariantVisualization.jl")
70-
```
76+
>julia viva -f vcf.file arg1 arg2 arg3
7177
78+
We provide test files to run [EXAMPLES](https://compbiocore.github.io/VariantVisualization.jl/latest/examples/) after installation.
7279

73-
### For Developers
80+
## For Developers
7481

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

77-
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.
84+
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 documented with docstrings.
7885

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

81-
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.
88+
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.
8289

8390

8491
## Contributing and Questions

docs/src/examples.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,27 @@
22

33
To run examples:
44

5-
1. Install Julia and the VariantVisualization.jl package
6-
2. Download the five test files found [here](https://github.com/compbiocore/VariantVisualization.jl/tree/master/test/test_files) and put them into a working directory with the viva script.
7-
3. Open the command line (Terminal or Powershell), copy the provided commands into the command line prompt, and press enter.
8-
4. Your first viva run will take longer than usual (several minutes) because of the way Julia compiles packages. All subsequent runs will be much faster. Each example should take 30-50 seconds to run and you should see the same outputs as those below each demo.
5+
One you've installed Julia, VariantVisualization.jl package, and the VIVA script, you can run these examples.
96

10-
We encourage you to also run these examples without the flag `-s png` to save and view interactive HTML graphics with cursor hovertext, zooming, panning, and screen capture features. View HTML graphics in your browser by opening the HTML file.
7+
To run the examples:
8+
9+
1. Download the four test files and save them in a working directory with the viva script by copying and pasting the following block of code into the command line.
10+
11+
>cd new\_folder/
12+
13+
>curl -L https://raw.githubusercontent.com/compbiocore/VariantVisualization.jl/master/test/test\_files/positions\_list.csv > positions\_list.csv
14+
15+
>curl -L https://raw.githubusercontent.com/compbiocore/VariantVisualization.jl/master/test/test\_files/sample\_metadata\_matrix.csv > sample\_metadata\_matrix.csv
16+
17+
>curl -L https://raw.githubusercontent.com/compbiocore/VariantVisualization.jl/master/test/test\_files/select\_samples\_list.txt > select\_samples\_list.txt
18+
19+
>curl -L https://raw.githubusercontent.com/compbiocore/VariantVisualization.jl/master/test/test\_files/test\_4X\_191.vcf > test\_4X\_191.vcf
20+
21+
2. Copy the example commands found below from the working directory containing the VIVA script, VCF file, and four test files.
22+
23+
3. Your first viva run may take a little longer than usual (several minutes) because of the way Julia compiles packages. All subsequent runs will be much faster. Each example should take 30-50 seconds to run and you should see the same outputs as those below each demo.
24+
25+
*Note:* We encourage you to also run these examples without the flag `-s png` to save and view interactive HTML graphics with cursor hovertext, zooming, panning, and screen capture features. View HTML graphics in your browser by opening the HTML file.
1126

1227
## Default Options
1328

docs/src/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
![VIVA Logo](assets/VIVA_logo.png)
22

3+
Read the [VIVA Manual](https://compbiocore.github.io/VariantVisualization.jl/latest/installation/) here.
4+
35
# Getting Started
46

57
# *VIVA Command Line Tool and Jupyter Notebook*

docs/src/installation.md

Lines changed: 74 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,95 @@
11
#Installation
22

3-
### Install Julia v1.1.0
4-
Download [Julia]("https://julialang.org/downloads/")
5-
63
### Supported Operating Systems:
74

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.
136

14-
Windows 10, Windows 7.
7+
### Step 1: Install Julia
158

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).
1710

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.
1912

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

2215
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)
2316

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:
2549

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/
2751
28-
### Command Line Tool
52+
>cd new_folder/
2953
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
3655
37-
### Jupyter Notebook
56+
### Optional Step: Install VIVA Jupyter Notebook
57+
58+
To install the VIVA Jupyer Notebook:
3859

3960
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
4393

4494
### Running VIVA with Docker or Docker Compose (Under Active Development)
4595

@@ -136,30 +186,3 @@ docker-compose run viva -f file.vcf --save_remotely arg3 arg4 ...
136186
```
137187

138188
-----
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.

src/VariantVisualization.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ module VariantVisualization
33
using DataFrames
44
using PlotlyJS
55
using ORCA
6-
using Rsvg
7-
using Blink
86
using GeneticVariation
97
using ArgParse
108
using DelimitedFiles

test/.DS_Store

0 Bytes
Binary file not shown.

viva

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,28 @@
33
println()
44
println("Welcome to VIVA.")
55
println()
6-
println("Loading packages:")
6+
println("Loading dependency packages:")
77
println()
88

9-
println("1/5 ArgParse")
10-
using ArgParse
9+
#println("1/5 ArgParse")
10+
#import ArgParse
1111

12-
println("2/5 VariantVisualization")
13-
using Pkg #remove after VariantVisualization is deployed
14-
Pkg.activate(@__DIR__) #remove after VariantVisualization is deployed
12+
#using Pkg #remove after VariantVisualization is deployed
13+
#Pkg.activate(@__DIR__) #remove after VariantVisualization is deployed
1514
using VariantVisualization
15+
println("...")
1616

17-
println("3/5 PlotlyJS")
17+
println("1/4 PlotlyJS")
1818
using PlotlyJS
1919

20-
println("4/5 GeneticVariation")
20+
println("2/4 GeneticVariation")
2121
using GeneticVariation
2222

23-
println("5/5 DelimitedFiles")
23+
println("3/4 DelimitedFiles")
2424
using DelimitedFiles
2525

26+
println("4/4 VariantVisualization")
27+
2628
println()
2729
println("Finished loading packages!")
2830
println()

0 commit comments

Comments
 (0)