Description Usage Arguments Details Value Author(s) Examples
Generate a list of null sites. See 'Details'.
1 2 | GenerateNull(txLoc, id = NULL, method = c("ntAbund", "perm"),
nt = "C", showPb = TRUE)
|
txLoc |
A |
id |
A |
method |
A |
nt |
A single |
showPb |
A |
The function generates a null distribution of single-nucleotide
sites across different transcript sections, and returns a
txLoc
object.
Two different methods can be employed:
method = "ntAbund"
: Null sites are generated based on the
position of all non-modified nucleotides of type nt
in those
transcript sections that also contain a modified site of the same type and
as specified in locus
.
For example, if locus
contains a list of m$^6$A sites, the list of
null sites consists of all non-methylated adenosines in those transcripts
that contain at least one m$^6$A site.
method = "perm"
: Null sites are generated by randomly permuting
the position of sites from locus
uniformly within the corresponding
transcript section. Note that this will generate a list of null sites with
the same abundance ratios across transcript sections as the list of sites
from locus
. It is therefore not useful for assessing an enrichment of
sites within a particular transcript section. In fact, this method should
not be used and is included purely for paedagogical purposes (to demonstrate
the importance of a sensible null distribution). It is likely that this
method will be removed from future RNAModR versions.
It is import to emphasise that any downstream enrichment analysis may depend
critically on the choice of the null distribution. For example, a position
permution-based null distribution may not be a valid null distribution, if
the distribution of nucleotides is highly non-uniform across a transcript
section. This is the case e.g. for the spatial distribution of cytosines
within and across the 5'UTR, CDS and/or 3'UTR. In this case, a permutation-
based distribution of cytosines will not give a sensible null distribution.
Instead, a sensible null distribution can be derived from the position of
all cytosines in the relevant transcript region containing the methylated
cytosine site in locus
. method = "ntAbund"
generates a list of
null sites using this approach.
A txLoc
object. See 'Details'.
Maurits Evers, maurits.evers@anu.edu.au
1 2 3 4 5 6 7 8 9 | ## Not run:
bedFile <- system.file("extdata",
"miCLIP_m6A_Linder2015_hg38.bed",
package = "RNAModR")
sites <- ReadBED(bedFile)
posSites <- SmartMap(sites, id = "m6A", refGenome = "hg38")
negSites <- GenerateNull(posSites, method = "ntAbund", nt = "A")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.