Complex sentence: Anderson's own beliefs in the power of spiritual healing and Buddhism provided inspiration; she wanted to write a script in which Scully pursued a "deeply personal X-File, one which in (she) is taken down a spiritual path when logic fails her".
Split into simpler sentences: Anderson's own beliefs in the power of spiritual healing and Buddhism provided inspiration. She wanted to write a script in which Scully pursued a "deeply personal X-File, one which in (she) is taken down a spiritual path when logic fails her".