The new technique could be useful in early testing of cancer drugs and in understanding drug resistance.