Method for generating, and optionally detecting, an oligonucleotide that is specific for a starting nucleic acid, comprising the steps of:
- a) providing a dsDNA;
- b) restricting the dsDNA with at least one restriction endonuclease that restricts the dsDNA at two sites different from the recognition site of said restriction endonuclease, so as to provide a mixture of restricted fragments, said mixture comprising one or more fragments that contain the recognition site of the restriction endonuclease and one or more fragments that do not contain the recognition site of the restriction endonuclease used;
- c) ligating the first dsDNA to a second dsDNA, so as to provide a ligated dsDNA;
- d) amplifying the mixture of fragments obtained in step c);
- e) detecting at least one of the amplified fragments obtained in step d).