diff SMART/Java/Python/structure/Transcript.py @ 46:169d364ddd91

Uploaded
author m-zytnicki
date Mon, 30 Sep 2013 03:19:26 -0400
parents 44d5973c188c
children
line wrap: on
line diff
--- a/SMART/Java/Python/structure/Transcript.py	Wed Sep 18 08:51:22 2013 -0400
+++ b/SMART/Java/Python/structure/Transcript.py	Mon Sep 30 03:19:26 2013 -0400
@@ -347,31 +347,6 @@
 		newTranscript.exons = theseExons
 		return newTranscript
 			
-
-	def getIntersection(self, transcript):
-		"""
-		Get the intersection between this transcript and another one
-		@param transcript: object to be compared to
-		@type  transcript: class L{Transcript<Transcript>}
-		@return:           an other transcript
-		"""
-		if self.getChromosome() != transcript.getChromosome() or self.getDirection() != transcript.getDirection():
-			return None
-		newTranscript = Transcript()
-		newTranscript.setDirection(self.getDirection())
-		newTranscript.setChromosome(self.getChromosome())
-		newTranscript.setName("%s_intersect_%s" % (self.getName(), transcript.getName()))
-		newExons = []
-		for thisExon in self.getExons():
-			for thatExon in transcript.getExons():
-				newExon = thisExon.getIntersection(thatExon)
-				if newExon != None:
-					newExons.append(newExon)
-		if not newExons:
-			return None
-		newTranscript.exons = newExons
-		return newTranscript
-			
 	
 	def getSqlVariables(cls):
 		"""