8 ms·
So, I picked one at semi-random - http://rosalind.info/problems/prtm/ http://rosalind.info/problems/prtm/ and found a usability problem (a popup that doesn't wo
by eesmith 7y ago
So, I picked one at semi-random - http://rosalind.info/problems/prtm/ http://rosalind.info/problems/prtm/ and found a usability problem (a popup that doesn't work; in FF or Safari) and a wrong example answer. Here's the description.
> Given: A protein string P of length at most 1000 aa.
> Return: The total weight of P. Consult the monoisotopic mass table.
The "monoisotopic mass table" appears to be a link. I get a pop-up, but nothing appears in it, other than a spinner. I had to do a web search to find http://rosalind.info/glossary/monoisotopic-mass-table/ http://rosalind.info/glossary/monoisotopic-mass-table/ .
The page continues:
> Sample Dataset - SKADYEK
> Sample Output - 821.392
Using the monoisotopic mass table I computed:
>>> d = {'A': 71.03711, 'C': 103.00919, 'D': 115.02694,
'E': 129.04259, 'F': 147.06841, 'G': 57.02146,
'H': 137.05891, 'I': 113.08406, 'K': 128.09496,
'L': 113.08406, 'M': 131.04049, 'N': 114.04293,
'P': 97.05276, 'Q': 128.05858, 'R': 156.10111,
'S': 87.03203, 'T': 101.04768, 'V': 99.06841,
'W': 186.07931, 'Y': 163.06333}
>>> sum(d[c] for c in "SKADYEK")
821.3919199999999
This matches the example. BUT!!!!
This is NOT the correct answer because as the expanded text says, "the mass of a protein is the sum of masses of all its residues plus the mass of a single water molecule."
The table says "the monoisotopic mass of water is considered to be 18.01056" so
>>> 821.3919199999999 + 18.01056
839.40248
This latter number matches the value given by https://web.expasy.org/cgi-bin/compute_pi/pi_tool https://web.expasy.org/cgi-bin/compute_pi/pi_tool .
Which means the example answer ... is wrong. Yes?
How (in)correct are the other answers? I-am-not-a-bioinformatics-programmer.
- fao_ 7y agoI was going to suggest that the result was bad because of floating point error, but then I reread the value and, it doesn't seem like that amount of variance could be produced by errors introduced in the floating point calculations?
- patrec 7y agoYou sum 7 numbers all around 100. Assuming I didn't mess up, the maximal floating point error for that is ~100·7·2^-53 which is < 10^-13.
- mnemonicsloth 7y agoYou're right. Sometimes the answer key is wrong. I have to explain this to my professors from time to time, and it's always annoying. And in those cases I have paid money to be graded incorrectly. I would be happy if I were you though. The point of this exercise is to learn, and I'll bet you'll remember that water molecule for a long time :-)
- ihunter2839 7y agoThis site was developed by Pavel Pevzner, who teaches bioinformatics at UCSD. We used this site as the main curriculum in one of our final bioinformatics class, and after solving ~ 10 - 15 problems a week for 10 weeks, I don't recall a single time where the error was in the problem set solutions. Re: the problem - not a hundred percent on this, but I think the issue is that they are vague on the fact that this is a theoretical question, not a practical one. The key is that the question itself does not mention the addition of the water molecule, just that you have a sequence P with a dictionary of weights. Edit 1: If memory serves me correct, after the initial ionization phase of mass spectroscopy, the additional water molecule is discarded, making it insignificant in the analysis of your peptide sequences. Edit 2: If anyone is interested in following through this site, I would highly recommended using the existing problem tracks http://rosalind.info/problems/list-view/?location=bioinformatics-textbook-track http://rosalind.info/problems/list-view/?location=bioinforma... These will help lay out the problems in a logical order an ensure you have the skills you need to progress. Alignment problems are a great way to learn dynamic programming and will allow you to move onto some of these other problems (like mass spec and HMMs) more reasonably (at least, in my experience!) Good luck!
- eesmith 7y agoA closer reading shows that I got tripped up by what "residue" means. But I'm not sure the author of the question got it right either? At the very least, I'm confused by it. The first paragraph of the expanded question text has: "every pair of adjacent amino acids has lost one molecule of water, meaning that a polypeptide containing n amino acids has had n−1 water molecules removed" The second paragraph has: "Thus, the mass of a protein is the sum of masses of all its residues plus the mass of a single water molecule." The fifth paragraph has: "The mass of a protein is the sum of the monoisotopic masses of its amino acid residues plus the mass of a single water molecule" And the monoisotopic mass table says "Note: the monoisotopic mass of water is considered to be 18.01056 Da." So I thought that the water molecule was important in the calculation. However, the last paragraph (which I only now closely read) says it isn't important, with "In the following several problems on applications of mass spectrometry, we avoid the complication of having to distinguish between residues and non-residues by only considering peptides excised from the middle of the protein. This is a relatively safe assumption because in practice, peptide analysis is often performed in tandem mass spectrometry." Since it didn't mention "water", and instead used the specialist term "residue", I missed the connection earlier. That said, the text seems to use "residue" inconsistently. There's the definition "a residue is a molecule from which a water molecule has been removed; every amino acid in a protein are residues except the leftmost and the rightmost ones." but there's also the usage: "the mass of a protein is the sum of masses of all its residues plus the mass of a single water molecule" Surely that should be "the mass of a protein is the sum of masses of all its residues plus the mass of its leftmost and rightmost amino acids minus the mass of a single water molecule", yes? So I looked up the definition of "amino acid residue". It appears to be https://goldbook.iupac.org/terms/view/A00279 https://goldbook.iupac.org/terms/view/A00279 "α-Amino-acid residues are therefore structures that lack a hydrogen atom of the amino group (–NH–CHR–COOH), or the hydroxyl moiety of the carboxyl group (NH2–CHR–CO–), or both (–NH–CHR–COO–); all units of a peptide chain are therefore amino-acid residues". https://en.wikipedia.org/wiki/Protein_sequencing#Whole-mass_determination https://en.wikipedia.org/wiki/Protein_sequencing#Whole-mass_... also agrees that "residue" includes the two amino acids at the ends, saying "The protein’s whole mass is the sum of the masses of its amino-acid residues plus the mass of a water molecule and adjusted for any post-translational modifications" Which means ... I don't think the author uses the term "residue" correctly? Or, more likely, I'm confused by the specialist terminology. Can someone clear up my confusion?
- deleted 7y ago[deleted]
- DrScientist 7y agoAs an aside - monoisotopic mass is a strange one to use. In the real world you are a mixture of isotopes, so it's better to use the average mass ( average of the different isotope masses, corrected for abundance ) if you want to compare to experimentally determined masses - say from mass spec. It's not as if average mass is more complex - for the sake of these calculations it's still just a number looked up from a table... ie why oh why use the wrong value when it's just as easy to use the right one ()? () true it's biology so there isn't a right one in all circumstances - lots of interesting effects eg enzymes having slightly different rates of incorporation for different isotopes - however it's closer to the truth than mono-isotopic.
- eesmith 7y agohttps://en.wikipedia.org/wiki/Monoisotopic_mass#Monoisotopic_mass_in_spectrometry https://en.wikipedia.org/wiki/Monoisotopic_mass#Monoisotopic... points out: > The monoisotopic mass is not used frequently in fields outside of mass spectrometry because other fields cannot distinguish molecules of different isotopic composition. For this reason, mostly the average molecular mass or even more commonly the molar mass is used. For most purposes such as weighing out bulk chemicals only the molar mass is relevant since what one is weighing is a statistical distribution of varying isotopic compositions. > This concept is most helpful in mass spectrometry because individual molecules (or atoms, as in ICP-MS) are measured, and not their statistical average as a whole. Since mass spectrometry is often used for quantifying trace-level compounds, maximizing the sensitivity of the analysis is usually desired. By choosing to look for the most abundant isotopic version of a molecule, the analysis is likely to be most sensitive, which enables even smaller amounts of the target compounds to be quantified. Therefore, the concept is very useful to analysts looking for trace-level residues of organic molecules, such as pesticide residue in foods and agricultural products.
- DrScientist 7y agoHowever for proteins - which, even if broken down to small peptides in the mass spec, have large numbers of C, N, O, H atoms then monoisotopic makes no sense.