code: def is_affected(self):
          
          phenotype = self.phenotype
          if phenotype == '1':
              return False
          elif phenotype == '2':
              return True
          else:
              return False
docs: Boolean for telling if the sample is affected.