From 9ab1ebe68767e2cd846194bbe55f543b171f0836 Mon Sep 17 00:00:00 2001 From: tangstad Date: Tue, 9 May 2006 14:16:22 +0000 Subject: [PATCH] Small cleanup. --- workflows/affy_workflow.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/workflows/affy_workflow.py b/workflows/affy_workflow.py index c60a433..a89071d 100644 --- a/workflows/affy_workflow.py +++ b/workflows/affy_workflow.py @@ -161,9 +161,7 @@ Example: Y-N, M-F""" % ", ".join(data.get_categories())) rpy.r.assign("expr", affy.asarray()) silent_eval("fit <- lmFit(expr, design)") - # FIXME: might be a case for code injection... - string = "contrast.matrix <- makeContrasts(%s, levels=design)" % response - silent_eval(string) + silent_eval("contrast.matrix <- makeContrasts(%s, levels=design)" % response) silent_eval("fit2 <- contrasts.fit(fit, contrast.matrix)") silent_eval("fit2 <- eBayes(fit2)") coeff = rpy.r("fit2$coefficients")