Dynamic self-assembly of compartmentalized DNA nanotubes