View source: R/createBindingFactor.DNA_consensus.R
createBindingFactor.DNA_consensus | R Documentation |
Create a new binding factor based on a DNA consensus that may also require
marks on others layers and may (when used) set marks on other layers.
Makes use of biostrings function vmatchPattern
Can use IUPAC codes and allow mismatches
createBindingFactor.DNA_consensus(
name,
type = "DNA_consensus",
patternString = "N",
patternLength = nchar(patternString),
stateWidth = patternLength,
profile.layers = NULL,
profile.marks = NULL,
mod.layers = NULL,
mod.marks = NULL,
offset = 0,
offset.method = NULL,
offset.params = NULL,
test.layer0.binding = FALSE,
test.mismatch.rate = 0.1,
max.pattern.tries = 1000,
min.DM.length = 2,
min.DR.length = 10,
verbose = FALSE,
max.mismatch = 0,
min.mismatch = 0,
with.indels = FALSE,
fixed = TRUE,
algorithm = "auto"
)
name |
give the binding factor a name |
type |
"DNA_consensus" to differentiate from other types |
patternString |
"N" put consensus here (using IUPAC codes for degenerate bases) |
patternLength |
length of pattern to be matched [nchar(patternString)] |
stateWidth |
the width of pattern to recognise on other layers |
profile.layers |
a vector of named layers to set as a match |
profile.marks |
a vector of 0/1 to match the layers in profile.layers |
mod.layers |
a vector of named layers to alter on a match |
mod.marks |
a vector of 0/1 to set on the mod.layers |
offset |
0 integer value to indicate relative distance from pattern to apply modifications. Very simple. |
offset.method |
NULL a |
offset.params |
NULL a |
test.layer0.binding |
when creating, test if the DNA sequence has a match. |
test.mismatch.rate |
proportion of mismatches to tolerate when testing [.1] |
max.pattern.tries |
NA |
min.DM.length |
NA |
verbose |
set to TRUE for more output |
max.mismatch |
0 see |
min.mismatch |
0 see |
with.indels |
FALSE see |
fixed |
TRUE see |
algorithm |
"auto" see |
min.DR.lengt |
NA |
"bindingFactor"
runLayerBinding
createBindingFactor.DNA_regexp
DNA_A <- createBindingFactor.DNA_consensus(name="DNA_A",patternString = "CAT" )
gc1-2 <- createBindingFactor.DNA_consensus(name="gc1-2",
patternString="SSSSSSSSSSSSSSSS",
max.mismatch= 2,
min.mismatch= 1,
fixed="subject",
profile.layers = NULL,
profile.marks=NULL,
mod.layers="LAYER.1", mod.marks = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.