View source: R/createBindingFactor.DNA_regexp.R
createBindingFactor.DNA_regexp | R Documentation |
Create a new binding factor based on a simple pattern of marks on others layers and may (when used) set marks on other layers.
createBindingFactor.DNA_regexp(
name,
type = "DNA_regexp",
patternString = "N",
patternLength = 0,
profile.layers = NULL,
profile.marks = NULL,
mod.layers = NULL,
mod.marks = NULL,
offset = 0,
offset.method = NULL,
offset.params = NULL,
stateWidth = patternLength,
test.layer0.binding = FALSE,
test.mismatch.rate = 0.1,
max.pattern.tries = 1000,
min.DM.length = 2,
min.DR.length = 10,
verbose = FALSE
)
name |
give the binding factor a name |
type |
"DNA_regexp" to differentiate from other types |
patternString |
= NOT USED in this case |
patternLength |
[= 0] length of pattern |
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 |
stateWidth |
the width of pattern to recognise on other layers |
test.layer0.binding |
when creating, test if the DNA sequence has a match. |
test.mismatch.rate |
proportion of mismatches to tolerate when testing |
max.pattern.tries |
NA |
min.DM.length |
NA |
verbose |
set to TRUE for more output |
min.DR.lengt |
NA |
"hits"
runLayerBinding
createBindingFactor.DNA_motif
simpleBF <- createBindingFactor.DNA_regexp("test", patternString="ACTGGGCTA")
# this regular expression finds 4 CpGs with 0-4 bases between them
CGI<- createBindingFactor.DNA_regexp("CGI", patternString="(CG.{0,4}){3}CG",
patternLength=20, mod.layers = "CpG_island",
mod.marks=1, stateWidth=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.