Polyglutamine domain flexibility mediates the proximity between flanking sequences in huntingtin