Albion Rovers' late winner against Queen of the South secures a Scottish Cup tie against Celtic as St Mirren fire five past Spartans.
Queen's Park Football
Rangers v Motherwell and Kilmarnock v Hamilton are the two all-Premiership ties in the Scottish Cup fourth round.
Leaders Livingston are stunned at home by Peterhead in Scottish League One, ending a three-match winning run.
Brechin City miss the chance to go top of Scottish League One as they slip to defeat at Airdrie's Excelsior Stadium.