Programmable macroscopic supramolecular assembly through combined molecular recognition and magnetic field-assisted localization.