InputDSA: Demixing then Comparing Recurrent and Externally Driven Dynamics