Ordered phases of DNA in vivo and in vitro