File: estimateVBExpression_call.R

package info (click to toggle)
r-bioc-bitseq 1.26.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,620 kB
  • sloc: cpp: 6,506; sh: 4; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 1,197 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

estimateVBExpression <- function(probFile, outFile, outputType=NULL, trInfoFile=NULL, seed=NULL, samples=NULL, optLimit=1e-5, optMethod="FR", procN=4, verbose=FALSE, veryVerbose=FALSE, pretend=FALSE){
   args <- c('estimateExpression ',probFile, '--outPrefix', outFile)
   if (!is.null(outputType)) {
      args <- c(args, '--outType', outputType)
   }
   if (!is.null(trInfoFile)) {
      args <- c(args, '--trInfoFile', trInfoFile )
   }
   if (!is.null(seed)) {
      args <- c(args, '--seed', seed)
   }
   if (!is.null( samples)) {
      args <- c(args, '--samples',samples )
   }
   if (!is.null( optLimit)) {
      args <- c(args, '--optLimit',optLimit )
   }
   if (!is.null( optMethod)) {
      args <- c(args, '--method',optMethod )
   }
   if (!is.null(procN)) {
      args <- c(args, '--procN', procN)
   }
   if (!is.null(verbose) && (verbose)) {
      args <- c(args, '--verbose')
   }
   if (!is.null(veryVerbose) && (veryVerbose)) {
      args <- c(args, '--veryVerbose')
   }

   ## print(args)

   if(pretend){
      writeLines(.specialPaste(args))
   }else{
      argc <- length(args);
      result <- .C('_estimateVBExpression', as.integer(argc), as.character(args));
   }
}