public static void main(String[] args) throws Exception
	{
		HashMap<String, DeMultiplex> sampleIDs = getBarcodeMap();
		System.out.println(sampleIDs.size());
		
		HashSet<Integer> sampleID = new HashSet<Integer>();
		
		for( DeMultiplex d : sampleIDs.values())
		{
			if( sampleID.contains(d.sampleID))
				throw new Exception("No");
			
			sampleID.add(d.sampleID);
		}
		
		System.out.println(sampleID);
		System.out.println(sampleID.size());
		
		
		BufferedReader reader = new BufferedReader(
					new FileReader(new File(
				ConfigReader.getIanNov2015Dir() + File.separator + 
				"behavbugs_noindex_l001_r2_001" +  File.separator + "mcsmm" + 
						File.separator + "mcsmm.behavbugsn")));
		
		long numRead =0;
		long numMatched =0;
		for( FastQ fastq = FastQ.readOneOrNull(reader); fastq != null; 
				fastq = FastQ.readOneOrNull(reader))
		{
			numRead++;
			
			for( String s : sampleIDs.keySet())
				if( fastq.getSequence().startsWith(s))
					numMatched++;
			
			if( numRead % 10000 == 0 )
				System.out.println(numRead  + " " + numMatched + " " + ((double)numMatched) / numRead);
		}
		
		System.out.println(numRead  + " " + numMatched + " " + ((double)numMatched) / numRead);
		reader.close();
	}