-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(AddExamplesSectionToDocs): added complete examples with embedded…
… html graphics for easy introduction to viva use
- Loading branch information
1 parent
85a640a
commit 2b44a0c
Showing
5 changed files
with
54 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,46 @@ | ||
# Examples | ||
|
||
To run examples, 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. | ||
|
||
Once Julia and VariantVisualization.jl are installed, you can run the following examples and should see the same outputs. | ||
|
||
## Default Options | ||
|
||
Running VIVA with no options produces heatmaps of genotype and read depth values for all samples and variant positions in the VCF file with default options. You can read about VIVA's default settings [here](https://compbiocore.github.io/VariantVisualization.jl/stable/#default-options) | ||
|
||
![Default Genotype Heatmap](assets/VIVA_logo.png) | ||
![Default Read Depth Heatmap](assets/VIVA_logo.png) | ||
``` | ||
julia VIVA -f test_4X_191.vcf -t Default_Options | ||
``` | ||
|
||
![Default Genotype Heatmap](assets/Genotype_Default_Options.html) | ||
![Default Read Depth Heatmap](assets/Read_Depth_Default_Options.html) | ||
|
||
## Generate All VIVA Plots While Grouping Samples by Metadata Traits | ||
## Grouping Samples by Metadata Traits and Generating all Four Plots | ||
|
||
Group samples by sequencing facility and generate heatmaps of genotype and read depth values as well as scatter plots of average read depth for both all selected samples and all selected variant positions. | ||
|
||
You can find grouping options [here]([options](https://compbiocore.github.io/VariantVisualization.jl/stable/filtering_vcf/#selecting-and-grouping-samples) to group samples by common traits.) | ||
|
||
![Grouped Genotype Heatmap](assets/VIVA_logo.png) | ||
![Grouped Read Depth Heatmap](assets/VIVA_logo.png) | ||
![Grouped Variant Average Read Depth Scatter Plot](assets/VIVA_logo.png) | ||
![Grouped Sample Average Read Depth Scatter Plot](assets/VIVA_logo.png) | ||
|
||
``` | ||
julia VIVA -f test_4X_191.vcf -t Grouped_by_Sequencing_Site -g sample_metadata_matrix.csv seq_site_1,seq_site_2 --avg_dp variant,sample | ||
``` | ||
|
||
![Grouped Genotype Heatmap](assets/Read_Depth_Grouped_by_Sequencing_Site.html) | ||
|
||
![Grouped Read Depth Heatmap](assets/Genotype_Grouped_by_Sequencing_Site.html) | ||
|
||
![Grouped Variant Average Read Depth Scatter Plot](assets/Average_Variant_Read_Depthtest_4X_191.vcf.html) | ||
|
||
![Grouped Sample Average Read Depth Scatter Plot](assets/Average_Sample_Read_Depth_test_4X_191.vcf.html) | ||
|
||
##Genomic Range and Samples Selection - Genotype and Read Depth Heatmaps with Variant Position Labels | ||
|
||
Generate heatmaps of genotype and read depth values of variants selected within a genomic range, in this case, chromosome 4, nucleotides 200000-500000, with y-axis variant position labels. | ||
|
||
``` | ||
julia VIVA -f test/test_files/test_4X_191.vcf -t Genomic_Range_Chr4:3076150-3076390 -r chr4:3076150-3076390 -y positions --select_samples select_samples_list.txt | ||
``` | ||
|
||
![Genomic Range Genotype Heatmap](assets/Genotype_Genomic_Range_Chr4/3076150-3076390.html) | ||
![Genomic Range Read Depth Heatmap](assets/Read_Depth_Genomic_Range_Chr4/3076150-3076390.html) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters