@staticmethod<EOL><INDENT>def _determine_supported_alleles(command, supported_allele_flag):<DEDENT>
try:<EOL><INDENT>supported_alleles_output = check_output([<EOL>command, supported_allele_flag<EOL>])<EOL>supported_alleles_str = supported_alleles_output.decode("<STR_LIT:ascii>", "<STR_LIT:ignore>")<EOL>assert len(supported_alleles_str) > <NUM_LIT:0>,'<STR_LIT>' % command<EOL>supported_alleles = set([])<EOL>for line in supported_alleles_str.split("<STR_LIT:\n>"):<EOL><INDENT>line = line.strip()<EOL>if not line.startswith('<STR_LIT:#>') and len(line) > <NUM_LIT:0>:<EOL><INDENT>try:<EOL><INDENT>supported_alleles.add(normalize_allele_name(line))<EOL><DEDENT>except AlleleParseError as error:<EOL><INDENT>logger.info("<STR_LIT>", line, error)<EOL>continue<EOL><DEDENT><DEDENT><DEDENT>if len(supported_alleles) == <NUM_LIT:0>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>return supported_alleles<EOL><DEDENT>except Exception as e:<EOL><INDENT>logger.exception(e)<EOL>raise SystemError("<STR_LIT>" % (<EOL>command,<EOL>supported_allele_flag))<EOL><DEDENT>
Try asking the commandline predictor (e.g. netMHCpan)
which alleles it supports.