Skip to content

Commit

Permalink
Check for a "samplename" column.
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-plessy committed Mar 22, 2017
1 parent 2c22fde commit 978b72c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
12 changes: 8 additions & 4 deletions R/llPostProcess.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#' llPostProcess
#'
#' Post-process the output of loadLogs.
#' Post-process the output of loadMoiraiStats
#'
#' @seealso loadLogs
#' @seealso loadMoiraiStats
#'
#' @param TABLE A table output by loadLogs
#' @param TYPE A type of post-processing
#' @param TABLE A table output by loadMoiraiStats. Should at least contain
#' a column called \sQuote{samplename}.
#' @param TYPE A type of post-processing.
#'
#' @details
#'
Expand Down Expand Up @@ -43,6 +44,9 @@

llPostProcess <- function (TABLE, TYPE='') {

if(! "samplename" %in% colnames(TABLE))
stop('Input table must have a "samplename" column.')

samplesnamesToWell <- function(TABLE) {
TABLE$Well <- sub('.*_', '', TABLE$samplename)
TABLE$row <- sub('.', '', TABLE$Well)
Expand Down
9 changes: 5 additions & 4 deletions man/llPostProcess.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 978b72c

Please sign in to comment.