geneFactory.initialize(geneMappingsFile, null);
goFactory.initialize(goMappingsFile, progressDialog);
PSParameter psParameter = new PSParameter();
Identification identification = peptideShakerGUI.getIdentification();
identification.loadProteinMatchParameters(psParameter, null);
progressDialog.setTitle("Getting GO Mappings (2/3). Please Wait...");
progressDialog.setPrimaryProgressCounterIndeterminate(false);
progressDialog.setMaxPrimaryProgressCounter(identification.getProteinIdentification().size());
progressDialog.setValue(0);
int totalNumberOfGoMappedProteinsInProject = 0;
for (String proteinKey : identification.getProteinIdentification()) {
psParameter = (PSParameter) peptideShakerGUI.getIdentification().getProteinMatchParameter(proteinKey, psParameter);
if (psParameter.getMatchValidationLevel().isValidated() && !ProteinMatch.isDecoy(proteinKey) && !psParameter.isHidden()) {
ArrayList<String> goTerms = goFactory.getProteinGoAccessions(proteinKey);