Measuring cancer cell state can reveal drug susceptibility