return proteinMatch.getMainMatch();
case protein_description:
return SequenceFactory.getInstance().getHeader(proteinMatch.getMainMatch()).getSimpleProteinDescription();
case ensembl_gene_id:
if (!proteinMatch.isDecoy()) {
GeneFactory geneFactory = GeneFactory.getInstance();
String geneName = geneFactory.getGeneNameForUniProtProtein(proteinMatch.getMainMatch());
if (geneName != null) {
String ensemblId = geneFactory.getGeneEnsemblId(geneName);
if (ensemblId != null) {
return ensemblId;
}
}
}
return "";
case gene_name:
if (!proteinMatch.isDecoy()) {
GeneFactory geneFactory = GeneFactory.getInstance();
String geneName = geneFactory.getGeneNameForUniProtProtein(proteinMatch.getMainMatch());
if (geneName != null) {
return geneName;
}
}
return "";
case chromosome:
if (!proteinMatch.isDecoy()) {
GeneFactory geneFactory = GeneFactory.getInstance();
String geneName = geneFactory.getGeneNameForUniProtProtein(proteinMatch.getMainMatch());
if (geneName != null) {
String chromosome = geneFactory.getChromosomeForGeneName(geneName);
if (chromosome != null) {
return chromosome;
}
}
}