Description Usage Arguments Value Methods (by class) Examples
The variant context is defined by gathering the nucleotides upstream and downstream of a variant. This if often the first step in building a mutation spectrum analysis.
1 2 3 4 5 6 7 | variantContext(VARIANTS, FASTA, ...)
## S4 method for signature 'VCF,FaFile'
variantContext(VARIANTS, FASTA, ...)
## S4 method for signature 'VRanges,FaFile'
variantContext(VARIANTS, FASTA, ...)
|
variants |
A |
fasta |
A |
extendBy |
The number of bases on either side of the altered base to capture. The altered base will be placed in the center of the context. For example, the default value of 1 will result in contexts of length 3. Specifying 2 will result in contexts of length 5, etc. |
A VariantContext
object.
VARIANTS = VCF,FASTA = FaFile
:
VARIANTS = VRanges,FASTA = FaFile
:
1 2 3 4 5 6 | library(VariantAnnotation)
fl <- system.file("extdata", "chr22.vcf.gz", package="VariantAnnotation")
param <- ScanVcfParam(info=c("DP"))
vcf = readVcf(fl,"hg19",param=param)
seqlevels(vcf) = paste0('chr',seqlevels(vcf))
variantContext(vcf,fasta=FaFile('/data/CCRBioinfo/public/GATK/bundle/2.3/hg19/ucsc.hg19.fasta'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.