  We discuss the effect of a magnetic thin-film ribbon at the surface of a
topological insulator on the charge and spin transport due to surface
electrons.\\ If the magnetization in the magnetic ribbon is perpendicular to
the surface of a topological insulator, it leads to a gap in the energy
spectrum of surface electrons. As a result, the ribbon is a barrier for
electrons, which leads to electrical resistance.\\ We have calculated
conductance of such a structure. The conductance reveal some oscillations with
the length of the magnetized region due to the interference of transmitted and
reflected waves. We have also calculated the Seebeck coefficient when electron
flux is due to a temperature gradient.
