condplot: Draw the plot of the condition numbers vs. the number of...

Description Usage Arguments Value Author(s) References Examples

View source: R/DeconRNASeq.R

Description

A function is used to draw the plot of the condition number of signature matrices of all sizes, from a handful of genes in one extreme to the whole signature in the other.

Usage

1
      condplot(step, cond)

Arguments

step

an array with the number of genes used to calculate the condition numbers of signature matrices, default stepwise = 20

cond

an array with the condition numbers of signature matrices

Value

a plot for the condition numbers of signature matrices

Author(s)

Ting Gong tinggong@gmail.com Joseph D. Szustakowski joseph.szustakowski@novartis.com

References

Gong, T., et al. (2011) Optimal Deconvolution of Transcriptional Profiling Data Using Quadratic Programming with Application to Complex Clinical Blood Samples, PLoS One, 6, e27156.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(DeconRNASeq)
####################################################################
## toy data example:


      step <- seq(20,1000, by=20) #every 20 genes
      ## cell type-specific gene expression matrix:
      x.signature <- matrix(rexp(2000),ncol=2)
      sig.cond <- sapply(step, function(x) kappa(scale(x.signature[1:x,]))) 
      function (step, cond)

DeconRNASeq documentation built on Nov. 8, 2020, 7:51 p.m.