mutations_from_vcf {MutationalPatterns} | R Documentation |
A function to extract base substitutions of each position in vcf
mutations_from_vcf(vcf)
vcf |
A CollapsedVCF object |
Character vector with base substitutions
## See the 'read_vcfs_as_granges()' example for how we obtained the ## following data: vcfs <- readRDS(system.file("states/read_vcfs_as_granges_output.rds", package = "MutationalPatterns" )) muts <- mutations_from_vcf(vcfs[[1]])