R/AllClasses.R

Defines functions validReads

### =========================================================================
### All classes
### =========================================================================


### -------------------------------------------------------------------------
### aldex.clr
###

setClass("aldex.clr",
    slots=c(
        reads="data.frame",
        conds="ANY",
        mc.samples="numeric",
        denom="vector",
        verbose="logical",
        useMC="logical",
        analysisData="list"
        )
)

validReads <- function(object) {
    if (length(duplicated(rownames(object)))==0) {
        TRUE
    }
    else {
        paste("Unable to create aldex.clr object.
            Duplicated row names:",rownames(object)[duplicated(row.names(object))])
    }
    if (length(duplicated(colnames(object)))==0) {
        TRUE
    }
    else {
        paste("Unable to create aldex.clr object.
            Duplicated column names:",colnames(object)[duplicated(row.names(object))])
    }
}

setValidity("aldex.clr",validReads)

Try the ALDEx2 package in your browser

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

ALDEx2 documentation built on Nov. 8, 2020, 8:05 p.m.