Colloidal polymers with controlled sequence and branching constructed from magnetic field assembled nanoparticles.