Description Usage Arguments Value Utility methods Annotation methods Visualization methods Examples
Usually the MVRanges constructor will be called by callMT().
Many of these methods can be dispatched from an MVRangesList OR an MVRanges. In such cases, the method will usually, but not always, be apply()ed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | MVRanges(vr = NULL, coverage = NA_real_)
## S4 method for signature 'MVRanges'
genomeCoverage(x)
## S4 method for signature 'MVRanges'
coverage(x)
## S4 method for signature 'MVRanges'
type(x)
## S4 method for signature 'MVRanges'
genes(x)
## S4 method for signature 'MVRanges'
snpCall(object)
## S4 method for signature 'MVRanges'
pos(x)
## S4 method for signature 'MVRanges'
show(object)
## S4 method for signature 'MVRanges'
annotation(object)
## S4 method for signature 'MVRanges'
getAnnotations(annotations)
## S4 method for signature 'MVRanges'
encoding(x)
## S4 method for signature 'MVRanges'
filt(x)
## S4 method for signature 'MVRanges'
genome(x)
## S4 method for signature 'MVRanges,missing,missing'
locateVariants(query, filterLowQual = FALSE, ...)
## S4 method for signature 'MVRanges,missing,missing,missing'
predictCoding(query, subject, seqSource, varAllele, ...)
## S4 method for signature 'MVRanges,missing,missing'
summarizeVariants(query, subject, mode, ...)
## S4 method for signature 'MVRanges,ANY'
plot(x, y, ...)
## S4 method for signature 'MVRanges'
consensusString(x, ...)
|
vr |
the VRanges |
coverage |
estimated coverage |
x |
an MVRanges |
object |
an MVRanges |
annotations |
an MVRanges |
query |
an MVRanges |
filterLowQual |
boolean; drop non-PASSing variants from locateVariants? |
... |
miscellaneous args, passed through |
subject |
a GRanges, usually |
seqSource |
a BSgenome, usually |
varAllele |
variant alleles |
mode |
miscellaneous arguments |
y |
another MVRanges |
1 | an MVRanges
|
1 | depends on the method invoked.
|
pos
returns a character vector describing variant positions.
filt
returns a subset of variant calls where PASS == TRUE (i.e. filtered)
coverage
returns an Rle of coverage across the mitochondrial genome
genomeCoverage
returns the estimated mitochondrial read coverage depth
type
returns a character vector describing variant type (SNV or indel)
genes
retrieves a GRanges of mitochondrial gene locations for an MVRanges
snpCall
retrieves single nucleotide variant polymorphisms PASSing filters
annotation
gets (perhaps oddly) an MVRanges object annotated against rCRS
getAnnotations
returns the GRanges of gene/region annotations for an MVR
encoding
returns variants residing in coding regions (consequence unknown)
locateVariants
annotates variants w/region, gene, and localStart/localEnd
predictCoding
returns variants consequence predictions as one might expect
summarizeVariants
uses MitImpact to attempt annotation of coding variants.
consensusString
edits rCRS to create a consensus genotype for eg Haplogrep
plot
creates a circular plot of mitochondrial variant calls with annotation
1 2 3 4 5 6 7 8 | library(MTseekerData)
BAMdir <- system.file("extdata", "BAMs", package="MTseekerData")
BAMs <- paste0(BAMdir, "/", list.files(BAMdir, pattern="^pt.*bam$"))
(mvr <- filterMTvars(pileupMT(BAMs[1], ref="rCRS")))
locateVariants(head(encoding(mvr))) # FIXME: no gene overlaps?!?
predictCoding(mvr) # FIXME: none!
# summarizeVariants can take a LONG time to run, and requires Internet
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.