return "0";
}
case identification_charge:
return peptideAssumption.getIdentificationCharge().toString();
case isotope:
Precursor precursor = SpectrumFactory.getInstance().getPrecursor(spectrumKey);
return peptideAssumption.getIsotopeNumber(precursor.getMz()) + "";
case mz:
precursor = SpectrumFactory.getInstance().getPrecursor(spectrumKey);
return precursor.getMz() + "";
case total_spectrum_intensity:
Spectrum spectrum = SpectrumFactory.getInstance().getSpectrum(spectrumKey);
return spectrum.getTotalIntensity() + "";
case max_intensity:
spectrum = SpectrumFactory.getInstance().getSpectrum(spectrumKey);
return spectrum.getMaxIntensity() + "";
case intensity_coverage:
spectrum = SpectrumFactory.getInstance().getSpectrum(spectrumKey);
double coveredIntensity = 0;
Peptide peptide = peptideAssumption.getPeptide();
ArrayList<IonMatch> matches = peptideSpectrumAnnotator.getSpectrumAnnotation(
annotationPreferences.getIonTypes(), annotationPreferences.getNeutralLosses(), annotationPreferences.getValidatedCharges(),
peptideAssumption.getIdentificationCharge().value,
(MSnSpectrum) spectrum, peptide, 0, searchParameters.getFragmentIonAccuracy(), false, true);
for (IonMatch ionMatch : matches) {
coveredIntensity += ionMatch.peak.intensity;
}
double coverage = 100 * coveredIntensity / spectrum.getTotalIntensity();
return coverage + "";
case mz_error:
precursor = SpectrumFactory.getInstance().getPrecursor(spectrumKey);
return peptideAssumption.getDeltaMass(precursor.getMz(), true) + "";
case rt:
precursor = SpectrumFactory.getInstance().getPrecursor(spectrumKey);
return precursor.getRt() + "";
case algorithm_score:
int id = peptideAssumption.getAdvocate();
double score = peptideAssumption.getScore();
return Advocate.getAdvocate(id).getName() + " (" + score + ")";
case sequence:
return peptideAssumption.getPeptide().getSequence();
case missed_cleavages:
String sequence = peptideAssumption.getPeptide().getSequence();
return Peptide.getNMissedCleavages(sequence, searchParameters.getEnzyme()) + "";
case modified_sequence:
return peptideAssumption.getPeptide().getTaggedModifiedSequence(searchParameters.getModificationProfile(), false, false, true) + "";
case spectrum_charge:
precursor = SpectrumFactory.getInstance().getPrecursor(spectrumKey);
return precursor.getPossibleChargesAsString() + "";
case spectrum_file:
String spectrumFile = Spectrum.getSpectrumFile(spectrumKey);
return spectrumFile;
case spectrum_scan_number:
return SpectrumFactory.getInstance().getSpectrum(spectrumKey).getScanNumber();