Analysis of cell migrations in C. elgans using computer simulations