This protocol describes the steps for in vivo ontogenetic manipulation in mice, including assembly of fiber-ferrules, surgical implantation of fibers, and testing procedure.