make_random_xina_data: make_random_xina_data

Description Usage Arguments Value Examples

View source: R/random_dataset.R

Description

Generate random proteomics dataset for testing XINA 'make_random_xina_data' will make random proteomics data for XINA test. The generated data will have three conditions and seven time points, c("0hr", "2hr", "6hr", "12hr", "24hr", "48hr", "72hr").

Usage

1
2
3
make_random_xina_data(n = 500, mtor = TRUE, time_points = c("0hr",
  "2hr", "6hr", "12hr", "24hr", "48hr", "72hr"),
  conditions = c("Control", "Stimulus1", "Stimulus2"))

Arguments

n

The number of proteins for one condition. Default is 500.

mtor

If it is TRUE (default), mTOR pathway genes will be significant. If it is FALSE, randomly selected genes will be significant in first three conditions.

time_points

A vector containing time points of the data matrix

conditions

A vector containing condition information, for example normal, disease and drug treated disase.

Value

Three comma-separated files containing time-series data for XINA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
make_random_xina_data()
g1 <- read.csv("Control.csv", check.names=FALSE,
stringsAsFactors = FALSE)
g2 <- read.csv("Stimulus1.csv", check.names=FALSE,
stringsAsFactors = FALSE)
g3 <- read.csv("Stimulus2.csv", check.names=FALSE,
stringsAsFactors = FALSE)

head(g1)
head(g2)
head(g3)

XINA documentation built on Nov. 8, 2020, 5:32 p.m.