AffyPowerToolsProbesetSummarize { protected Map<String, Map<String, String>> loadMpsNames() { try { PropertiesConfiguration pc = ConfigUtils .loadClasspathConfig( AffyPowerToolsProbesetSummarize.AFFY_MPS_PROPERTIES_FILE_NAME ); Map<String, Map<String, String>> result = new HashMap<>(); for ( Iterator<String> it = pc.getKeys(); it.hasNext(); ) { String k = it.next(); String[] k2 = k.split( "\\." ); String platform = k2[0]; String type = k2[1]; if ( !result.containsKey( platform ) ) { result.put( platform, new HashMap<String, String>() ); } result.get( platform ).put( type, pc.getString( k ) ); } return result; } catch ( ConfigurationException e ) { throw new RuntimeException( e ); } } AffyPowerToolsProbesetSummarize();   AffyPowerToolsProbesetSummarize( QuantitationType qt ); static BioAssay matchBioAssayToCelFileName( Map<String, BioAssay> bmap, String fileName );  }
@Test public void testLoadMPSNames() { AffyPowerToolsProbesetSummarize t = new AffyPowerToolsProbesetSummarize(); Map<String, Map<String, String>> mpsnames = t.loadMpsNames(); assertEquals( "MoGene-2_1-st.mps", mpsnames.get( "GPL17400" ).get( "mps" ) ); assertEquals( "RaEx-1_0-st-v1.r2.pgf", mpsnames.get( "GPL6543" ).get( "pgf" ) ); }