extract | R Documentation |
The function extracts part of the data and returns a new object.
## S4 method for signature 'methylRaw,ANY,ANY,ANY'
x[i, j]
## S4 method for signature 'methylBase,ANY,ANY,ANY'
x[i, j]
## S4 method for signature 'methylDiff,ANY,ANY,ANY'
x[i, j]
## S4 method for signature 'methylRawDB,ANY,ANY,ANY'
x[i, j]
## S4 method for signature 'methylBaseDB,ANY,ANY,ANY'
x[i, j]
## S4 method for signature 'methylDiffDB,ANY,ANY,ANY'
x[i, j]
x |
an |
i |
a numeric or logical vector. This vector corresponds to bases or
regions contained in |
j |
This argument can not be used for the extraction of columns.
As unintentional extraction of the columns will cause an error in
the downstream analysis. Using this argument will cause an error.
Use |
data(methylKit)
# selects first hundred rows, returns a methylRaw object
subset1=methylRawList.obj[[1]][1:100]
# selects first hundred rows, returns a methylBase object
subset2=methylBase.obj[1:100,]
# selects first hundred rows, returns a methylDiff object
subset3=methylDiff.obj[1:100,]
# This will get chromomsomes, will return a factor
# That means the resulting object will ceases to be a methylKit object
chrs=methylDiff.obj[[2]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.