af_distribution {vivaldi}R Documentation

af_distribution

Description

Plots distribution of all minor variants

Usage

af_distribution(df)

Arguments

df

A dataframe that has been arranged (arrange_data) and filtered (filter_variants)

Value

plots with the distribution of all minor variants

Examples

# Example 1:
df <- data.frame(sample = c("m1", "m2", "m1", "m2", "m1"),
                 CHROM = c("PB1", "PB1", "PB2", "PB2", "NP"),
                 POS = c(234, 234, 240, 240, 254),
                 REF = c("G", "G", "A", "A", "C"),
                 ALT = c("A", "A", "G", "G", "T"),
                 minorfreq = c(0.010, 0.022, 0.043, 0.055, 0.011),
                 majorfreq = c(0.990, 0.978, 0.957, 0.945, 0.989),
                 minorcount = c(7, 15, 26, 32, 7),
                 majorcount = c(709, 661, 574, 547, 610),
                 gt_DP = c(716, 676, 600, 579, 617)
)

af_distribution(df)

# Example 2:
af_distribution(example_filtered_SNV_df)


[Package vivaldi version 1.0.1 Index]