Description Usage Arguments Value Author(s) Examples
View source: R/get_variant_allele_fraction.R
A method to parse the FORMAT string and extract the variant allele fraction (FA field).
1 | get_variant_allele_fraction(data=NULL, delimiter=':', vaf_index=15)
|
data |
an ANNOVAR dataframe (required) |
delimiter |
field delimiter used in the FORMAT string (default: :) |
vaf_index |
index within the FORMAT string for the variant allele fraction (default: 15) |
Returns the variant allele fraction for the given variant.
Richard J. de Borja
1 2 | format_string = '1/1:41:8:8:0:8:100:7.77E-5:0:50:0:0:6:2:1.0000'
print(get_variant_allele_fraction(data=format_string))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.