A method for computer-assisted analysis of one or more tissue sections of the human or animal body for preparing a digital stain test is provided. During the digital stain test, tissue zones in a tested tissue section with a predetermined clinical picture are detected. Spatially resolved hyperspectral data, particularly mass spectrometry data, is processed for a plurality of measurement positions. Multiple base spectra are determined from the hyperspectral data by obtaining base vectors. The base spectra are correlated with the hyperspectral data such that a plurality of correlation values for the base spectra is obtained for each measurement position. Subsequently, a regression model is calculated using a regression method, the regression model describing a mask of the one or more tissue sections, in which mask diseased tissue zones are marked based on the calculated correlation values. The regression model and the base spectra can then be used to conduct the digital stain test.
展开▼