Skip to content

Commit 5330ef3

Browse files
Merge pull request #66 from compbiocore/develop
Include instructions on how to add Julia bins to windows path variable
2 parents f31b054 + 0db369c commit 5330ef3

File tree

5 files changed

+11
-187
lines changed

5 files changed

+11
-187
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "VariantVisualization"
22
uuid = "7f8bf45c-0ad5-53b5-97e6-33c1305e0aa4"
33
authors = ["George Tollefson <[email protected]>"]
4-
version = "0.4.0"
4+
version = "0.4.1"
55

66
[deps]
77
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"

README.md

Lines changed: 1 addition & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To use VIVA, you must download the Julia programming language version >=1.0 and
3030

3131
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.
3232

33-
*Note*: When installing VariantVisualization.jl and running VIVA remote compute clusters, you may need to load the OpenGl module in addition to loading the Julia module.
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/)
3434

3535
### Command Line Tool
3636

@@ -52,98 +52,6 @@ Expected Time for Installation: Installation time depends on your network bandwi
5252
4. Open the VIVA Jupyter Notebook following the instructions in the [manual](https://compbiocore.github.io/VariantVisualization.jl/latest/).
5353
4. Follow the in-notebook instructions to generate your plots.
5454

55-
### Running VIVA with Docker or Docker Compose
56-
57-
Alternatively, you can run VIVA using the Docker images we've provided if you don't want to install Julia and the VariantVisualization.jl Julia package. You may only save images to HTML format using the Docker, for now, due to technical limitations of dependency packages. We've actively developing a feature to save to all formats using Docker.
58-
59-
To run VIVA from a Docker image, first [install Docker](https://docs.docker.com/install/).
60-
61-
Then double-click the Docker.app in the Applications folder to start Docker. You will see a whale icon in the top status bar to indicate that Docker is running and accessible from the terminal. You can quit Docker once you are finished using VIVA by clicking the Docker whale icon in the top status bar and clicking "Quit Docker Desktop."
62-
63-
#### Using Docker
64-
65-
*Note*: You must use the flag `--save_remotely` when running VIVA by using Docker.
66-
67-
Once Docker is running, you can run VIVA by running the Docker commands below in the Mac/Linux terminal or Windows PowerShell.
68-
69-
We provide two images, one with a Jupyter Notebook and one with a command line script for VIVA. You can run VIVA in a single command using these images. The command consists of calls to run the Docker image followed by the usual VIVA options.
70-
71-
To run the images, follow these steps:
72-
73-
Create a project folder and navigate to it:
74-
```shell
75-
mkdir project_x
76-
cd project_x
77-
```
78-
79-
Make sure to add your project VCF files to that folder. That directory will be mapped to `/notebook/data` inside of the container.
80-
81-
When entering the filename of the VCF file and files to support filtering options, you should include `/data/...` in the path to your files.
82-
83-
##### Run the VIVA Command Line Tool from a Docker image:
84-
85-
*Note*: Remember, you must use the flag `--save_remotely` when running VIVA by using Docker.
86-
87-
- On Mac or Linux:
88-
```shell
89-
docker run -it --rm -v "$PWD":/data compbiocore/viva-cli --save_remotely arg1 arg2 arg3
90-
```
91-
92-
- Example run:
93-
```shell
94-
docker run -it --rm -v "$PWD":/data compbiocore/viva-cli --save_remotely -f file.vcf -p
95-
```
96-
97-
- On Windows:
98-
```shell
99-
docker run -it --rm -v "${pwd}":/data compbiocore/viva-cli --save_remotely arg1 arg2 arg3
100-
```
101-
102-
- Example run:
103-
```shell
104-
docker run -it --rm -v "${pwd}":/data compbiocore/viva-cli --save_remotely -f file.vcf -p
105-
```
106-
107-
##### Run the VIVA Jupyter Notebook from a Docker image:
108-
109-
Copy and run the following line from the terminal or Windows PowerShell:
110-
111-
- On Mac or Linux:
112-
```shell
113-
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v "$PWD":/home/jovyan/notebook/data compbiocore/viva-notebook
114-
```
115-
116-
Go to the following url in your internet browser. You'll receive a token to enter into the url.
117-
118-
Go to `http://0.0.0.0:8888/?token=<enter token here>`
119-
120-
- On Windows:
121-
```shell
122-
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v "${pwd}":/home/jovyan/notebook/data compbiocore/viva-notebook
123-
```
124-
125-
Go to the following url in your internet browser. You'll receive a token to enter into the url.
126-
127-
Go to `http://0.0.0.0:8888/?token=<enter token here>`
128-
129-
[Click here](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html) for more information about Jupyter Docker Images.
130-
131-
#### Using Docker Compose
132-
133-
To run the images with Docker Compose, copy the [`docker-compose.yml`](https://github.com/compbiocore/viva-docker/blob/master/docker-compose.yml) file to a local directory. From that same directory, run the command as it appears below.
134-
135-
*Note*: Your current directory will mount to `/notebook/data` in the notebook image and to `/data` in the CLI image.
136-
137-
- Notebook
138-
```shell
139-
docker-compose up viva-notebook
140-
```
141-
142-
- Command Line Tool
143-
```shell
144-
docker-compose run viva -f file.vcf --save_remotely arg3 arg4 ...
145-
```
146-
14755
### Latest Features
14856

14957
To stay up to date with cutting edge development features install VariantVisualization.jl from the Master branch.

docs/src/index.md

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -80,98 +80,6 @@ Use the following steps to use the VIVA Jupyter Notebook utility:
8080

8181
6. Follow the step-by-step instructions within the notebook to generate your figures.
8282

83-
### Running VIVA with Docker or Docker Compose
84-
85-
Alternatively, you can run VIVA using the Docker images we've provided if you don't want to install Julia and the VariantVisualization.jl Julia package. You may only save images to HTML format using the Docker, for now, due to technical limitations of dependency packages. We've actively developing a feature to save to all formats using Docker.
86-
87-
To run VIVA from a Docker image, first [install Docker](https://docs.docker.com/install/).
88-
89-
Then double-click the Docker.app in the Applications folder to start Docker. You will see a whale icon in the top status bar to indicate that Docker is running and accessible from the terminal. You can quit Docker once you are finished using VIVA by clicking the Docker whale icon in the top status bar and clicking "Quit Docker Desktop."
90-
91-
#### Using Docker
92-
93-
*Note*: You must use the flag `--save_remotely` when running VIVA by using Docker.
94-
95-
Once Docker is running, you can run VIVA by running the Docker commands below in the Mac/Linux terminal or Windows PowerShell.
96-
97-
We provide two images, one with a Jupyter Notebook and one with a command line script for VIVA. You can run VIVA in a single command using these images. The command consists of calls to run the Docker image followed by the usual VIVA options.
98-
99-
To run the images, follow these steps:
100-
101-
Create a project folder and navigate to it:
102-
```shell
103-
mkdir project_x
104-
cd project_x
105-
```
106-
107-
Make sure to add your project VCF files to that folder. That directory will be mapped to `/notebook/data` inside of the container.
108-
109-
When entering the filename of the VCF file and files to support filtering options, you should include `/data/...` in the path to your files.
110-
111-
##### Run the VIVA Command Line Tool from a Docker image:
112-
113-
*Note*: Remember, you must use the flag `--save_remotely` when running VIVA by using Docker.
114-
115-
- On Mac or Linux:
116-
```shell
117-
docker run -it --rm -v "$PWD":/data compbiocore/viva-cli:v0.3.8 --save_remotely arg1 arg2 arg3
118-
```
119-
120-
- Example run:
121-
```shell
122-
docker run -it --rm -v "$PWD":/data compbiocore/viva-cli:v0.3.8 --save_remotely -f file.vcf -p
123-
```
124-
125-
- On Windows:
126-
```shell
127-
docker run -it --rm -v "${pwd}":/data compbiocore/viva-cli:v0.3.8 --save_remotely arg1 arg2 arg3
128-
```
129-
130-
- Example run:
131-
```shell
132-
docker run -it --rm -v "${pwd}":/data compbiocore/viva-cli:v0.3.8 --save_remotely -f file.vcf -p
133-
```
134-
135-
##### Run the VIVA Jupyter Notebook from a Docker image:
136-
137-
Copy and run the following line from the terminal or Windows PowerShell:
138-
139-
- On Mac or Linux:
140-
```shell
141-
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v "$PWD":/home/jovyan/notebook/data compbiocore/viva-notebook
142-
```
143-
144-
Go to the following url in your internet browser. You'll receive a token to enter into the url.
145-
146-
Go to `http://0.0.0.0:8888/?token=<enter token here>`
147-
148-
- On Windows:
149-
```shell
150-
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v "${pwd}":/home/jovyan/notebook/data compbiocore/viva-notebook
151-
```
152-
153-
Go to the following url in your internet browser. You'll receive a token to enter into the url.
154-
155-
Go to `http://0.0.0.0:8888/?token=<enter token here>`
156-
157-
[Click here](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html) for more information about Jupyter Docker Images.
158-
159-
#### Using Docker Compose
160-
161-
To run the images with Docker Compose, install Docker following the steps above and then install [Docker Compose[(https://docs.docker.com/compose/). Then copy the [docker-compose.yml](https://github.com/compbiocore/viva-docker/blob/master/docker-compose.yml) file to a local directory. From that same directory, run the command as it appears below.
162-
163-
*Note*: Your current directory will mount to `/notebook/data` in the notebook image and to `/data` in the CLI image.
164-
165-
- Notebook
166-
```shell
167-
docker-compose up viva-notebook
168-
```
169-
170-
- Command Line Tool
171-
```shell
172-
docker-compose run viva -f file.vcf --save_remotely arg3 arg4 ...
173-
```
174-
17583
## Continue reading for:
17684

17785
* [Variant and Sample Selection](https://compbiocore.github.io/VariantVisualization.jl/stable/filtering_vcf/)

docs/src/installation.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ Windows 10, Windows 7.
1515

1616
To install Julia on Windows, you can follow the [platform specific instructions](https://julialang.org/downloads/platform.html).
1717

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)
19+
20+
To add Julia to the PATH on Windows 7 or Windows 10:
21+
22+
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+
1824
#### Linux
1925

2026
*Note*: To run on remote compute clusters, you may need to load opengl module along with julia/1.1.0.
@@ -35,7 +41,9 @@ To install Julia on Windows, you can follow the [platform specific instructions]
3541
3. Download the [VIVA Jupyter Notebook](https://github.com/compbiocore/VariantVisualization.jl/blob/master/VIVA.ipynb).
3642
4. Follow the in-notebook instructions to generate your plots.
3743

38-
### Running VIVA with Docker or Docker Compose
44+
### Running VIVA with Docker or Docker Compose (Under Active Development)
45+
46+
Soon, you will be able to run VIVA using Docker images. This is not yet a supported feature. The instructions below will be helpful once this is supported.
3947

4048
Alternatively, you can run VIVA using the Docker images we've provided if you don't want to install Julia and the VariantVisualization.jl Julia package. You may only save images to HTML format using the Docker, for now, due to technical limitations of dependency packages. We've actively developing a feature to save to all formats using Docker.
4149

test/.DS_Store

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)