Skip to content

Commit b839417

Browse files
authored
Merge branch 'master' into develop
2 parents 85ba37b + d13e233 commit b839417

File tree

3 files changed

+34
-43
lines changed

3 files changed

+34
-43
lines changed

docs/src/filtering_vcf.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#Variant Record and Sample Selection
1+
# Filtering your VCF file: Variant Record and Sample Selection
22

3-
##General Note:s: Extracting and Reshaping VCF Data
3+
## General Notes: Extracting and Reshaping VCF Data
44

55
VIVA supports flexible filters for selecting variant records for visualization.
66

77
Additionally, the tool supports selecting and grouping samples by common traits for visualization.
88

99
Grouping samples is particularly useful for exploring phenotypic and genotypic associations, displaying differential distribution of variants between groups of samples, and identifying batch effect on coverage between groups of samples in variant analysis experiments.
1010

11-
##Choose a VCF file to Visualize *REQUIRED*
11+
## Choose a VCF file to Visualize *REQUIRED*
1212

1313
Specify filename of VCF file.
1414

@@ -19,16 +19,16 @@ Specify filename of VCF file.
1919
*Note*: This is the *only required argument* for VIVA. If you run with none of the other options, default options will be used. These default options are described in detail below.
2020

2121
```
22-
julia viva -f example.vcf [OPTIONS]
22+
viva -f example.vcf [OPTIONS]
2323
```
2424

25-
##Selecting Variant Records
25+
## Selecting Variant Records
2626

2727
VIVA offers three filters for selecting variant records to visualize from VCF files.
2828

2929
It is recommended to use one or a combination of these filters to reduce the number of variant records extracted from the VCF for plotting. This is recommended for reasons related to technical limitations and practical visual interpretation. The number of variant records able to be plotted is limited by both the user's available computing resources as well as the number of pixels in their display for displaying data points. While it is possible to visualize many thousands of variant records at one time with VIVA, **we recommend visualizing fewer than 2000 variants** so that all data points can be displayed that your computing resources are not overburdened. However, VIVA is capable of extracting and plotting hundreds of thousands of data points from VCF files.
3030

31-
###Genomic range
31+
### Genomic range
3232

3333
Select rows within a given genomic range.
3434

@@ -39,10 +39,10 @@ Select rows within a given genomic range.
3939
*Note*: To visualize genomic ranges within multiple chromosomes, you may create a batch script to run VIVA multiple times using different genomic ranges.
4040

4141
```
42-
julia viva -f example.vcf -r chr1:20000-30000000
42+
viva -f example.vcf -r chr1:20000-30000000
4343
```
4444

45-
###Variant list
45+
### Variant list
4646

4747
Select variants matching list of chromosomal positions.
4848

@@ -51,10 +51,10 @@ Select variants matching list of chromosomal positions.
5151
*arguments*: Provide filename of text file formatted with two columns in .csv format as an argument. There should be a header row with "chr" and "start" in row 1 of column 1 and 2 respectively. Column 1 should contain chromosome number in the format "chr1" or "1" and should match the syntax of the VCF file (that is, if the VCF file lists chromosome numbers in the form "chrX", use "chrX" in your positions list, not "X") You can find an example of this file [here]("[here]("https://github.com/compbiocore/VariantVisualization.jl/tree/master/test/test_files/positions_list.csv")")
5252

5353
```
54-
julia viva -f example.vcf -l "example_positions_list.txt"
54+
viva -f example.vcf -l "example_positions_list.txt"
5555
```
5656

57-
###Pass filter
57+
### Pass filter
5858

5959
Select rows that passed filters originally set during variant calling and VCF file generation. Selects records with "PASS" in the FILTER column of the VCF file. This filter alone is often not stringent enough to reduce the number of variants for plotting and visual interpretation. For analyzing large VCF files with many "passed" filter records, use genomic range,
6060

@@ -63,12 +63,12 @@ Select rows that passed filters originally set during variant calling and VCF fi
6363
*arguments*: This flag is a positional argument and does not take options.
6464

6565
```
66-
julia viva -f example.vcf -p
66+
viva -f example.vcf -p
6767
```
6868

69-
##Selecting and Grouping Samples
69+
## Selecting and Grouping Samples
7070

71-
###Group samples by sample metadata traits
71+
### Group samples by sample metadata traits
7272

7373
Group sample columns using your sample metadata and visualize metadata attributes in a colorbar above heatmap visualizations.
7474

@@ -94,10 +94,10 @@ Metadata traits are stored as rownames in the first column of the table and shou
9494
This matrix should be saved as a comma delimited .csv file. Microsoft Excel is commonly used for this purpose, but sometimes creates extra delimiter characters in the output file that produce an error in VIVA. You can check to make sure the .csv file was saved properly by opening the file with a text editor such as BBEdit to inspect for and delete empty values or extra delimiter characters at the end of each row.
9595

9696
```
97-
julia viva -f example.vcf -g sample_metadata_matrix.csv case,control
97+
viva -f example.vcf -g sample_metadata_matrix.csv case,control
9898
```
9999

100-
###Select samples to include in visualization
100+
### Select samples to include in visualization
101101

102102
Select specific samples to be extracted from the VCF for visualization.
103103

@@ -108,5 +108,5 @@ Select specific samples to be extracted from the VCF for visualization.
108108
*Note*: To use the sample selection feature in combination with the sample grouping feature, the sample metadata matrix must only contain the sample ids to be selected.
109109

110110
```
111-
julia viva -f example.vcf --select_samples select_samples_list.txt
111+
viva -f example.vcf --select_samples select_samples_list.txt
112112
```

docs/src/index.md

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

3-
Read the [VIVA Manual](https://compbiocore.github.io/VariantVisualization.jl/latest/installation/) here.
3+
44

55
# Getting Started
66

@@ -18,6 +18,9 @@ VIVA is available as a Jupyter Notebook utility [here](https://github.com/compbi
1818

1919
Formatting requirements for VIVA's input files are described in the Manual and clearly named examples of all user-generated input files can be found in the `/test/test_files` directory of the `VariantVisualization.jl` repository.
2020

21+
## Installation
22+
For detailed installation instructions, read the [VIVA Manual](https://compbiocore.github.io/VariantVisualization.jl/latest/installation/) here.
23+
2124
## General Use
2225

2326
To use VIVA, we recommend creating a new directory for storing your VCF file to analyze where output files will be saved. Alternatively, users may also provide paths to the VCF file and to preferred output file locations as command line arguments.
@@ -26,29 +29,29 @@ To use VIVA, we recommend creating a new directory for storing your VCF file to
2629
VIVA's general command line argument structure is as follows:
2730

2831
```
29-
julia viva -f file.vcf [OPTIONS]
32+
viva -f file.vcf [OPTIONS]
3033
```
3134

3235
From the command line or powershell, run the VIVA command line tool script which takes arguments from the command line and parses them with ArgParse.jl.
3336

3437
Example:
3538

3639
```
37-
julia viva -f example.vcf -r chr1:20000-30000000 -s pdf -m genotype,read_depth --avg_dp samples
40+
viva -f example.vcf -r chr1:20000-30000000 -s pdf -m genotype,read_depth --avg_dp samples
3841
```
3942

4043
To display a complete set of help instructions while using the tool, run VIVA with the help flag (`--help`, `-h`).
4144

4245
```
43-
julia viva -h
46+
viva -h
4447
```
4548

4649
### Default Options:
4750

4851
By running VIVA with only a VCF filename:
4952

5053
```
51-
julia viva -f file.vcf
54+
viva -f file.vcf
5255
```
5356

5457
Default options will be used:

docs/src/installation.md

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To install VariantVisualization.jl:
3535

3636
```julia
3737
julia
38-
]add VarianatVisualization
38+
]add VariantVisualization
3939
exit()
4040
```
4141
### Step 3: Run `viva`
@@ -99,19 +99,16 @@ We have included in-line comments within the code for the [VIVA command line too
9999

100100
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.
101101

102-
## Installation Features Under Development
103102

104-
### Running VIVA with Docker or Docker Compose (Under Active Development)
103+
### Running VIVA with Docker or Docker Compose
105104

106-
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.
107-
108-
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.
105+
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.
109106

110107
To run VIVA from a Docker image, first [install Docker](https://docs.docker.com/install/).
111108

112109
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."
113110

114-
#### Using Docker
111+
### Using Docker
115112

116113
*Note*: You must use the flag `--save_remotely` when running VIVA by using Docker.
117114

@@ -130,31 +127,22 @@ cd project_x
130127
Make sure to add your project VCF files to that folder.
131128

132129

133-
##### Run the VIVA Command Line Tool from a Docker image:
130+
#### Run the VIVA Command Line Tool from a Docker image:
134131

135132
*Note*: Remember, you must use the flag `--save_remotely` when running VIVA by using Docker.
136133

137-
- On Mac or Linux:
134+
- Example run on Mac or Linux:
138135
```shell
139136
docker run -it --rm -v "$PWD":/data compbiocore/viva-cli viva --save_remotely -f file.vcf -s pdf -o output
140137
```
141138

142-
- Example run:
139+
- Example run on Windows:
143140
```shell
144-
docker run -it --rm -v "$PWD":/data compbiocore/viva-cli viva --save_remotely -f file.vcf -s pdf -o output
141+
docker run -it --rm -v ${pwd}:/data compbiocore/viva-cli viva --save_remotely -f file.vcf -s pdf -o output
145142
```
146143

147-
- On Windows:
148-
```shell
149-
docker run -it --rm -v "${pwd}":/data compbiocore/viva-cli viva --save_remotely -f file.vcf -s pdf -o output
150-
```
151-
152-
- Example run:
153-
```shell
154-
docker run -it --rm -v "${pwd}":/data compbiocore/viva-cli viva --save_remotely -f file.vcf -s pdf -o output
155-
```
156144

157-
##### Run the VIVA Jupyter Notebook from a Docker image:
145+
#### Run the VIVA Jupyter Notebook from a Docker image:
158146

159147
Copy and run the following line from the terminal or Windows PowerShell:
160148

@@ -169,7 +157,7 @@ Go to `http://127.0.0.1:8888/?token=<enter token here>`
169157

170158
- On Windows:
171159
```shell
172-
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v "${pwd}":/home/jovyan/notebook/data compbiocore/viva-notebook:v0.3.9
160+
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v ${pwd}:/home/jovyan/notebook/data compbiocore/viva-notebook:v0.3.9
173161
```
174162

175163
Go to the following url in your internet browser. You'll receive a token to enter into the url.

0 commit comments

Comments
 (0)