Learn R Programming

vivaldi (version 1.0.1)

shared_snv_plot: shared_snv_plot

Description

Reads in a dataframe that has been arranged (arrange_data) and filtered (filter_variants) and outputs plots

Usage

shared_snv_plot(vardf, samples = unique(DF_filt$sample))

Value

A plot showing the location of variants and the number of samples that contain each variant

Arguments

vardf

A rearranged (arrange_data) and filtered (filtered_variants) vcf dataframe

samples

A vector of samples to be compared (default:all samples in DF_filt)

Examples

Run this code
samples = c("a_1_fb", "a_1_iv", "a_2_fb", "a_2_iv", "a_3_fb", "a_3_iv", "b_1_fb", "b_1_iv")
shared_snv_plot(example_filtered_SNV_df, samples)

Run the code above in your browser using DataLab