Algorithmic detection of elemental biosignatures