Allison Janney is to guest star in five episodes of the new drama series, "Masters of Sex," now shooting in Los Angeles, Showtime announced Thursday.

The Emmy Award-winning star of "The West Wing" will play the role of Margaret Scully, the wife of Beau Bridges' character, University Provost Barton Scully, in "Masters of Sex."

Starring Michael Sheen and Lizzy Caplan, the show is about the real-life pioneers of the science of human sexuality, William Masters and Virginia Johnson.

It is to premiere Sept. 29.