Description Details Objects from the Class Slots Methods Author(s) See Also Examples
A class for storing annotation about variants. An object of this class
is returned by the method annotateVariants
. The class has not been designed
to be created by users directly.
The list encapsulated by this class has one element for each variant. Each
element is a nested list with the elements genes
, transcripts
, exons
and snps
. All these elements are data frames listing genes, transcripts, exons or
snps respectively that were affected by the variant. Use the example below to explore
the data frames' contents.
Objects can be created by calls of the form new("AnnotatedVariants")
. The
method annotateVariants
returns AnnotatedVariants-objects.
annotatedVariants
:Object of class "list"
with one entry for
each variant.
signature(object = "AnnotatedVariants")
: Get the
list with variants.
signature(object = "AnnotatedVariants", value = "list")
:
Set a new list with variants.
signature(x = "AnnotatedVariants")
: Get the
names of the with variants.
signature(x = "AnnotatedVariants", value = "character")
:
Set the names of the variants.
Hans-Ulrich Klein
1 2 3 4 5 6 7 8 9 10 11 12 | variants = data.frame(
start=c(106157528, 106154991,106156184),
end=c(106157528, 106154994,106156185),
chromosome=c("4", "4", "4"),
strand=c("+", "+", "+"),
seqRef=c("A", "ATAG", "---"),
seqMut=c("G", "----", "ATA"),
seqSur=c("TACAGAA", "TTTATAGATA", "AGC---TCC"),
stringsAsFactors=FALSE)
rownames(variants) = c("snp", "del", "ins")
## Not run: av = annotateVariants(variants)
## Not run: annotatedVariants(av)[["snp"]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.