Description Usage Arguments Value Slots Creation
The Modifier
class is a virtual class, which provides the central
functionality to search for post-transcriptional RNA modification patterns in
high throughput sequencing data.
Each subclass has to implement the following functions:
Slot nucleotide
: Either "RNA" or "DNA". For conveniance the
subclasses RNAModifier
and DNAModifier
are already available
and can be inherited from.
Function aggregateData
: used for specific data
aggregation
Function findMod
: used for specific search for
modifications
Optionally the function settings<-
can be
implemented to store additional arguments, which the base class does not
recognize.
Modifier
objects are constructed centrally by calling
Modifier()
with a className
matching the specific class to be
constructed. This will trigger the immediate analysis, if find.mod
is
not set to FALSE
.
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 53 54 55 56 57 58 59 60 61 | Modifier(className, x, annotation, sequences, seqinfo, ...)
## S4 method for signature 'SequenceData'
Modifier(
className,
x,
annotation = NULL,
sequences = NULL,
seqinfo = NULL,
...
)
## S4 method for signature 'SequenceDataSet'
Modifier(
className,
x,
annotation = NULL,
sequences = NULL,
seqinfo = NULL,
...
)
## S4 method for signature 'SequenceDataList'
Modifier(
className,
x,
annotation = NULL,
sequences = NULL,
seqinfo = NULL,
...
)
## S4 method for signature 'character'
Modifier(
className,
x,
annotation = NULL,
sequences = NULL,
seqinfo = NULL,
...
)
## S4 method for signature 'list'
Modifier(
className,
x,
annotation = NULL,
sequences = NULL,
seqinfo = NULL,
...
)
## S4 method for signature 'BamFileList'
Modifier(
className,
x,
annotation = NULL,
sequences = NULL,
seqinfo = NULL,
...
)
|
className |
The name of the class which should be constructed. |
x |
the input which can be of the following types
|
annotation |
annotation data, which must match the information contained
in the BAM files. This parameter is only required if |
sequences |
sequences matching the target sequences the reads were
mapped onto. This must match the information contained in the BAM files.
TThis parameter is only required if |
seqinfo |
An optional |
... |
Additional otpional parameters:
All additional options must be named and will be passed to the
|
a Modifier
object of type className
nucleotide
a character
value, which needs to contain "RNA" or
"DNA"
mod
a character
value, which needs to contain one or more
elements from the alphabet of a
ModRNAString
or
ModDNAString
class.
score
the main score identifier used for visualizations
dataType
the class name(s) of the SequenceData
class used
bamfiles
the input bam files as BamFileList
condition
conditions along the BamFileList
: Either
control
or treated
replicate
replicate number along the BamFileList
for each of the
condition types.
data
The sequence data object: Either a SequenceData
,
SequenceDataSet
or a SequenceDataList
object, if more than one
dataType
is used.
aggregate
the aggregated data as a SplitDataFrameList
modifications
the found modifications as a GRanges
object
settings
arguments used for the analysis as a list
aggregateValidForCurrentArguments
TRUE
or FALSE
whether
the aggregate data was constructed with the current arguments
modificationsValidForCurrentArguments
TRUE
or FALSE
whether the modifications were found with the current arguments
Modifier
objects can be created in two ways, either by providing a
list of bamfiles or
SequenceData
/SequenceDataSet
/SequenceDataList
objects,
which match the structure in dataType()
.
dataType()
can be a character
vector or a list
of
character
vectors and depending on this the input files have to
follow this structure:
a single character
: a SequenceData
is
constructed/expected.
a character
vector: a SequenceDataSet
is
constructed/expected.
a list
of character
vectors: a SequenceDataList
is constructed/expected.
The cases for a SequenceData
or SequenceDataSet
are straight
forward, since the input remains the same. The last case is special, since it
is a hypothetical option, in which bam files from two or more different
methods have to be combined to reliably detect a single modification (The
elements of a SequenceDataList
don't have to be created from the
bamfiles, whereas from a SequenceDataSet
they have to be).
For this example a list
of character
vectors is expected.
Each element must be named according to the names of dataType()
and
contain a character
vector for creating a SequenceData
object.
All additional options must be named and will be passed to the
settings
function and onto the SequenceData
objects, if x
is not a SequenceData
object or a list of
SequenceData
objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.