NanoMethResult-class | R Documentation |
A NanoMethResult object stores data used for NanoMethViz visualisation. It contains stores a path to the methylation data, sample information and optional exon information. The object is constructed using the NanoMethResult() constructor function described in "Usage".
NanoMethResult(methy, samples, exons = NULL)
## S4 method for signature 'NanoMethResult'
methy(object)
## S4 replacement method for signature 'NanoMethResult,ANY'
methy(object) <- value
## S4 method for signature 'NanoMethResult'
samples(object)
## S4 replacement method for signature 'NanoMethResult,data.frame'
samples(object) <- value
## S4 method for signature 'NanoMethResult'
exons(object)
## S4 replacement method for signature 'NanoMethResult,data.frame'
exons(object) <- value
methy |
the path to the methylation tabix file. |
samples |
the data.frame of sample annotation containing at least columns sample and group. |
exons |
(optional) the data.frame of exon information containing at least columns gene_id, chr, strand, start, end, transcript_id and symbol. |
object |
the NanoMethResult object. |
value |
the exon annotation. |
a NanoMethResult object to be used with plotting functions
the path to the methylation data.
the sample annotation.
the exon annotation.
NanoMethResult()
: Constructor
methy(NanoMethResult)
: methylation data path getter.
methy(object = NanoMethResult) <- value
: methylation data path setter.
samples(NanoMethResult)
: sample annotation getter.
samples(object = NanoMethResult) <- value
: sample annotation setter.
exons(NanoMethResult)
: exon annotation getter.
exons(object = NanoMethResult) <- value
: exon annotation setter.
methy
the path to the methylation tabix file.
samples
the data.frame of sample annotation containing at least columns sample and group.
exons
the data.frame of exon information containing at least columns gene_id, chr, strand, start, end, transcript_id and symbol.
methy <- system.file(package = "NanoMethViz", "methy_subset.tsv.bgz", mustWork = FALSE)
sample <- c(
"B6Cast_Prom_1_bl6",
"B6Cast_Prom_1_cast",
"B6Cast_Prom_2_bl6",
"B6Cast_Prom_2_cast",
"B6Cast_Prom_3_bl6",
"B6Cast_Prom_3_cast"
)
group <- c(
"bl6",
"cast",
"bl6",
"cast",
"bl6",
"cast"
)
sample_anno <- data.frame(sample, group, stringsAsFactors = FALSE)
exon_tibble <- get_example_exons_mus_musculus()
NanoMethResult(methy, sample_anno, exon_tibble)
x <- load_example_nanomethresult()
methy(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.