#NEWLINE# def invert( self , lcontig ) : #NEWLINE# #INDENT# 'invert genomic coordinates from forward to reverse coordinates and\n        back.\n\n        Arguments\n        ---------\n        lcontig : int\n           Length of the chromosome that the feature resides on.\n        ' #NEWLINE# if ( self . strand in ( '-' , '0' , '-1' ) ) : #NEWLINE# #INDENT# x = min ( self . start , self . end ) #NEWLINE# y = max ( self . start , self . end ) #NEWLINE# self . start = ( lcontig - y ) #NEWLINE# self . end = ( lcontig - x )