Similarity-class {maDB} | R Documentation |
This class holds information about the similarity between a vector and another one (or the rows or columns of a numerical matrix). An instance of this class will be returned as the result of the dbSearchSimilarPattern
function. This object holds then information about the similarity (calculated with one of the different distance measurement functions (pearson, euclidian, spearman)) between a template gene pattern and a set of other gene expression or regulation patterns.
The function dbSearchSimilarPattern
returns an instance of this class.
distances
:"numeric"
, this vector represents the distance (similarity) between numerical vectors.distance.metric
:"character"
, the distance metric used to calculate the similarity.data
:"matrix"
, the data matrix containing the values with which the template was compared.template
:"numeric"
, the template vector.template.id
:"character"
, the id of the template (if no custom template was used).signature(object = "Similarity")
: returns the data matrix.signature(object = "Similarity")
: returns the distances.signature(x = "Similarity")
: plots the template and the 5 top matching vectors (see plotSimilarity
for more options).signature(x = "Similarity")
: generic print function for the class Similarity.signature(x = "Similarity")
: sorts the data ascending or descending according to the distance.Johannes Rainer
dbSearchSimilarPattern
plotSimilarity