Skip to content

Commit

Permalink
Added discretized data example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenzopr committed Mar 1, 2017
1 parent 2f2b483 commit 1af4002
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 4 deletions.
16 changes: 16 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,19 @@
#' }
#' @source \url{http://www.cellocad.org}
"circuit_data"

#' Discretized simulated expression data for 400 cells and three genes.
#'
#' A dataset containing simulated expression data across 400 cells and three genes
#' in an AND gated genetic circuit. Only if AmtR and SrpR expression is sufficiently high,
#' cells will also express YFP. The expression values from \code{data(circuit_data)} have been
#' discretized with the bayesian blocks algorithm from pythons \code{astroML} package.
#'
#' @format A data frame with 400 rows and 3 variables (columns):
#' \describe{
#' \item{YFP}{Discretized expression values for YFP}
#' \item{AmtR}{Discretized expression values for AmtR}
#' \item{SrpR}{Discretized expression values for SrpR}
#' }
#' @source \url{http://www.cellocad.org}
"circuit_data_discrete"
4 changes: 2 additions & 2 deletions R/pid.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#' }
#'
#' @examples
#' data(circuit_data)
#' pid(z = circuit_data$YFP, x1 = circuit_data$AmtR, x2 = circuit_data$SrpR, discrete = FALSE)
#' data(circuit_data_discrete)
#' pid(z = circuit_data$YFP, x1 = circuit_data$AmtR, x2 = circuit_data$SrpR)
#'
#' @export
pid <- function(z, x1, x2, discrete = T) {
Expand Down
Binary file added data/circuit_data_discrete.rda
Binary file not shown.
25 changes: 25 additions & 0 deletions man/circuit_data_discrete.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/pid.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1af4002

Please sign in to comment.