The present disclosure relates to methods for the detection of melanoma and non-Hodgkin's lymphoma using attenuated total reflection Fourier transform infrared (ATR-FTIR) spectroscopy. Further disclosed are methods for treating melanoma and non-Hodgkin's lymphoma, based on differences in infrared absorbance.