(self)
return ret
Return a string representation of the allele
Return a string representation of the allele
Return a string representation of the allele
def __repr__(self):
      """ Return a string representation of the allele """
      ret = "- GAlleles\n"
      ret += "\tHomogeneous:\t %s\n" % (self.homogeneous,)
      ret += "\tList size:\t %s\n" % (len(self),)
      ret += "\tAlleles:\n\n"
      if self.homogeneous:
         ret += "Allele for position 0:\n"
         ret += self.allele_list[0].__repr__()
      else:
         for i in xrange(len(self)):
            ret += "Allele for position %d:\n" % (i,)
            ret += self.allele_list[i].__repr__()
      return ret
def __repr__ ( self ) : ret = "- GAlleles\n" ret += "\tHomogeneous:\t %s\n" % ( self . homogeneous , ) ret += "\tList size:\t %s\n" % ( len ( self ) , ) ret += "\tAlleles:\n\n" if self . homogeneous : ret += "Allele for position 0:\n" ret += self . allele_list [ 0 ] . __repr__ ( ) else : for i in xrange ( len ( self ) ) : ret += "Allele for position %d:\n" % ( i , ) ret += self . allele_list [ i ] . __repr__ ( ) return ret