3d-dart/server/system/NAfunctionLib.py
def _ToBasepairstep(self,inseq):	
		
		"""Convert nucleic acid base to basepairstep. Input list of bases"""
	
		convert = []
	
		for na in range(len(inseq[0])):
			try:	
				pair = []
				pair.append(inseq[0][na])
				pair.append(inseq[0][na+1])
				pair.append('/')
				pair.append(inseq[1][na+1])
				pair.append(inseq[1][na])
				if len(pair) > 0:
					pair = ''.join(pair)	
					convert.append(pair)
				else:
					convert = None	
			except:
				pass		
		
		return convert
Convert nucleic acid base to basepairstep. Input list of bases
Convert nucleic acid base to basepairstep. Input list of bases
Convert nucleic acid base to basepairstep . Input list of bases
def _ToBasepairstep(self,inseq):	
		convert = []
		for na in range(len(inseq[0])):
			try:	
				pair = []
				pair.append(inseq[0][na])
				pair.append(inseq[0][na+1])
				pair.append('/')
				pair.append(inseq[1][na+1])
				pair.append(inseq[1][na])
				if len(pair) > 0:
					pair = ''.join(pair)	
					convert.append(pair)
				else:
					convert = None	
			except:
				pass		
		return convert
def _ToBasepairstep ( self , inseq ) : convert = [ ] for na in range ( len ( inseq [ 0 ] ) ) : try : pair = [ ] pair . append ( inseq [ 0 ] [ na ] ) pair . append ( inseq [ 0 ] [ na + 1 ] ) pair . append ( '/' ) pair . append ( inseq [ 1 ] [ na + 1 ] ) pair . append ( inseq [ 1 ] [ na ] ) if len ( pair ) > 0 : pair = '' . join ( pair ) convert . append ( pair ) else : convert = None except : pass return convert
Convert nucleic acid base to basepairstep.
Convert nucleic acid base to basepairstep .
"""Convert nucleic acid base to basepairstep. Input list of bases"""
self
inseq