From a97f3b8a9049806435072ca07f0d1d170bf2fb31 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Tue, 15 Mar 2016 13:07:30 -0400 Subject: [PATCH] Fixed bug for Reference vs Exp MDS plotting --- differential_expression.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/differential_expression.py b/differential_expression.py index 9972b67..c3a2903 100644 --- a/differential_expression.py +++ b/differential_expression.py @@ -274,7 +274,7 @@ def writeRscript(self, analysislocation, conditions_list): mdssamps.append(Rvarlst[reffacnum]) for trtfacnum in range(0, trtgrouplength): mdsgroup.append('2') - mdssamps.append(Rvarlst[Rgrouplengths[batchcounter] - refgrouplength + trtfacnum]) + mdssamps.append(Rvarlst[Rgrouplengths[batchcounter] - trtgrouplength + trtfacnum]) mdsgroup = map(str, mdsgroup) mdsgroupjoin = ','.join(mdsgroup) de_expression.write('ReferenceCondvsExpCond{condval}'.format(condval=condval) + 'mdsgroup <- factor(c(' + mdsgroupjoin + '))\n') @@ -375,4 +375,4 @@ def de_analysis_noninteractive(self, analysislocation, conditions_list): de.writeRscript(analysislocation, conditions_list) de.runRscript(analysislocation) - return \ No newline at end of file + return