Facile core-shell nanoparticles with controllable antibacterial activity assembled by chemical and biological molecules.