Thermal stability and conformation of DNA and proteins under the confined condition in the matrix of hydrogels