View source: R/shared_snv_table.R
shared_snv_table | R Documentation |
Reads in a dataframe that has been arranged (arrange_data) and filtered (filter_variants) and outputs a table
shared_snv_table(vardf)
vardf |
A rearranged (arrange_data) and filtered (filtered_variants) vcf dataframe |
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.
A table listing variants in order by how many samples they are found in
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.