Description Usage Arguments Value Examples
modifyNucleotides
modifies a nucleotide in a sequence (or set
of sequences) based on the type of modification provided. It checks for the
identity of the base nucleotide to be
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 62 63 64 65 66 67 68 | modifyNucleotides(
x,
at,
mod,
nc.type = "short",
stop.on.error = TRUE,
verbose = FALSE
)
## S4 method for signature 'ModString'
modifyNucleotides(
x,
at,
mod,
nc.type = c("short", "nc"),
stop.on.error = TRUE,
verbose = FALSE
)
## S4 method for signature 'ModStringSet'
modifyNucleotides(
x,
at,
mod,
nc.type = c("short", "nc"),
stop.on.error = TRUE,
verbose = FALSE
)
## S4 method for signature 'DNAString'
modifyNucleotides(
x,
at,
mod,
nc.type = c("short", "nc"),
stop.on.error = TRUE,
verbose = FALSE
)
## S4 method for signature 'RNAString'
modifyNucleotides(
x,
at,
mod,
nc.type = c("short", "nc"),
stop.on.error = TRUE,
verbose = FALSE
)
## S4 method for signature 'DNAStringSet'
modifyNucleotides(
x,
at,
mod,
nc.type = c("short", "nc"),
stop.on.error = TRUE,
verbose = FALSE
)
## S4 method for signature 'RNAStringSet'
modifyNucleotides(
x,
at,
mod,
nc.type = c("short", "nc"),
stop.on.error = TRUE,
verbose = FALSE
)
|
x |
a |
at |
the location where the modification should be made. The same input as in the original If x is a If x is a rectangular |
mod |
The modification short name or nomenclature If If |
nc.type |
the type of nomenclature to be used. Either "short" or "nc".
"Short" for m3C would be "m3C", "nc" for m3C would be "3C". (
|
stop.on.error |
For |
verbose |
See |
the input ModString
or ModStringSet
object with the changes applied
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # modify nucleotides in a ModDNAString
seq <- ModDNAString("AGTC")
mseq1 <- modifyNucleotides(seq,c(1,2,4),c("1mA","7mG","3mC"))
# This fails since m7G requires a G at the selected position in the sequence
## Not run:
mseq <- modifyNucleotides(seq,c(3),c("7mG"))
## End(Not run)
# modify nucleotides in a ModRNAString
seq <- ModRNAString("AGUC")
mseq1 <- modifyNucleotides(seq,c(1,2,4),c("m1A","m7G","m3C"))
# This fails since m7G requires a G at the selected position in the sequence
## Not run:
mseq <- modifyNucleotides(seq,c(3),c("m7G"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.