@@ -78,16 +78,15 @@ def _reverse(self):
7878
7979
8080class Location ():
81-
81+ """
82+ Class describing the contiguous position of a feature
83+ """
8284 def __init__ (self , start , stop , strand = '+' , defect = 0 , meta = None ):
83- """
84- Class describing the contiguous position of a feature
85- """
8685 if start >= stop :
8786 raise ValueError ('start must be lower than stop' )
88- #: start location (0 based)
87+ #: start location (zero- based numbering )
8988 self .start = start
90- #: stop location (0 based)
89+ #: stop location (zero- based numbering )
9190 self .stop = stop
9291 self .strand = strand
9392 self .defect = defect
@@ -159,7 +158,7 @@ def _reverse(self, seqlen=0):
159158
160159class LocationTuple (tuple ):
161160 """
162- Tuple of locations
161+ Tuple of contiguous locations, describing the position of a feature
163162 """
164163 def __new__ (cls , locs = None , start = None , stop = None , strand = '+' ):
165164 if start is not None or stop is not None :
@@ -196,7 +195,7 @@ def range(self):
196195
197196 :returns:
198197 tuple ``start, stop`` with start and stop location
199- (Python-style 0 based indexing )
198+ (zero- based numbering )
200199 """
201200 start = min (loc .start for loc in self )
202201 stop = max (loc .stop for loc in self )
@@ -706,7 +705,7 @@ def loc_range(self):
706705
707706 :returns:
708707 tuple ``start, stop`` with start and stop location
709- (Python-style 0 based indexing )
708+ (zero- based numbering )
710709 """
711710 start = sys .maxsize
712711 stop = - sys .maxsize
0 commit comments