Description Usage Arguments Value References See Also Examples
This method generates a data set with the parameters we used in [TODO].
1 |
n_case |
number of cases to simulate |
n_control |
number of controls to simulate |
A list containing the following values
expression |
Gene expression matrix of simulated fold change values. Observations in rows, genes in columns |
differential |
Vector describing which genes are truly differentially expressed. Zero indicates no DE, -1 indicates down-regulation, 1 indicates up-regulation. |
followup |
Followup time for each observation. A number in [0, 1]. |
status |
Vector denoting case–control status for each observation. |
[TODO ref our article]
1 2 3 4 5 6 7 8 9 10 11 12 | d <- simulation()
differential <- d$differential
expression <- d$expression
followup <- d$followup
status <- d$status
diff <- which(differential != 0)
gene <- sample(diff, 1)
plot(followup, expression[, gene], col=status, pch=20, ylim=c(-1.5, 1.5))
abline(lm(expression[status=="case", gene]~followup[status=="case"]))
abline(lm(expression[status=="control", gene]~followup[status=="control"]), col="red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.