Preparing chemically competent cells