Protool/structure.py
def resnum(self,uniqueid):
        """Given a uniqueid this function returns the residue number"""
        import string
        if len(string.split(uniqueid,','))>1:
            return string.split(uniqueid,':')[0]+':'+string.zfill(string.split(uniqueid,':')[1],self.length_of_residue_numbers)+','+string.split(uniqueid,',')[1]
        else:
            return string.split(uniqueid,':')[0]+':'+string.zfill(string.split(uniqueid,':')[1],self.length_of_residue_numbers)
Given a uniqueid this function returns the residue number
Given a uniqueid this function returns the residue number
Given a uniqueid this function returns the residue number
def resnum(self,uniqueid):
        import string
        if len(string.split(uniqueid,','))>1:
            return string.split(uniqueid,':')[0]+':'+string.zfill(string.split(uniqueid,':')[1],self.length_of_residue_numbers)+','+string.split(uniqueid,',')[1]
        else:
            return string.split(uniqueid,':')[0]+':'+string.zfill(string.split(uniqueid,':')[1],self.length_of_residue_numbers)
def resnum ( self , uniqueid ) : import string if len ( string . split ( uniqueid , ',' ) ) > 1 : return string . split ( uniqueid , ':' ) [ 0 ] + ':' + string . zfill ( string . split ( uniqueid , ':' ) [ 1 ] , self . length_of_residue_numbers ) + ',' + string . split ( uniqueid , ',' ) [ 1 ] else : return string . split ( uniqueid , ':' ) [ 0 ] + ':' + string . zfill ( string . split ( uniqueid , ':' ) [ 1 ] , self . length_of_residue_numbers )
Given a uniqueid this function returns the residue number
Given a uniqueid this function returns the residue number
"""Given a uniqueid this function returns the residue number"""
self
uniqueid