ClustDistList-class | R Documentation |
A class for storing lists of ClustDist
instances.
Object of this class are created with the clustDist
function.
x
:Object of class list
containing valid
ClustDist
instances.
log
:Object of class list
containing an object
creation log, containing among other elements the call that
generated the object.
.__classVersion__
:The version of the instance. For development purposes only.
"[["
Extracts a single ClustDist
at position.
"["
Extracts one of more ClustDists
as
ClustDistList
.
length
Returns the number of ClustDists
.
names
Returns the names of ClustDists
, if
available. The replacement method is also available.
show
Display the object by printing a short summary.
lapply(x, FUN, ...)
Apply function FUN
to each
element of the input x
. If the application of FUN
returns and ClustDist
, then the return value is an
ClustDistList
, otherwise a list
.
plot
Plots a boxplot of the distance results per protein set.
Lisa M Breckels <lms79@cam.ac.uk>
library(pRolocdata)
data(dunkley2006)
## Convert annotation data e.g. markers, to a matrix e.g. MM
xx <- mrkVecToMat(dunkley2006, vfcol = "markers", mfcol = "MM")
## get distances for protein sets
dd <- clustDist(xx, fcol = "MM", k = 1:3)
## filter
xx <- filterMinMarkers(xx, n = 50, fcol = "MM")
xx <- filterMaxMarkers(xx, p = .25, fcol = "MM")
## get distances for protein sets
dd <- clustDist(xx, fcol = "MM")
## plot distances for all protein sets
plot(dd)
names(dd)
## Extract a sub-list of ClustDist objects
dd[1]
## Extract 1st ClustDist object
dd[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.