3d-dart/server/plugins/ModelNucleicAcids.py
def ReadOut(self,files):
		
		"""Read 3DNA generated analysis file (*.out) and append to baseparameter database, Extract 
		   with self._ReadTable"""
		
		lib = {}
		for n in range(13):
			lib[n] = []
		
		bp = re.compile("bp        Shear    Stretch   Stagger    Buckle  Propeller  Opening")
		bpstep = re.compile("step       Shift     Slide      Rise      Tilt      Roll     Twist")
		readfile = file(files, 'r')
		lines = readfile.readlines()
		linecount = 1
		countstart = []
		for line in lines:
			line = line.strip()
			result1 = bp.match(line)
			result2 = bpstep.match(line)
			if result1:
				bplines = self._ReadTable(linenr=len(countstart),outfile=lines)	
			elif result2:
				bpsteplines = self._ReadTable(linenr=len(countstart),outfile=lines)
			linecount += 1
        		countstart.append(linecount)	
	
		bpsteplines.insert(0,([0.00001]*8))
	
		for lines in bplines:
			lines = lines[1:8]
			for value in range(7):
				lib[value].append(lines[value])
		for lines in bpsteplines:
			lines = lines[2:8]
			for value in range(6):
				lib[value+7].append(TransformDash(lines[value]))	
		
		del bpsteplines,bplines
		self._MakeBaseparDatabase(lib)
		lib.clear()
Read 3DNA generated analysis file (*.out) and append to baseparameter database, Extract 
		   with self._ReadTable
Read 3DNA generated analysis file (*.out) and append to baseparameter database, Extract
with self._ReadTable
Read 3DNA generated analysis file ( * . out ) and append to baseparameter database Extract with self . _ReadTable
def ReadOut(self,files):
		lib = {}
		for n in range(13):
			lib[n] = []
		bp = re.compile("bp        Shear    Stretch   Stagger    Buckle  Propeller  Opening")
		bpstep = re.compile("step       Shift     Slide      Rise      Tilt      Roll     Twist")
		readfile = file(files, 'r')
		lines = readfile.readlines()
		linecount = 1
		countstart = []
		for line in lines:
			line = line.strip()
			result1 = bp.match(line)
			result2 = bpstep.match(line)
			if result1:
				bplines = self._ReadTable(linenr=len(countstart),outfile=lines)	
			elif result2:
				bpsteplines = self._ReadTable(linenr=len(countstart),outfile=lines)
			linecount += 1
        		countstart.append(linecount)	
		bpsteplines.insert(0,([0.00001]*8))
		for lines in bplines:
			lines = lines[1:8]
			for value in range(7):
				lib[value].append(lines[value])
		for lines in bpsteplines:
			lines = lines[2:8]
			for value in range(6):
				lib[value+7].append(TransformDash(lines[value]))	
		del bpsteplines,bplines
		self._MakeBaseparDatabase(lib)
		lib.clear()
def ReadOut ( self , files ) : lib = { } for n in range ( 13 ) : lib [ n ] = [ ] bp = re . compile ( "bp        Shear    Stretch   Stagger    Buckle  Propeller  Opening" ) bpstep = re . compile ( "step       Shift     Slide      Rise      Tilt      Roll     Twist" ) readfile = file ( files , 'r' ) lines = readfile . readlines ( ) linecount = 1 countstart = [ ] for line in lines : line = line . strip ( ) result1 = bp . match ( line ) result2 = bpstep . match ( line ) if result1 : bplines = self . _ReadTable ( linenr = len ( countstart ) , outfile = lines ) elif result2 : bpsteplines = self . _ReadTable ( linenr = len ( countstart ) , outfile = lines ) linecount += 1 countstart . append ( linecount ) bpsteplines . insert ( 0 , ( [ 0.00001 ] * 8 ) ) for lines in bplines : lines = lines [ 1 : 8 ] for value in range ( 7 ) : lib [ value ] . append ( lines [ value ] ) for lines in bpsteplines : lines = lines [ 2 : 8 ] for value in range ( 6 ) : lib [ value + 7 ] . append ( TransformDash ( lines [ value ] ) ) del bpsteplines , bplines self . _MakeBaseparDatabase ( lib ) lib . clear ( )
Read 3DNA generated analysis file (*.out) and append to baseparameter database, Extract
with self._ReadTable
Read 3DNA generated analysis file ( * . out ) and append to baseparameter database Extract with self . _ReadTable
"""Read 3DNA generated analysis file (*.out) and append to baseparameter database, Extract 
		   with self._ReadTable"""
self
files