(self, index)
return val
Returns the index allele of the alleles list
Returns the index allele of the alleles list
Returns the index allele of the alleles list
def __getitem__(self, index):
      """ Returns the index allele of the alleles list """
      if self.homogeneous:
         return self.allele_list[0]
      try:
         val = self.allele_list[index]
      except IndexError:
         Util.raiseException(
             """An error was occurred while finding allele for the %d position of chromosome.
             You may consider use the 'homogeneous' parameter of the GAlleles class.
             """ % (index,))
      return val
def __getitem__ ( self , index ) : if self . homogeneous : return self . allele_list [ 0 ] try : val = self . allele_list [ index ] except IndexError : Util . raiseException ( """An error was occurred while finding allele for the %d position of chromosome.
             You may consider use the 'homogeneous' parameter of the GAlleles class.
             """ % ( index , ) ) return val