carnitine O-acyltransferase activity [GO_0016406] - Virtual Fly Brain