Nucleic acids from sequence to structure to function