A dominant influence of flanking sequences on a local structural transition in DNA