membership: Calculating of membership values for new data based on...

Description Usage Arguments Value Note Author(s) Examples

View source: R/membership.R

Description

Function that calculates the membership values of genes based on provided data and existing clustering

Usage

1
membership(x,clusters,m)

Arguments

x

expression vector or expression matrix

clusters

cluster centroids from existing clustering

m

fuzzification parameter

Value

Matrix of membership values for new genes

Note

This function calculates membership values for new data based on existing cluster centroids and fuzzification parameter. It can be useful, for instance, when comparing two time series, to assess whether the same gene in the different time series changes its cluster association.

Author(s)

Matthias E. Futschik (http://www.sysbiolab.eu)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if (interactive()){
 data(yeast)
 yeastF <- filter.NA(yeast)
 yeastF <- fill.NA(yeastF) # for illustration only; rather use knn method
 yeastF <- standardise(yeastF)
 
 cl <- mfuzz(yeastF,c=20,m=1.25)

 m <- 1.25
 clusters <- cl[[1]]
 x <- matrix(rnorm(2*17),nrow=2) # new expression matrix with two genes 
 mem.tmp <- membership(x,clusters=clusters,m=m) #membership values  
}

Mfuzz documentation built on May 31, 2017, 10:59 a.m.

Search within the Mfuzz package
Search all R packages, documentation and source code