# pick closest match in RT np.array([1.1,2.2,3.3,.8,5.5,6.6,.7,8.8]
# report:
# how close is the closest
# on which side is the precursor
# how wobbly is the mt (mz sd)
# how long is the mt (fwhm)
# are there others close? (next closest)
# computePeakArea(
# computeSmoothedPeakArea(
# findMaxByIntPeak(
# estimateFWHM(
# getFWHM(
# getSmoothedIntensities(
# getTraceLength(
# match_all = np.apply_along_axis(lambda a :np.isclose(mts_coord[:,0],a[0],atol=tol),1,ms2_coord) # boolean arrays indicating the (mis)matches in mst; shape = [ms2,mts]
# where_matches = np.apply_along_axis(lambda a : np.where(a),1,match_all) # does not work because each ms2 has different amount of matches; shape=[ms2,matching mts (49,60,...)]
tandem_spectrum_metrics_MS2['precursor_intensity'].append(precursor_int)# TODO different from mzid->mzml getPrecursors[0].getIntensity() ? YES, latter one usually zero
# TODO is there a difference between TIC as defined in MS:1000235 and the chromatogram you get from TRP?? In MZML it says its a MS:1000235 (ion current detected in each of a series of mass spectra) but is it?