Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xiAnnotator: two clusters with the same charge state and firstPeakid but different number of peaks #13

Open
lars-kolbowski opened this issue May 17, 2018 · 1 comment

Comments

@lars-kolbowski
Copy link
Member

Found something strange while looking through an annotation response. I noticed two clusters that seem to be duplicates (same charge and firstPeakId) but the number of peaks belonging to that cluster differs.
It looks like cluster 15 is a duplicate of cluster 14 only with 2 peaks less.
JSON request for this at the bottom.

cluster 14: {u'charge': 4, u'firstPeakId': 50}
Number of peaks with clusterId 14: 6
[{u'intensity': 367771.1875, u'clusterIds': [11, 14, 15], u'mz': 1138.0885009765625}, {u'intensity': 431464.125, u'clusterIds': [11, 12, 14, 15], u'mz': 1138.33642578125}, {u'intensity': 378532.59375, u'clusterIds': [11, 14, 15], u'mz': 1138.584716796875}, {u'intensity': 183980.390625, u'clusterIds': [11, 12, 13, 14, 15], u'mz': 1138.83154296875}, {u'intensity': 62690.01171875, u'clusterIds': [14, 16], u'mz': 1139.072998046875}, {u'intensity': 48702.94140625, u'clusterIds': [12, 14, 16], u'mz': 1139.3397216796875}]

cluster 15: {u'charge': 4, u'firstPeakId': 50}
Number of peaks with clusterId 15: 4
[{u'intensity': 367771.1875, u'clusterIds': [11, 14, 15], u'mz': 1138.0885009765625}, {u'intensity': 431464.125, u'clusterIds': [11, 12, 14, 15], u'mz': 1138.33642578125}, {u'intensity': 378532.59375, u'clusterIds': [11, 14, 15], u'mz': 1138.584716796875}, {u'intensity': 183980.390625, u'clusterIds': [11, 12, 13, 14, 15], u'mz': 1138.83154296875}]

JSON request:
{"LinkSite": [{"linkSite": 3, "id": 0, "peptideId": 0}, {"linkSite": 6, "id": 0, "peptideId": 1}], "Peptides": [{"sequence": [{"Modification": "", "aminoAcid": "A"}, {"Modification": "", "aminoAcid": "V"}, {"Modification": "", "aminoAcid": "E"}, {"Modification": "", "aminoAcid": "K"}, {"Modification": "", "aminoAcid": "L"}, {"Modification": "", "aminoAcid": "S"}, {"Modification": "", "aminoAcid": "V"}, {"Modification": "", "aminoAcid": "E"}, {"Modification": "", "aminoAcid": "A"}, {"Modification": "", "aminoAcid": "L"}, {"Modification": "", "aminoAcid": "N"}, {"Modification": "", "aminoAcid": "S"}, {"Modification": "", "aminoAcid": "L"}, {"Modification": "", "aminoAcid": "T"}, {"Modification": "", "aminoAcid": "G"}, {"Modification": "", "aminoAcid": "E"}, {"Modification": "", "aminoAcid": "F"}, {"Modification": "", "aminoAcid": "K"}]}, {"sequence": [{"Modification": "", "aminoAcid": "G"}, {"Modification": "", "aminoAcid": "K"}, {"Modification": "", "aminoAcid": "Y"}, {"Modification": "", "aminoAcid": "Y"}, {"Modification": "", "aminoAcid": "P"}, {"Modification": "", "aminoAcid": "L"}, {"Modification": "", "aminoAcid": "K"}, {"Modification": "", "aminoAcid": "S"}, {"Modification": "", "aminoAcid": "M"}, {"Modification": "", "aminoAcid": "T"}, {"Modification": "", "aminoAcid": "E"}, {"Modification": "", "aminoAcid": "Q"}, {"Modification": "", "aminoAcid": "E"}, {"Modification": "", "aminoAcid": "Q"}, {"Modification": "", "aminoAcid": "Q"}, {"Modification": "", "aminoAcid": "Q"}, {"Modification": "", "aminoAcid": "L"}, {"Modification": "", "aminoAcid": "I"}, {"Modification": "", "aminoAcid": "D"}, {"Modification": "", "aminoAcid": "D"}, {"Modification": "", "aminoAcid": "H"}, {"Modification": "", "aminoAcid": "F"}, {"Modification": "", "aminoAcid": "L"}, {"Modification": "", "aminoAcid": "F"}, {"Modification": "", "aminoAcid": "D"}, {"Modification": "", "aminoAcid": "K"}, {"Modification": "", "aminoAcid": "P"}, {"Modification": "", "aminoAcid": "V"}, {"Modification": "", "aminoAcid": "S"}, {"Modification": "", "aminoAcid": "P"}, {"Modification": "", "aminoAcid": "L"}, {"Modification": "", "aminoAcid": "L"}, {"Modification": "", "aminoAcid": "L"}, {"Modification": "", "aminoAcid": "A"}, {"Modification": "", "aminoAcid": "S"}, {"Modification": "", "aminoAcid": "G"}, {"Modification": "", "aminoAcid": "M"}, {"Modification": "", "aminoAcid": "A"}, {"Modification": "", "aminoAcid": "R"}]}], "peaks": [{"intensity": 6135.0634765625, "mz": 300.6128234863281}, {"intensity": 5978.58349609375, "mz": 342.039794921875}, {"intensity": 5858.51806640625, "mz": 350.8001403808594}, {"intensity": 6404.458984375, "mz": 367.07159423828125}, {"intensity": 6319.40673828125, "mz": 402.410888671875}, {"intensity": 7688.08740234375, "mz": 435.2239990234375}, {"intensity": 26355.6171875, "mz": 480.247314453125}, {"intensity": 6764.14599609375, "mz": 492.9193420410156}, {"intensity": 7218.390625, "mz": 514.2334594726562}, {"intensity": 20822.19921875, "mz": 521.25146484375}, {"intensity": 41014.13671875, "mz": 581.2953491210938}, {"intensity": 20874.01953125, "mz": 592.288818359375}, {"intensity": 6650.92919921875, "mz": 595.35107421875}, {"intensity": 9656.869140625, "mz": 627.3175048828125}, {"intensity": 6160.15625, "mz": 647.068603515625}, {"intensity": 6882.21435546875, "mz": 682.3784790039062}, {"intensity": 24645.29296875, "mz": 694.3842163085938}, {"intensity": 9427.17578125, "mz": 695.3877563476562}, {"intensity": 15568.517578125, "mz": 705.3770751953125}, {"intensity": 34915.6171875, "mz": 720.426025390625}, {"intensity": 26801.25, "mz": 720.928466796875}, {"intensity": 5996.1484375, "mz": 735.6485595703125}, {"intensity": 11653.7705078125, "mz": 763.4361572265625}, {"intensity": 45804.4296875, "mz": 781.4129028320312}, {"intensity": 20661.58984375, "mz": 782.4165649414062}, {"intensity": 22652.552734375, "mz": 795.4111328125}, {"intensity": 8315.4638671875, "mz": 796.4111328125}, {"intensity": 6730.974609375, "mz": 813.4104614257812}, {"intensity": 9268.8349609375, "mz": 815.4337158203125}, {"intensity": 15203.826171875, "mz": 878.4346923828125}, {"intensity": 113058.5859375, "mz": 895.4564819335938}, {"intensity": 51680.6796875, "mz": 896.461181640625}, {"intensity": 8199.2275390625, "mz": 897.4639282226562}, {"intensity": 6156.958984375, "mz": 902.9811401367188}, {"intensity": 7148.3076171875, "mz": 910.4885864257812}, {"intensity": 16847.912109375, "mz": 986.5274658203125}, {"intensity": 26274.486328125, "mz": 995.036376953125}, {"intensity": 29923.267578125, "mz": 995.5443725585938}, {"intensity": 19559.537109375, "mz": 1002.5162963867188}, {"intensity": 63432.484375, "mz": 1008.5408325195312}, {"intensity": 24314.32421875, "mz": 1009.5493774414062}, {"intensity": 24044.05859375, "mz": 1010.2730102539062}, {"intensity": 45230.171875, "mz": 1010.5260009765625}, {"intensity": 20608.322265625, "mz": 1011.0228271484375}, {"intensity": 22587.794921875, "mz": 1011.5227661132812}, {"intensity": 17839.166015625, "mz": 1013.4982299804688}, {"intensity": 17879.716796875, "mz": 1023.5366821289062}, {"intensity": 19055.517578125, "mz": 1023.8768920898438}, {"intensity": 72029.109375, "mz": 1079.578369140625}, {"intensity": 128072.296875, "mz": 1137.844970703125}, {"intensity": 367771.1875, "mz": 1138.0885009765625}, {"intensity": 431464.125, "mz": 1138.33642578125}, {"intensity": 378532.59375, "mz": 1138.584716796875}, {"intensity": 183980.390625, "mz": 1138.83154296875}, {"intensity": 62690.01171875, "mz": 1139.072998046875}, {"intensity": 48702.94140625, "mz": 1139.3397216796875}, {"intensity": 90016.9765625, "mz": 1143.25830078125}, {"intensity": 93611.9296875, "mz": 1143.5909423828125}, {"intensity": 119993.5, "mz": 1145.8360595703125}, {"intensity": 297128.9375, "mz": 1146.079833984375}, {"intensity": 320893.90625, "mz": 1146.328369140625}, {"intensity": 243681.5, "mz": 1146.576171875}, {"intensity": 195826.140625, "mz": 1146.8272705078125}, {"intensity": 111218.3125, "mz": 1208.625}, {"intensity": 67773.140625, "mz": 1209.6273193359375}, {"intensity": 60999.9375, "mz": 1215.9462890625}, {"intensity": 64025.29296875, "mz": 1222.6300048828125}, {"intensity": 53591.6328125, "mz": 1222.830810546875}, {"intensity": 48278.53515625, "mz": 1223.0321044921875}, {"intensity": 22537.62109375, "mz": 1256.4407958984375}, {"intensity": 33114.60546875, "mz": 1259.64501953125}, {"intensity": 85880.859375, "mz": 1259.8436279296875}, {"intensity": 79792.4765625, "mz": 1260.0460205078125}, {"intensity": 115755.203125, "mz": 1260.2447509765625}, {"intensity": 50702.640625, "mz": 1260.44140625}, {"intensity": 37909.07421875, "mz": 1260.6419677734375}, {"intensity": 20535.34765625, "mz": 1285.4520263671875}, {"intensity": 20395.03515625, "mz": 1289.064697265625}, {"intensity": 42152.36328125, "mz": 1289.258544921875}, {"intensity": 56273.109375, "mz": 1289.458251953125}, {"intensity": 62310.1015625, "mz": 1289.657958984375}, {"intensity": 35206.5625, "mz": 1289.8604736328125}, {"intensity": 37420.7109375, "mz": 1307.6920166015625}, {"intensity": 22787.10546875, "mz": 1308.68603515625}, {"intensity": 14809.349609375, "mz": 1311.7486572265625}, {"intensity": 22489.6328125, "mz": 1346.6961669921875}, {"intensity": 25443.69921875, "mz": 1347.0264892578125}, {"intensity": 21772.47265625, "mz": 1347.364501953125}, {"intensity": 19481.00390625, "mz": 1357.35546875}, {"intensity": 18008.5390625, "mz": 1357.6798095703125}, {"intensity": 18193.267578125, "mz": 1377.6951904296875}, {"intensity": 9321.6220703125, "mz": 1378.2042236328125}, {"intensity": 55366.3125, "mz": 1394.722412109375}, {"intensity": 32133.1875, "mz": 1395.73095703125}, {"intensity": 19638.94140625, "mz": 1396.7318115234375}, {"intensity": 10725.5107421875, "mz": 1453.69091796875}, {"intensity": 18524.77734375, "mz": 1471.741943359375}, {"intensity": 14362.123046875, "mz": 1471.9923095703125}, {"intensity": 12734.99609375, "mz": 1472.232177734375}, {"intensity": 11283.857421875, "mz": 1556.2535400390625}, {"intensity": 8957.6083984375, "mz": 1629.17431640625}, {"intensity": 8713.7626953125, "mz": 1990.0966796875}], "annotation": {"ions": [{"type": "PeptideIon"}, {"type": "BIon"}, {"type": "YIon"}], "modifications": [], "fragmentTolerance": {"tolerance": "10", "unit": "ppm"}, "precursorCharge": 6, "custom": ["loss:CleavableCrossLinkerPeptide:MASS:54.0105647;NAME:A", "loss:CleavableCrossLinkerPeptide:MASS:103.9932001;NAME:S", "loss:CleavableCrossLinkerPeptide:MASS:85.9826354;NAME:T"], "precursorMZ": 1098.564086914063, "cross-linker": {"modMass": 158.0037648}}}

@lutzfischer
Copy link
Member

This is basically down to some code I did (more or less) did take over from the previous version of xi and then modified.
If a cluster gets to long (5 peaks or longer) it can get broken up into two cluster. But the old cluster still exists - probably does not make so much sense two keep the long cluster + the short cluster that starts at the same point.

@colin-combe colin-combe transferred this issue from another repository May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants