Skip to content

Instantly share code, notes, and snippets.

@ohofmann
Created June 11, 2012 17:36
Show Gist options
  • Select an option

  • Save ohofmann/2911484 to your computer and use it in GitHub Desktop.

Select an option

Save ohofmann/2911484 to your computer and use it in GitHub Desktop.
library(getopt)
options <- c('help', 'h', 0, 'logical',
'reads', 'r', 1, 'character',
'targets', 't', 1, 'character')
opt = getopt(matrix(options, ncol=4, byrow=T))
# Help was asked for.
if (!is.null(opt$help)) {
# Print a friendly message and exit with a non-zero error code
print('Usage: -[h] -reads|r -targets|t')
q(status=1)
}
seqFile <- opt$reads
targetFile <- opt$targets
library('knitr')
knit2html('/n/home10/ohofmann/hsph/projects/dc_lung_cancer/scripts/teqc.Rmd')
#knit('teqc.Rmd')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment