Learn R Programming

vivaldi (version 1.0.1)

shared_snv_table: shared_snv_table

Description

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

Usage

shared_snv_table(vardf)

Value

A table listing variants in order by how many samples they are found in

Arguments

vardf

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

Details

The `shared_snv_table()` function takes the variant dataframe and creates a new table, listing the variants in descending order of frequency how many samples they are found in. This function is meant to simplify further investigation of visual patterns in the previous plot.

Examples

Run this code
# Sample dataframe has 57 columns
dim(example_filtered_SNV_df)

# Simplify sample dataframe
df <- shared_snv_table(example_filtered_SNV_df)

# Dataframe created has 15 columns
df
dim(df)

Run the code above in your browser using DataLab