Metabolomics enables the structure elucidation of a diatom sex pheromone.