it is really interesting watching the seven samurai and the magnificent 7 back to back.
you can see how the characters were changed between each version.
But beat for beat or major scenes were taken whole cloth out of the seven samurai.