Show the flaw by printing the error message.
Show the flaw by printing the error message.
the method where the error occurred
the error message
Get all the masses for n atoms of element e, so long as its relative abundance (probability) is above threshold thres.
Get all the masses for n atoms of element e, so long as its relative abundance (probability) is above threshold thres. Return a set (mass, prob) tuples.
the given element (e.g, "O" for Oxygen)
the number of such atoms in the molecule (e.g., 2 in CO2)
Given an elemental composition, a set of (element, atom count) tuples, of an organic molecule, simulate its spectrum, a set of (mass, probability) tuples.
Given an elemental composition, a set of (element, atom count) tuples, of an organic molecule, simulate its spectrum, a set of (mass, probability) tuples.
the elemental composition of an organic molecule
This class calculates the masses and corresponding probabilities for organic molecules, providing a Monte Carlo simulation of their mass spectra.