R/beadLevelData_numBeads.R

## returns the number of beads for all arrays in a beadLevelData object.
## if arrays are specified only numbers for those are returned.

setGeneric("numBeads", function(object, arrays=NULL)
   standardGeneric("numBeads"))

setMethod("numBeads", "beadLevelData", function(object, arrays=NULL) {
    if(is.null(arrays)) 
        object@sectionData$numBeads[,1]
    else 
        object@sectionData$numBeads[arrays,1]
    }
) 

Try the beadarray package in your browser

Any scripts or data that you put into this service are public.

beadarray documentation built on Nov. 8, 2020, 4:51 p.m.