3d-dart/server/system/NAfunctionLib.py
def _TypeCheck(self,seq1,seq2):
		
		"""Check if supplied sequence is base, basepair or basepair step"""
		
		sequence = []
		
		if not seq1 == None:
			sequence.append(self._MakeCapital(seq1))
		if not seq2 == None:
			sequence.append(self._MakeCapital(seq2))
				
		for na in sequence[0]:
			tmp = []
			for n in na:
				tmp.append(n)	
			if '-' in tmp or '/' in tmp:
				if len(tmp) == 3 or len(tmp) == 7:
					self.type = 'pair'
				if len(tmp) == 5 or len(tmp) == 13:
					self.type = 'step'
			elif len(tmp) == 1 or len(tmp) == 3:			
				self.type = 'base'
		
		self._ToBaseOne(sequence)
Check if supplied sequence is base, basepair or basepair step
Check if supplied sequence is base, basepair or basepair step
Check if supplied sequence is base basepair or basepair step
def _TypeCheck(self,seq1,seq2):
		sequence = []
		if not seq1 == None:
			sequence.append(self._MakeCapital(seq1))
		if not seq2 == None:
			sequence.append(self._MakeCapital(seq2))
		for na in sequence[0]:
			tmp = []
			for n in na:
				tmp.append(n)	
			if '-' in tmp or '/' in tmp:
				if len(tmp) == 3 or len(tmp) == 7:
					self.type = 'pair'
				if len(tmp) == 5 or len(tmp) == 13:
					self.type = 'step'
			elif len(tmp) == 1 or len(tmp) == 3:			
				self.type = 'base'
		self._ToBaseOne(sequence)
def _TypeCheck ( self , seq1 , seq2 ) : sequence = [ ] if not seq1 == None : sequence . append ( self . _MakeCapital ( seq1 ) ) if not seq2 == None : sequence . append ( self . _MakeCapital ( seq2 ) ) for na in sequence [ 0 ] : tmp = [ ] for n in na : tmp . append ( n ) if '-' in tmp or '/' in tmp : if len ( tmp ) == 3 or len ( tmp ) == 7 : self . type = 'pair' if len ( tmp ) == 5 or len ( tmp ) == 13 : self . type = 'step' elif len ( tmp ) == 1 or len ( tmp ) == 3 : self . type = 'base' self . _ToBaseOne ( sequence )
Check if supplied sequence is base, basepair or basepair step
Check if supplied sequence is base basepair or basepair step
"""Check if supplied sequence is base, basepair or basepair step"""
self
seq1
seq2