Skip to content

Commit

Permalink
Fixed bug for Reference vs Exp MDS plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
biobenkj committed Mar 15, 2016
1 parent 1a08f1d commit a97f3b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions differential_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -375,4 +375,4 @@ def de_analysis_noninteractive(self, analysislocation, conditions_list):
de.writeRscript(analysislocation, conditions_list)
de.runRscript(analysislocation)

return
return

0 comments on commit a97f3b8

Please sign in to comment.