R/AllClasses.r

setClass("Scale4C",
    representation=list(           
        viewpoint="numeric",
        viewpointChromosome="character",
        pointsOfInterest="GRanges",
        rawData="GRanges",
        scaleSpace="SummarizedExperiment",
        singularities="GRanges"
    ),

    prototype=prototype(
        viewpoint=numeric(),
        viewpointChromosome=character(),
        pointsOfInterest=GRanges(),
        rawData=GRanges(),
        scaleSpace=SummarizedExperiment(),
        singularities=GRanges()
    ),

    validity=function(object) {
        if (ncol(mcols(rawData(object))) != 2)
            return("Please check the format of your fragment data")
        return(TRUE)
    }
)

Try the Scale4C package in your browser

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

Scale4C documentation built on Nov. 8, 2020, 8:21 p.m.