Skip to content

NSAF abundance index of the proteins in one sample

ms_label_free_abundance

Works out each protein's NSAF, a spectral-count abundance index relative within one sample.

Runs
Held: built, not on the server yet
Level
Tested, not reference-checked

Why it is held. No fault has been recorded. The checks this server requires before it lists a library tool are not finished for every method this tool uses. It is built, and the full check and confirmation this server requires of a library tool are not yet complete for every method it uses. Full check: edges and refusals not tested; no outside comparison.

What it is

Returns each protein's NSAF, a spectral-count abundance index relative within one sample, from counts and lengths. Use when a person has spectral counts and lengths in residues for every protein in one sample and asks for relative abundance. Not for a list cut to fit: every value is relative to the proteins sent; use Crux spectral-counts locally; at most one thousand proteins. For q-values, use `ms_target_decoy_fdr`; for reporter intensities, use `ms_isobaric_impurity_correction`. Not a molar amount.

Field: Analytical chemistry.

What it does

You give

  • index (required): The abundance index; only NSAF is offered; emPAI and iBAQ are not.
  • proteins (required): Every protein in one sample, as counted; row k of the reply is proteins[k]; label, count and length are in inputsUsed. Send the whole list: every value is relative to it.
  • sharedSpectraBasis (required): How spectra from peptides shared between proteins were counted.

No request is shown while this tool is held.

Limits

  • Research arithmetic: each number follows from the formula, sequence or values you give, by the method and any constants named on the tool, and describes those inputs rather than the sample or instrument they came from.
  • It is not an identification, a validated quantification or a check of an instrument, and it is not for diagnosis or treatment decisions.
  • Uses the spectral counts and lengths you state; does not map peptides, distribute shared spectra or compare samples; an index relative within one sample, not a molar amount.
  • Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.

It will not answer when

  • every protein has zero spectra, so the sum is zero.
Every input, with its units3 inputs
  • index (required): The abundance index; only NSAF is offered; emPAI and iBAQ are not.
  • proteins (required): Every protein in one sample, as counted; row k of the reply is proteins[k]; label, count and length are in inputsUsed. Send the whole list: every value is relative to it.
  • sharedSpectraBasis (required): How spectra from peptides shared between proteins were counted.
Every refusal, with its code1 refusal
CodeWhen
ALL_ZERO_SPECTRAevery protein has zero spectra, so the sum is zero.

The calculation

The method's equations, constants and worked example.

Normalised spectral abundance factor of the proteins in one samplensaf@1.0.1

NSAF_N = (s_N / L_N) / sum over the proteins sent of (s_i / L_i)

SymbolMeaning
N, ia protein of the list (proteins[k]); i runs over every protein sent
s_N / L_Nspectra per residue of protein N (rows[k].spectraPerResidue); its sum over the proteins sent is spectraPerResidueSum
s_Nspectra matched to protein N (spectralCount): under unique-only, spectra of peptides unique to it; under shared-counted-to-each, a shared peptide's spectra counted for each protein it maps to; the basis does not change the arithmetic
L_Nlength of protein N in residues, as stated
NSAF_Nnormalised spectral abundance factor of protein N

Source 1.

Conventions

  • SUM_OVER_PROTEINS_SUPPLIED = the proteins sent: Fixed by the method; not an argument. The sum runs over the proteins sent, where McIlwain sums over the protein database; proteins with no spectra change nothing.
  • SHARED_SPECTRA_NOT_DISTRIBUTED = not distributed: Fixed by the method; not an argument. Shared spectra are not distributed between proteins; dNSAF, which distributes them, is not offered.
  • index = nsaf: NSAF: each protein's spectra per residue over its sum across the proteins sent, unit one; the only index offered (index = nsaf)

A definition, not a model: the equation states what the quantity means. A different convention gives a different number.

Worked example

Worked example: one case of nsaf@1.0.1, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

Inputs

  • index = nsaf
  • proteins[0].label = A
  • proteins[0].spectralCount = 10
  • proteins[0].lengthResidues = 100
  • proteins[1].label = B
  • proteins[1].spectralCount = 20
  • proteins[1].lengthResidues = 400
  • proteins[2].label = C
  • proteins[2].spectralCount = 5
  • proteins[2].lengthResidues = 50
  • sharedSpectraBasis = unique-only

Steps

  1. a = 0.1, from proteins[0].spectralCount, proteins[0].lengthResidues; by the equation above; gives rows[0].spectraPerResidue.
  2. b = 0.05, from proteins[1].spectralCount, proteins[1].lengthResidues; by the equation above; gives rows[1].spectraPerResidue.
  3. c = 0.1, from proteins[2].spectralCount, proteins[2].lengthResidues; by the equation above; gives rows[2].spectraPerResidue.
  4. sum = 0.25, from a, b, c; by the equation above; gives spectraPerResidueSum.
  5. nA = 0.4, from a, sum; by the equation above; gives rows[0].nsaf.
  6. nB = 0.2, from b, sum; by the equation above; gives rows[1].nsaf.
  7. nC = 0.4, from c, sum; by the equation above; gives rows[2].nsaf.

The working, as the case writes it:

Spectra per residue 1/10, 1/20, 1/10

sum 1/4

NSAF 2/5, 1/5, 2/5, summing to one.

Answer

rows[0].spectraPerResidue = 0.1

rows[1].spectraPerResidue = 0.05

rows[2].spectraPerResidue = 0.1

spectraPerResidueSum = 0.25

rows[0].nsaf = 0.4

rows[1].nsaf = 0.2

rows[2].nsaf = 0.4

Where these values came from: our own exact-arithmetic script and a hand-worked case; exact rationals (Python fractions), by this script, from Drybench's rulings of 11 November 2026 on McIlwain et al. 2012.

At build the tool returned this answer within the tolerance the file states: Spectra per residue, their sum and NSAF within absolute 1e-12 (each rounded once from an exact quotient); texts, flags, statuses and codes exact.

Sources

  1. McIlwain S, Mathews M, Bereman MS, Rubel EW, MacCoss MJ, Noble WS. Estimating relative abundances of proteins from shotgun proteomics data. BMC Bioinformatics 2012;13:308 (NSAF after Paoletti AC et al., PNAS 2006;103:18928, its ref. 5, not read)

    Used for: Normalised spectral abundance factor of the proteins in one sample. At: equation display formula 1 (M1), section Implementation, Software (NSAF).

    Read in full, 24 November 2026

How it is checked

Level

Tested, not reference-checked.

Checked against

Our own exact-arithmetic script and a hand-worked case.

Cases

No case set is linked to this version.

Not checked

Paoletti et al. 2006 not read (NSAF as McIlwain 2012 states it); Crux spectral-counts was not run (its download asks for agreement to licensing terms); no second implementation or edge fixture yet; dNSAF, emPAI and iBAQ are not offered (Zhang 2010 and Ishihama 2005 unread); lengths are stated, not derived from a sequence; one session wrote the script and the engine.

Open

No fault has been recorded. The checks this server requires before it lists a library tool are not finished for every method this tool uses. It is built, and the full check and confirmation this server requires of a library tool are not yet complete for every method it uses. Full check: edges and refusals not tested; no outside comparison.

Changes to its methods0 changes

No change is logged for these method versions.