You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Expected Time for Installation: Installation time depends on your network bandwi
54
54
55
55
### Running VIVA with Docker or Docker Compose
56
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.
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
58
59
59
To run VIVA from a Docker image, first [install Docker](https://docs.docker.com/install/).
60
60
@@ -78,6 +78,8 @@ cd project_x
78
78
79
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
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
+
81
83
##### Run the VIVA Command Line Tool from a Docker image:
82
84
83
85
*Note*: Remember, you must use the flag `--save_remotely` when running VIVA by using Docker.
Copy file name to clipboardExpand all lines: docs/src/index.md
+92Lines changed: 92 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,98 @@ Use the following steps to use the VIVA Jupyter Notebook utility:
80
80
81
81
6. Follow the step-by-step instructions within the notebook to generate your figures.
82
82
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.
##### 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
+
83
175
## Continue reading for:
84
176
85
177
*[Variant and Sample Selection](https://compbiocore.github.io/VariantVisualization.jl/stable/filtering_vcf/)
Copy file name to clipboardExpand all lines: docs/src/installation.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,15 +37,15 @@ To install Julia on Windows, you can follow the [platform specific instructions]
37
37
38
38
### Running VIVA with Docker or Docker Compose
39
39
40
-
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.
40
+
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.
41
41
42
42
To run VIVA from a Docker image, first [install Docker](https://docs.docker.com/install/).
43
43
44
44
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."
45
45
46
46
#### Using Docker
47
47
48
-
*Note* You must use the flag `--save_remotely` when running VIVA by using Docker.
48
+
*Note*: You must use the flag `--save_remotely` when running VIVA by using Docker.
49
49
50
50
Once Docker is running, you can run VIVA by running the Docker commands below in the Mac/Linux terminal or Windows PowerShell.
51
51
@@ -61,28 +61,30 @@ cd project_x
61
61
62
62
Make sure to add your project VCF files to that folder. That directory will be mapped to `/notebook/data` inside of the container.
63
63
64
+
When entering the filename of the VCF file and files to support filtering options, you should include `/data/...` in the path to your files.
65
+
64
66
##### Run the VIVA Command Line Tool from a Docker image:
65
67
66
-
*Note* Remember, you must use the flag `--save_remotely` when running VIVA by using Docker.
68
+
*Note*: Remember, you must use the flag `--save_remotely` when running VIVA by using Docker.
0 commit comments