In this study, we found that TLX2 was associated with ribosomes, amphetamine addiction, cocaine addiction, alcoholism, and dopaminergic synapses in pan cancer. Here, TLX2 is linked to cocaine dependence.