Wires and pipes are best placed through holes drilled into the joists or the sub floor to ensure that the flooring never rests on the wires or pipes.

Another way to accomplish this is to cut notches in the tops of the joists deep enough to carry the wires or pipes without the floor covering resting on top of them.