View source: R/prepare_annotations.R
prepare_annotations | R Documentation |
Separates the SNPeff annotations found in an annotated and rearranged VCF dataframe (arranged using arrange_data)
prepare_annotations(df)
df |
A rearranged and annotated VCF dataframe |
A dataframe containing each annotation on a separate column
# Example: Shows the separation of the ANN column based on | delimiter.
test <- data.frame( ANN = c("A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P"))
# The ANN column will be split based on the strings in `snpeff_info()` and
# an additional "error" column.
snpeff_info()
# Split the SNPeff annotations in "ANN" column and save to dataframe `df`
df <- prepare_annotations(df)
# The one "ANN" column is split into 16 columns
dim(test)
dim(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.