Learn R Programming

RaceID (version 0.2.3)

transitionProbs: Function for the computation of transition probabilities between clusters

Description

This function computes transition probabilities between clusters based on the link probabilities of the pruned k nearest neighbour graph.

Usage

transitionProbs(res, cl, pvalue = 0.01)

Value

Matrix of transition probabilities between clusters.

Arguments

res

List object with k nearest neighbour information returned by pruneKnn function.

cl

List object with Louvain clustering information, returned by the graphCluster function.

pvalue

Positive real number between 0 and 1. All nearest neighbours with link probability < pvalue are discarded. Default is 0.01.

Examples

Run this code
res <- pruneKnn(intestinalDataSmall,metric="pearson",knn=10,alpha=1,no_cores=1,FSelect=FALSE)
cl <- graphCluster(res,pvalue=0.01)
probs <-transitionProbs(res,cl,pvalue=0.01) 

Run the code above in your browser using DataLab