The invention generally relates to methods of performing a capture reaction. In certain embodiments, the method involves obtaining a nucleic acid, fragmenting the nucleic acid, and capturing a target sequence on the nucleic acid fragment using a capture moiety, such as a molecular inversion probe.