| chooseClusters {beadarray} | R Documentation |
Find large clusters of beads.
chooseClusters(IDs, neighbours, cutoff = 8)
IDs |
IDs of beads to be clustered. |
neighbours |
A Neighbours matrix - obtained from generateNeighbours. |
cutoff |
Integer - threshold for the minimum size a cluster must be. |
This function will find which beads are in large clusters. Using a flood fill algorithm, it finds clusters of beads, determines the size of each, and then returns only the beads in clusters of size greater than cutoff. It is primarily used in BASHCompact and BASHDiffuse.
Vector of bead IDs. (This will be a subset of the argument IDs)
Jonathan Cairns
BASHCompact, BASHDiffuse, closeImage
data(BLData) neighbours <- generateNeighbours(BLData,1) o <- findAllOutliers(BLData,1,log = TRUE) ##clusters8 <- chooseClusters(o, neighbours) ##clusters12 <- chooseClusters(o, neighbours, cutoff = 12) ## only ##larger clusters ##x11() ##plotBeadLocations(BLData,array=1,BeadIDs = clusters8, pch = ".")