3d-dart/server/plugins/ModelNucleicAcids.py
def _AdjustGroove(self,slide,roll,slidefactor):
			
		"""Adjust the slide to accomondate the user defined major groove width. Set over complete sequence or a user
		   defined zone."""	
		
		rollmax = max(roll)
		newslide = []

		for n in roll:
			try:															# Try to correct for roll. If roll is 0.00 then append slidefactor
				newslide.append((0.0-((n*1.0)/rollmax)+slidefactor))
			except:
				newslide.append(slidefactor)
				
		olddw = slide[0:self.paramdict['groovestart']-1]
		oldup = slide[self.paramdict['grooveend']:len(slide)+1]

		return olddw+newslide[self.paramdict['groovestart']-1:self.paramdict['grooveend']]+oldup
Adjust the slide to accomondate the user defined major groove width. Set over complete sequence or a user
		   defined zone.
Adjust the slide to accomondate the user defined major groove width. Set over complete sequence or a user
defined zone.
Adjust the slide to accomondate the user defined major groove width . Set over complete sequence or a user defined zone .
def _AdjustGroove(self,slide,roll,slidefactor):
		rollmax = max(roll)
		newslide = []
		for n in roll:
			try:															
				newslide.append((0.0-((n*1.0)/rollmax)+slidefactor))
			except:
				newslide.append(slidefactor)
		olddw = slide[0:self.paramdict['groovestart']-1]
		oldup = slide[self.paramdict['grooveend']:len(slide)+1]
		return olddw+newslide[self.paramdict['groovestart']-1:self.paramdict['grooveend']]+oldup
def _AdjustGroove ( self , slide , roll , slidefactor ) : rollmax = max ( roll ) newslide = [ ] for n in roll : try : newslide . append ( ( 0.0 - ( ( n * 1.0 ) / rollmax ) + slidefactor ) ) except : newslide . append ( slidefactor ) olddw = slide [ 0 : self . paramdict [ 'groovestart' ] - 1 ] oldup = slide [ self . paramdict [ 'grooveend' ] : len ( slide ) + 1 ] return olddw + newslide [ self . paramdict [ 'groovestart' ] - 1 : self . paramdict [ 'grooveend' ] ] + oldup
Adjust the slide to accomondate the user defined major groove width.
Adjust the slide to accomondate the user defined major groove width .
"""Adjust the slide to accomondate the user defined major groove width. Set over complete sequence or a user
		   defined zone.""" # Try to correct for roll. If roll is 0.00 then append slidefactor
self
slide
roll
slidefactor