Analysis of DNA sequences using methods of statistical physics