connectivityVector: The connectivityVector function

Description Usage Arguments Value

Description

Internal. Given a vector indicating the samples involved (samplesID) and a vector indicating to which group they belong (groupID), this function adds 1 to the positions in connectVector corresponding to pair of samples that belong to the same group. We use this to: 1) update jointOccurrenceVector adding 1 to the positions corresponding to each pair of samples present in the current bootstrap subsample, to indicate that they have the chance to be clustered together later 2) update consensusVector adding 1 to the positions corresponding to pairs of samples that were clustered together

Usage

1
connectivityVector(sampleID, groupID, connectVector, n)

Arguments

sampleID

vector indicating which are the samples being considered

groupID

vector with group indexes. Positions corresponding to pair of samples present in sampleID with the same groupID will be increased in 1.

connectVector

Current vector of counts to be updated

n

total number of samples

Value

Updated vector of counts


mpru/ConsensusClustering documentation built on May 9, 2019, 5:54 a.m.