Deformation of nanotubes to control conductivity