Bicycles are entitled to take the lane if the lane width is smaller than 3.5 m. This is a large lane, since most cars are only 2 m wide. Also, bikes should stay at least 1.5 m from parked cars, to avoid carelessly opened doors.
Source: http://bikecalgary.org/safety and Calgary Cycling Safety Handbook (p. 6)