示例#1
0
 /** Sets the path configuration. */
 private void setPathConfiguration() throws IOException {
   File pathConfigurationFile =
       new File(PeptideShaker.getJarFilePath(), UtilitiesPathPreferences.configurationFileName);
   if (pathConfigurationFile.exists()) {
     PeptideShakerPathPreferences.loadPathPreferencesFromFile(pathConfigurationFile);
   }
 }
示例#2
0
 /** Loads the species from the species file into the species factory. */
 private void loadSpecies() {
   try {
     SpeciesFactory speciesFactory = SpeciesFactory.getInstance();
     speciesFactory.initiate(PeptideShaker.getJarFilePath());
   } catch (Exception e) {
     System.out.println("An error occurred while loading the species.");
     e.printStackTrace();
   }
 }