ArrayList<Double> doubleValues = new ArrayList<Double>();
doubleValues.add(sequenceCoverageConfident);
doubleValues.add(sequenceCoverageDoubtful);
doubleValues.add(sequenceCoverageNotValidated);
doubleValues.add(possibleCoverage - sequenceCoverageConfident - sequenceCoverageDoubtful - sequenceCoverageNotValidated);
ArrrayListDataPoints arrrayListDataPoints = new ArrrayListDataPoints(doubleValues, JSparklinesArrayListBarChartTableCellRenderer.ValueDisplayType.sumExceptLastNumber);
return arrrayListDataPoints;
case 7:
if (isScrolling) {
return null;
}
proteinMatch = identification.getProteinMatch(proteinKey, useDB);
if (!useDB && (proteinMatch == null
|| !identificationFeaturesGenerator.nValidatedPeptidesInCache(proteinKey)
&& !identification.proteinDetailsInCache(proteinKey))) {
dataMissingAtRow(row);
return DisplayPreferences.LOADING_MESSAGE;
}
double nConfidentPeptides = identificationFeaturesGenerator.getNConfidentPeptides(proteinKey);
double nDoubtfulPeptides = identificationFeaturesGenerator.getNValidatedPeptides(proteinKey) - nConfidentPeptides;
doubleValues = new ArrayList<Double>();
doubleValues.add(nConfidentPeptides);
doubleValues.add(nDoubtfulPeptides);
doubleValues.add(proteinMatch.getPeptideCount() - nConfidentPeptides - nDoubtfulPeptides);
arrrayListDataPoints = new ArrrayListDataPoints(doubleValues, JSparklinesArrayListBarChartTableCellRenderer.ValueDisplayType.sumOfNumbers);
return arrrayListDataPoints;
case 8:
if (isScrolling) {
return null;
}
proteinMatch = identification.getProteinMatch(proteinKey, useDB);
if (!useDB
&& (!identificationFeaturesGenerator.nValidatedSpectraInCache(proteinKey)
|| !identificationFeaturesGenerator.nSpectraInCache(proteinKey))
&& (proteinMatch == null || !identification.proteinDetailsInCache(proteinKey))) {
dataMissingAtRow(row);
return DisplayPreferences.LOADING_MESSAGE;
}
double nConfidentSpectra = identificationFeaturesGenerator.getNConfidentSpectra(proteinKey);
double nDoubtfulSpectra = identificationFeaturesGenerator.getNValidatedSpectra(proteinKey) - nConfidentSpectra;
int nSpectra = identificationFeaturesGenerator.getNSpectra(proteinKey);
doubleValues = new ArrayList<Double>();
doubleValues.add(nConfidentSpectra);
doubleValues.add(nDoubtfulSpectra);
doubleValues.add(nSpectra - nConfidentSpectra - nDoubtfulSpectra);
arrrayListDataPoints = new ArrrayListDataPoints(doubleValues, JSparklinesArrayListBarChartTableCellRenderer.ValueDisplayType.sumOfNumbers);
return arrrayListDataPoints;
case 9:
if (isScrolling) {
return null;
}