diff abims_anova.r @ 11:102049093b7d draft default tip

planemo upload for repository https://github.com/workflow4metabolomics/anova commit 4922313a0e9569326b7723c41babb89f998dbfd9
author lecorguille
date Tue, 13 Mar 2018 09:47:21 -0400
parents b147b17759a6
children
line wrap: on
line diff
--- a/abims_anova.r	Wed Feb 28 07:44:13 2018 -0500
+++ b/abims_anova.r	Tue Mar 13 09:47:21 2018 -0400
@@ -24,7 +24,7 @@
   	# -- import --
 	data=read.table(file, header = TRUE, row.names=1, sep = sep, quote="\"", dec = dec, fill = TRUE, comment.char="",na.strings = "NA", check.names=FALSE)
 
-  	if (mode == "row") data=t(data)
+  	if (mode == "row") {data=t(data)} else {data=as.matrix(data)}
 
 	sampleinfoTab=read.table(sampleinfo, header = TRUE, row.names=1, sep = sep, quote="\"")
 	rownames(sampleinfoTab) = make.names(rownames(sampleinfoTab))