Terminal deoxynucleotidyl transferase
Terminal deoxynucleotidyl transferase (TdT), also known as DNA nucleotidylexotransferase (DNTT) or terminal transferase, is a specialized DNA polymerase expressed in immature, pre-B, pre-T lymphoid cells, and acute lymphoblastic leukemia/lymphoma cells. TdT adds N-nucleotides to the V, D, and J exons of the TCR and BCR genes during antibody gene recombination, enabling the phenomenon of junctional diversity.  In humans, terminal transferase is encoded by the DNTT gene. As a member of the X family of DNA polymerase enzymes, it works in conjunction with polymerase  and polymerase , both of which belong to the same X family of polymerase enzymes. The diversity introduced by TdT has played an important role in the evolution of the vertebrate immune system, significantly increasing the variety of antigen receptors that a cell is equipped with to fight pathogens. Studies using TdT knockout mice have found drastic reductions (10-fold) in T-cell receptor (TCR) diversity compared with that of normal, or wild-type, systems. The greater diversity of TCRs that an organism is equipped with leads to greater resistance to infection.
TdT is absent in fetal liver HSCs, significantly impairing junctional diversity in B-cells during the fetal period.

# Function and regulation
TdT catalyses the addition of nucleotides to the 3' terminus of a DNA molecule. Unlike most DNA polymerases, it does not require a template. The preferred substrate of this enzyme is a 3'-overhang, but it can also add nucleotides to blunt or recessed 3' ends. Cobalt is a necessary cofactor, however the enzyme catalyzes reaction upon Mg and Mn administration in vitro.
TdT is expressed mostly in the primary lymphoid organs, like the thymus and bone marrow. Regulation of its expression occurs via multiple pathways. These include protein-protein interactions, like those with TdIF1. TdIF1 is another protein that interacts with TdT to inhibit its function by masking the DNA binding region of the TdT polymerase. The regulation of TdT expression also exists at the transcriptional level, with regulation influenced by stage-specific factors, and occurs in a developmentally restrictive manner. Although expression is typically found to be in the primary lymphoid organs, recent work has suggested that stimulation via antigen can result in secondary TdT expression along with other enzymes needed for gene rearrangement outside of the thymus for T-cells.

# Mechanism
Upon the action of the RAG 1/2 enzymes, the cleaved double stranded DNA is left with hairpin structures at the end of each DNA segment created by the cleavage event. The hairpins are both opened by the Artemis complex, which has endonuclease activity when phosphorylated, providing the free 3' OH ends for TdT to act upon. Once the Artemis complex has done its job and added palindromic nucleotides (P-nucleotides)  to the newly opened DNA hairpins, the stage is set for TdT to do its job. TdT is now able to come in and add N-nucleotides to the existing P-nucleotides in a 5' to 3' direction that polymerases are known to function. On average 2-5 random base pairs are added to each 3' end generated after the action of the Artemis complex. The number of bases added is enough for the two newly synthesized ssDNA segments to undergo micro homology alignment during non-homologous end joining according to the normal Watson-Crick base pairing patterns (A-T, C-G). From there unpaired nucleotides are excised by an exonuclease, like the Artemis Complex (which has exonuclease activity in addition to endonuclease activity), and then template dependent polymerases are able to fill the gaps, finally creating the new coding joint with the action of ligase to combine the segments. Although TdT does not discriminate among the four base pairs when adding them to the N-nucleotide segments, it has shown a bias for guanine and cytosine base pairs.
Polymerase  has also been found to exhibit similar template independent synthetic activity. Along with activity as a terminal transferase, it is known to also work in a template dependent fashion. This is interesting because TdT works exclusively via a template independent pathway for the addition of nucleotides.

# Uses
Terminal transferase has applications in molecular biology. It can be used in RACE to add nucleotides that can then be used as a template for a primer in subsequent PCR. It can also be used to add nucleotides labeled with radioactive isotopes, for example in the TUNEL assay (Terminal deoxynucleotidyl transferase dUTP Nick End Labeling) for the demonstration of apoptosis (which is marked, in part, by fragmented DNA). It is also used in the immunofluorescence assay for the diagnosis of acute lymphoblastic leukemia.
In immunohistochemistry, antibodies to TdT can be used to demonstrate the presence of immature T and B cells and pluripotent hematopoietic stem cells, which possess the antigen, while mature lymphoid cells are always TdT-negative. While TdT-positive cells are found in small numbers in healthy lymph nodes and tonsils, the malignant cells of acute lymphoblastic leukaemia are also TdT-positive, and the antibody can, therefore, be used as part of a panel to diagnose this disease and to distinguish it from, for example, small cell tumours of childhood.
TdT has also seen recent application in the De Novo synthesis of oligonucleotides, with TdT-dNTP tethered analogues capable of primer extension by 1 nt at a time.  In other words, the enzyme TdT has demonstrated the capability of making synthetic DNA by adding one letter at a time to a primer sequence.