Description Usage Arguments Details Value Author(s) Examples
View source: R/mutation.spectrum.R
These functions help in analyses of mutation spectra
1 | mutationSpectrum( variantCalls, tallyFile, study, context = 1 )
|
variantCalls |
A |
tallyFile |
filename of a tally file matching the variant calls |
study |
the study id used in the tally file |
context |
An integer specifying the size of the context that should be considered (i.e. the length of the prefix and suffix of the variant call) |
This function takes a set of variant calls (SNVs/Deletions) and a tallyFile as well
as a context size and tabulates the number of observed mutations
stratified by type (refAllele->altAllele) and sequence context
(i.e. the prefix and suffix of size context
around the variant
position in the genome)
bases
serves to map character representations to numeric
encoding of bases
variantCalls
is an example dataset of variant calls created by
running callVariantsPaired
on the example.tally.hfs5
file.
A table listing the counts of mutations stratified by allele, sequence context and sample.
Paul Pyl
1 2 3 4 | library(h5vc)
tallyFile <- system.file( "extdata", "example.tally.hfs5", package = "h5vcData" )
data( "example.variants", package = "h5vcData" )
head( mutationSpectrum( variantCalls, tallyFile, "/ExampleStudy" ) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.