def get_alt(self, individual=<NUM_LIT:0>, nucleotides_only=True):
<EOL>if isinstance(individual, str):<EOL><INDENT>individual = self.individuals[individual]<EOL><DEDENT>if nucleotides_only:<EOL><INDENT>return [self.alt[i-<NUM_LIT:1>].replace('<STR_LIT:.>', '<STR_LIT>') for i in self.genotype[individual] if i > <NUM_LIT:0> and not self.alt[i-<NUM_LIT:1>].startswith('<STR_LIT:<>')]<EOL><DEDENT>else:<EOL><INDENT>return [self.alt[i-<NUM_LIT:1>].replace('<STR_LIT:.>', '<STR_LIT>') for i in self.genotype[individual] if i > <NUM_LIT:0>]<EOL><DEDENT>
Returns the alternative alleles of the individual as a list