Mercurial > repos > iuc > edger
comparison edger.R @ 4:9a62dbdb122b draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/edger commit 230fc767e2e402ee460440afab0e348f2ccab179
| author | iuc |
|---|---|
| date | Sat, 05 Jan 2019 05:32:02 -0500 |
| parents | 2aa9dd87aad3 |
| children | a261c79b6556 |
comparison
equal
deleted
inserted
replaced
| 3:2aa9dd87aad3 | 4:9a62dbdb122b |
|---|---|
| 266 counts <- counts[ , -1] | 266 counts <- counts[ , -1] |
| 267 countsRows <- nrow(counts) | 267 countsRows <- nrow(counts) |
| 268 | 268 |
| 269 # Process factors | 269 # Process factors |
| 270 if (is.null(opt$factInput)) { | 270 if (is.null(opt$factInput)) { |
| 271 factorData <- read.table(opt$factFile, header=TRUE, sep="\t") | 271 factorData <- read.table(opt$factFile, header=TRUE, sep="\t", strip.white=TRUE) |
| 272 # order samples as in counts matrix | |
| 273 factorData <- factorData[match(colnames(counts), factorData[, 1]), ] | |
| 272 factors <- factorData[, -1, drop=FALSE] | 274 factors <- factorData[, -1, drop=FALSE] |
| 273 } else { | 275 } else { |
| 274 factors <- unlist(strsplit(opt$factInput, "|", fixed=TRUE)) | 276 factors <- unlist(strsplit(opt$factInput, "|", fixed=TRUE)) |
| 275 factorData <- list() | 277 factorData <- list() |
| 276 for (fact in factors) { | 278 for (fact in factors) { |
