The function of Ensembl gene identifier ENSG00000104219 (ZDHHC2, zDHHC palmitoyltransferase 2) is as follows. Palmitoyltransferase that catalyzes the addition of palmitate onto various protein substrates and is involved in a variety of cellular processes (PubMed:18296695, PubMed:18508921, PubMed:19144824, PubMed:21343290, PubMed:22034844, PubMed:23793055). Has no stringent fatty acid selectivity and in addition to palmitate can also transfer onto target proteins myristate from tetradecanoyl-CoA and stearate from octadecanoyl-CoA (By similarity). In the nervous system, plays a role in long term synaptic potentiation by palmitoylating AKAP5 through which it regulates protein trafficking from the dendritic recycling endosomes to the plasma membrane and controls both structural and functional plasticity at excitatory synapses (By similarity). In dendrites, mediates the palmitoylation of DLG4 when synaptic activity decreases and induces synaptic clustering of DLG4 and associated AMPA- type glutamate receptors (By similarity). Also mediates the de novo and turnover palmitoylation of RGS7BP, a shuttle for Gi/o-specific GTPase- activating proteins/GAPs, promoting its localization to the plasma membrane in response to the activation of G protein-coupled receptors. Through the localization of these GTPase-activating proteins/GAPs, it also probably plays a role in G protein-coupled receptors signaling in neurons (By similarity). Also probably plays a role in cell adhesion by palmitoylating CD9 and CD151 to regulate their expression and function (PubMed:18508921). Palmitoylates the endoplasmic reticulum protein CKAP4 and regulates its localization to the plasma membrane (PubMed:18296695, PubMed:19144824). Could also palmitoylate LCK and regulate its localization to the plasma membrane (PubMed:22034844). {ECO:0000250|UniProtKB:P59267, ECO:0000250|UniProtKB:Q9JKR5, ECO:0000269|PubMed:18296695, ECO:0000269|PubMed:18508921, ECO:0000269|PubMed:19144824, ECO:0000269|PubMed:21343290, ECO:0000269|PubMed:22034844, ECO:0000269|PubMed:23793055}. (Microbial infection) Promotes Chikungunya virus (CHIKV) replication by mediating viral nsp1 palmitoylation. .