comparison multivariate_wrapper.R @ 3:e91de3b04320 draft

planemo upload for repository https://github.com/workflow4metabolomics/multivariate.git commit bb92582ec396fd845b49454c4cadd86fbfc73fab
author ethevenot
date Sat, 22 Oct 2016 03:02:47 -0400
parents fa173e12e185
children 5526f8258e8a
comparison
equal deleted inserted replaced
2:fa173e12e185 3:e91de3b04320
396 "_VIP_ortho") 396 "_VIP_ortho")
397 } 397 }
398 } 398 }
399 if(!is.null(coeMN)) { 399 if(!is.null(coeMN)) {
400 pCompMN <- cbind(pCompMN, coeMN) 400 pCompMN <- cbind(pCompMN, coeMN)
401 colnames(pCompMN)[ncol(pCompMN)] <- paste0(rspModC, "_COEFF") 401 if(ncol(coeMN) == 1)
402 colnames(pCompMN)[ncol(pCompMN)] <- paste0(rspModC, "_COEFF")
403 else
404 colnames(pCompMN)[(ncol(pCompMN) - ncol(coeMN) + 1):ncol(pCompMN)] <- paste0(rspModC, "_", colnames(coeMN), "-COEFF")
402 } 405 }
403 pCompDF <- as.data.frame(pCompMN)[rownames(varDF), , drop = FALSE] 406 pCompDF <- as.data.frame(pCompMN)[rownames(varDF), , drop = FALSE]
404 varDF <- cbind.data.frame(varDF, pCompDF) 407 varDF <- cbind.data.frame(varDF, pCompDF)
405 408
406 ## sampleMetadata 409 ## sampleMetadata