Proteome Informatics Group > Java Proteomic Library
 

Recipe 3.3. Creating a MS binned peak list

Problem

We want to bin a MS peak list.

Solution

A bin peak list is a kind of compressed peak list defined by intervals of mass-to-charge ratio values.

PeakList peaklist =
	new PeakListImpl.Builder(mzs).intensities(intensities).build();

PeakList bins =
	new BinnedPeakListImpl.Builder(peaklist).mzMin(700).mzMax(770)
		        .binWidth(10).build();

Discussion

See Also