N-methyltransferase activity [GO_0008170] - Virtual Fly Brain