R/show-methods.R

## show
setMethod("show", "VEGASResult",
function(object){
    cat(paste0( "VEGAS results for ", object@geneSetName, "\n"))
    cat(paste0("p-value = ", signif(object@pValue,3), "\n") )
    cat(paste0("observed statistic = ", 
        signif(object@statistic,3), "\n") )
    cat(paste0("mean of simulated statistics = ", 
        signif(mean(object@simulatedStats),3), "\n"))
    cat(paste0("variance of simulated statistics = ", 
        signif(var(object@simulatedStats),3), "\n"))
}
)

setMethod("show", "GLOSSIResult",
function(object){
    cat(paste0( "GLOSSI results for ", object@geneSetName, "\n"))
    cat(paste0("p-value = ", signif(object@pValue,3), "\n"))
    cat(paste0("observed statistic = ", 
        signif(object@statistic,3), "\n"))
    cat(paste0("degrees of freedom = ", object@degreesOfFreedom), "\n")
}
)

setMethod("show", "GeneSetResult",
function(object){
    cat(paste0( "Gene Set results for ", object@geneSetName, "\n"))
    cat(paste0("p-value = ", signif(object@pValue,3), "\n"))
    cat(paste0("observed statistic = ", 
        signif(object@statistic,3), "\n"))
    cat(paste0("degrees of freedom = ", object@degreesOfFreedom), "\n")
}
)

Try the cpvSNP package in your browser

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

cpvSNP documentation built on Nov. 8, 2020, 6 p.m.