-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update v0.5.0 * Fix vignette typo. * v0.6.0 * Review allelic_series_test.R Christoph's suggestion * Update test-counts.R
- Loading branch information
1 parent
48f18ac
commit 65eaeb5
Showing
20 changed files
with
379 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
S3method(print,COAST) | ||
export(ASBT) | ||
export(ASKAT) | ||
export(Aggregator) | ||
export(COAST) | ||
export(Comparator) | ||
export(CountAlleles) | ||
export(Counts) | ||
export(DGP) | ||
export(OLS) | ||
exportClasses(COAST) | ||
importFrom(Rcpp,sourceCpp) | ||
importFrom(methods,show) | ||
useDynLib(AllelicSeries, .registration = TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Purpose: Output class. | ||
# Updated: 2024-07-24 | ||
|
||
#' Allelic Series Output Class | ||
#' | ||
#' @slot Counts Allele, variant, and carrier counts. | ||
#' @slot Pvals Result p-values. | ||
#' @name COAST-class | ||
#' @rdname COAST-class | ||
#' @exportClass COAST | ||
setClass( | ||
Class = "COAST", | ||
representation = representation( | ||
Counts = "data.frame", | ||
Pvals = "data.frame" | ||
) | ||
) | ||
|
||
|
||
#' Print Method for COAST Object. | ||
#' | ||
#' Print method for objects of class \code{COAST}. | ||
#' | ||
#' @param x An object of class \code{COAST}. | ||
#' @param ... Unused. | ||
#' @export | ||
print.COAST <- function(x, ...) { | ||
|
||
# Counts. | ||
cat("Counts:\n") | ||
show(x@Counts) | ||
cat("\n\n") | ||
|
||
# P-values. | ||
cat("P-values:\n") | ||
pvals <- x@Pvals | ||
pvals$pval <- formatC(pvals$pval, format = "e", digits = 2) | ||
show(pvals) | ||
cat("\n\n") | ||
} | ||
|
||
|
||
#' Show Method for COAST Object | ||
#' | ||
#' @param object An object of class \code{COAST}. | ||
#' @rdname COAST-method | ||
#' @importFrom methods show | ||
setMethod( | ||
f = "show", | ||
signature = c(object = "COAST"), | ||
definition = function(object) { | ||
print.COAST(x = object) | ||
} | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.