public PeakData(String[] data) {
		clear();
		
		peakNum = data.length;
		if (data.length == 1) {
			if (data[0].split("\t")[0].equals("0") && data[0].split("\t")[1].equals("0")) {
				peakNum = 0;
			}
		}
		mz = new double[peakNum];
		intensity = new int[peakNum];
		selectPeakFlag = new boolean[peakNum];
		String[] words;
		for (int i=0; i<peakNum; i++) {
			words = data[i].split("\t");
			mz[i] = Double.parseDouble(words[0]);
			intensity[i] = Integer.parseInt(words[1]);
		}
	}