Sequences and topology: from genome structure to protein structure.