Some fascinating studies have been done in Germany where the metabolically active mycelium of some Psilocybe species have been administered diethyltryptamine as a potential diet component.
This mushroom species dutifully converts N, N-dimethyltryptamine (DMT) to psilocin, by introducing a 4-hydroxyl group into the molecule by something that is probably called an indole 4-hydroxylase by the biochemists.