OpenIslet

scripts/verify_iip0058_armz_ensc_isletsort_v2_and_2p24_portfolio.py

Provisional IIP-0058 / DEC-139 / GATE-37 / GY-036 (Round-14 Blueprint Alignment; staged in iip0058/):

script Release v0.8.0 gen-eb955f8266035aba 837 KB · 62 sections

Use this file in any AI chat (paste-only or attachment-capable):

Download as text (.txt) Download section (.txt)

Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/verify_iip0058_armz_ensc_isletsort_v2_and_2p24_portfolio.py · SHA-256: 33439d619c00fcc3…

    "10": {"deposited_glycan_atom_count":0,"mg":[9.028,-1.86,-2.244],"core_ca":{"172":[-17.257,0.466,-3.447],"173":[-14.036,-0.506,-1.665],"174":[-10.674,-0.922,-3.426],"175":[-7.752,-2.747,-1.801],"176":[-4.357,-1.675,-3.12],"177":[-1.55,-4.125,-2.252],"206":[-23.385,-5.333,-1.457],"207":[-19.825,-4.709,-0.238],"208":[-17.998,-4.367,-3.566],"209":[-14.288,-5.155,-3.098],"210":[-11.575,-4.993,-5.782],"211":[-7.938,-6.139,-5.508],"240":[-3.854,-12.851,-6.71],"241":[-0.286,-13.535,-5.6],"242":[2.732,-11.404,-6.417],"243":[5.838,-13.038,-7.875],"244":[8.101,-9.95,-7.694],"245":[8.263,-6.146,-7.844],"246":[10.928,-3.472,-7.116],"275":[-13.37,3.521,0.465],"276":[-9.684,3.136,-0.427],"277":[-7.596,0.684,1.595],"278":[-3.857,0.874,0.83],"279":[-1.081,-1.191,2.393],"280":[2.576,-0.09,2.451],"305":[-7.265,3.701,5.421],"306":[-3.545,3.037,5.866],"307":[-2.27,-0.496,6.513],"308":[1.35,-1.169,7.509],"309":[3.083,-4.455,6.752],"310":[6.133,-5.29,8.841]},"patch_atoms":{"238":[[-6.899,-14.396,-2.303],[-5.862,-15.4,-2.119],[-5.317,-15.981,-3.427],[-4.271,-16.629,-3.417],[-6.298,-16.511,-1.153],[-7.647,-17.13,-1.474],[-7.943,-18.39,-0.676],[-7.221,-19.596,-1.284],[-7.297,-20.772,-0.41]],"239":[[-5.994,-15.739,-4.548],[-5.557,-16.186,-5.861],[-4.572,-15.183,-6.467],[-3.658,-15.594,-7.181],[-6.763,-16.312,-6.811],[-7.45,-17.682,-6.764],[-8.729,-17.693,-7.611],[-9.523,-18.996,-7.467],[-10.862,-18.91,-8.072]],"241":[[-1.578,-13.505,-6.252],[-0.286,-13.535,-5.6],[0.714,-12.754,-6.435],[0.627,-12.726,-7.666],[0.183,-14.988,-5.389],[-0.732,-15.714,-4.399],[0.285,-15.784,-6.693]],"292":[[-0.33,15.376,-3.992],[-1.318,15.739,-4.991],[-2.479,14.741,-5.016],[-3.64,15.147,-4.996],[-0.662,15.81,-6.384],[-0.96,17.132,-7.098],[-2.457,17.373,-7.339],[-3.008,16.536,-8.497],[-4.385,16.92,-8.834]],"295":[[-4.603,15.092,-1.883],[-5.373,16.323,-1.945],[-6.621,16.115,-2.807],[-7.709,16.57,-2.46],[-4.507,17.441,-2.537],[-5.213,18.8,-2.553],[-4.387,19.834,-3.296],[-3.521,20.486,-2.721],[-4.66,19.996,-4.581]],"296":[[-6.46,15.379,-3.906],[-7.532,15.041,-4.824],[-8.58,14.166,-4.136],[-9.772,14.465,-4.193],[-6.975,14.279,-6.029],[-6.397,15.118,-7.15],[-6.136,16.326,-6.972],[-6.186,14.546,-8.24]],"298":[[-9.031,13.895,-0.943],[-9.564,14.689,0.153],[-10.683,15.607,-0.351],[-11.709,15.751,0.313],[-8.437,15.532,0.776],[-8.82,16.199,2.108],[-8.363,17.65,2.178],[-9.129,18.533,1.749],[-7.237,17.89,2.653]],"299":[[-10.523,16.167,-1.556],[-11.516,17.032,-2.19],[-12.757,16.232,-2.595],[-13.885,16.711,-2.488],[-10.913,17.692,-3.445],[-11.753,18.863,-3.948],[-11.529,19.992,-3.469],[-12.61,18.658,-4.828]],"300":[[-12.544,14.978,-3.003],[-13.611,14.061,-3.372],[-14.271,13.461,-2.121],[-15.309,12.811,-2.236],[-13.008,12.942,-4.243],[-13.491,12.961,-5.694],[-14.874,12.334,-5.853],[-15.876,12.99,-5.511],[-14.957,11.176,-6.311]],"333":[[-7.256,13.211,11.994],[-7.796,12.708,13.251],[-6.93,11.538,13.758],[-6.091,11.044,12.995],[-9.276,12.314,13.004],[-9.559,11.222,11.967],[-11.03,10.799,11.959],[-11.708,10.881,13.006],[-11.494,10.317,10.906]]},"patch_ca":{"238":[-5.862,-15.4,-2.119],"239":[-5.557,-16.186,-5.861],"241":[-0.286,-13.535,-5.6],"292":[-1.318,15.739,-4.991],"295":[-5.373,16.323,-1.945],"296":[-7.532,15.041,-4.824],"298":[-9.564,14.689,0.153],"299":[-11.516,17.032,-2.19],"300":[-13.611,14.061,-3.372],"333":[-7.796,12.708,13.251]},"asn_sequon_atoms":{"217":[[4.354,-1.676,-12.388],[3.132,-1.741,-13.159],[1.947,-1.713,-12.198],[2.121,-1.797,-10.979],[3.107,-3.007,-14.032],[4.306,-3.139,-14.962],[5.309,-3.762,-14.619],[4.22,-2.551,-16.144]],"317":[[17.59,-1.897,9.22],[17.162,-0.693,9.929],[16.891,0.42,8.91],[17.656,1.372,8.754],[18.234,-0.257,10.945],[17.785,0.945,11.784],[16.595,1.186,11.98],[18.737,1.744,12.235]],"341":[[-1.908,-2.394,11.536],[-0.987,-3.355,10.953],[-1.753,-4.505,10.316],[-2.819,-4.899,10.791],[-0.05,-3.927,12.031],[0.979,-2.913,12.521],[1.332,-1.96,11.835],[1.461,-3.092,13.739]]},"seg_338_358_ca":{"338":[-7.469,5.041,10.487],"339":[-4.188,3.116,10.555],"340":[-3.3,-0.42,11.63],"341":[-0.987,-3.355,10.953],"342":[-1.731,-6.22,8.527],"343":[-1.042,-8.728,11.333],"344":[-4.046,-7.334,13.313],"345":[-7.319,-8.999,12.255],"346":[-9.164,-7.358,15.207],"347":[-8.223,-3.959,13.705],"348":[-10.596,-4.863,10.853],"349":[-13.436,-5.069,13.424],"350":[-12.38,-1.667,14.829],"351":[-12.582,-0.291,11.257],"352":[-16.109,-1.754,10.947],"353":[-17.069,0.072,14.18],"354":[-15.669,3.244,12.577],"355":[-17.446,2.57,9.221],"356":[-20.707,2.051,11.167],"357":[-20.751,5.835,11.785],"358":[-22.646,8.401,9.687]},"seg_338_358_heavy":[[-7.744,4.887,11.916],[-7.469,5.041,10.487],[-6.302,4.214,9.977],[-6.199,3.972,8.773],[-7.272,6.514,10.11],[-8.523,7.214,9.692],[-8.885,7.402,8.368],[-9.493,7.793,10.465],[-10.019,8.096,8.367],[-10.412,8.36,9.609],[-5.399,3.83,10.871],[-4.188,3.116,10.555],[-4.045,1.909,11.465],[-4.332,1.988,12.661],[-2.99,4.068,10.625],[-1.645,3.402,10.738],[-1.003,2.939,9.586],[-1.063,3.196,12.003],[0.224,2.292,9.694],[0.165,2.523,12.111],[0.813,2.065,10.951],[-3.567,0.804,10.902],[-3.3,-0.42,11.63],[-2.319,-1.309,10.884],[-1.922,-1.021,9.756],[-4.616,-1.125,11.998],[-5.516,-1.447,10.827],[-5.388,-2.676,10.162],[-6.498,-0.529,10.414],[-6.248,-2.986,9.102],[-7.348,-0.842,9.343],[-7.237,-2.081,8.695],[-1.908,-2.394,11.536],[-0.987,-3.355,10.953],[-1.753,-4.505,10.316],[-2.819,-4.899,10.791],[-0.05,-3.927,12.031],[0.979,-2.913,12.521],[1.332,-1.96,11.835],[1.461,-3.092,13.739],[-1.169,-5.089,9.267],[-1.731,-6.22,8.527],[-1.909,-7.449,9.427],[-2.821,-8.252,9.238],[-0.813,-6.56,7.33],[-1.276,-7.805,6.565],[-0.745,-5.401,6.347],[-1.047,-7.591,10.43],[-1.042,-8.728,11.333],[-2.144,-8.605,12.401],[-2.261,-9.491,13.247],[0.339,-8.788,12.023],[1.367,-8.203,11.226],[-2.953,-7.538,12.376],[-4.046,-7.334,13.313],[-5.384,-7.527,12.598],[-5.854,-6.654,11.87],[-3.941,-5.93,13.94],[-4.661,-5.858,15.281],[-5.766,-6.42,15.391],[-4.093,-5.261,16.218],[-6.005,-8.689,12.813],[-7.319,-8.999,12.255],[-8.441,-8.356,13.081],[-9.523,-8.112,12.555],[-7.513,-10.527,12.225],[-7.401,-11.239,13.586],[-7.824,-12.697,13.502],[-9.03,-12.961,13.691],[-6.937,-13.553,13.306],[-8.194,-8.042,14.359],[-9.164,-7.358,15.207],[-9.283,-5.891,14.788],[-10.345,-5.29,14.931],[-8.726,-7.432,16.681],[-9.688,-6.755,17.675],[-10.955,-7.591,17.86],[-8.996,-6.489,19.006],[-8.223,-5.319,14.213],[-8.223,-3.959,13.705],[-9.251,-3.765,12.592],[-9.823,-2.684,12.466],[-6.844,-3.61,13.175],[-9.552,-4.841,11.857],[-10.596,-4.863,10.853],[-11.953,-4.636,11.5],[-12.719,-3.827,11.004],[-10.604,-6.206,10.111],[-9.292,-6.531,9.387],[-9.346,-7.956,8.834],[-9.041,-5.521,8.282],[-12.211,-5.254,12.657],[-13.436,-5.069,13.424],[-13.544,-3.624,13.916],[-14.613,-3.021,13.844],[-13.48,-6.029,14.633],[-14.815,-5.907,15.382],[-13.234,-7.479,14.219],[-12.431,-3.048,14.374],[-12.38,-1.667,14.829],[-12.712,-0.713,13.67],[-13.423,0.277,13.852],[-10.978,-1.34,15.379],[-10.51,-2.383,16.223],[-11.01,-0.055,16.207],[-12.25,-1.038,12.459],[-12.582,-0.291,11.257],[-14.067,-0.405,10.933],[-14.658,0.58,10.507],[-11.656,-0.702,10.075],[-10.805,0.506,9.64],[-12.399,-1.262,8.849],[-9.948,1.114,10.756],[-14.684,-1.565,11.17],[-16.109,-1.754,10.947],[-16.898,-0.864,11.907],[-17.858,-0.219,11.495],[-16.52,-3.23,11.131],[-18.038,-3.41,11.012],[-15.841,-4.139,10.111],[-16.463,-0.787,13.169],[-17.069,0.072,14.18],[-16.978,1.546,13.773],[-17.894,2.325,14.031],[-16.359,-0.116,15.528],[-16.527,-1.508,16.133],[-17.845,-1.644,16.894],[-17.97,-3.022,17.547],[-19.071,-3.066,18.52],[-15.891,1.903,13.084],[-15.669,3.244,12.577],[-16.506,3.477,11.309],[-17.05,4.558,11.124],[-14.175,3.431,12.239],[-13.361,3.002,13.324],[-13.867,4.909,11.995],[-16.653,2.474,10.442],[-17.446,2.57,9.221],[-18.948,2.497,9.502],[-19.755,2.851,8.644],[-17.071,1.428,8.258],[-15.715,1.596,7.559],[-15.4,0.346,6.732],[-15.703,2.841,6.671],[-19.329,2.094,10.715],[-20.707,2.051,11.167],[-21.24,3.431,11.546],[-22.424,3.567,11.854],[-20.382,4.456,11.519],[-20.751,5.835,11.785],[-21.505,6.425,10.583],[-21.69,5.783,9.544],[-19.47,6.658,12.052],[-19.343,7.133,13.506],[-20.462,8.072,13.921],[-20.968,8.787,13.046],[-20.864,8.053,15.099],[-21.953,7.669,10.738],[-22.646,8.401,9.687],[-21.645,9.065,8.734],[-21.972,9.296,7.57],[-23.564,9.46,10.326],[-22.868,10.549,11.156],[-23.783,11.185,12.196],[-24.344,10.19,13.128],[-25.646,10.027,13.386],[-26.554,10.79,12.783],[-26.043,9.096,14.246]],"collagen_heavy":[[13.618,-36.938,-2.855],[12.402,-37.136,-2.86],[14.545,-37.882,-3.592],[14.187,-35.919,-2.21],[13.437,-34.93,-1.451],[13.177,-33.677,-2.287],[14.116,-33.178,-2.916],[11.929,-33.165,-2.33],[11.571,-31.988,-3.124],[12.323,-30.73,-2.642],[12.535,-30.576,-1.435],[10.07,-31.795,-2.931],[9.564,-33.12,-2.417],[10.748,-33.762,-1.715],[12.753,-29.84,-3.552],[13.527,-28.651,-3.192],[12.602,-27.631,-2.517],[11.399,-27.582,-2.791],[14.027,-28.065,-4.517],[13.739,-29.122,-5.565],[12.633,-29.99,-4.997],[14.87,-29.968,-5.722],[13.161,-26.796,-1.65],[12.414,-25.752,-0.977],[12.123,-24.556,-1.882],[12.742,-24.411,-2.94],[11.186,-23.683,-1.475],[10.808,-22.508,-2.256],[11.828,-21.368,-2.097],[12.635,-21.399,-1.166],[9.461,-22.09,-1.669],[9.513,-22.552,-0.226],[10.399,-23.793,-0.247],[11.796,-20.347,-2.976],[12.691,-19.184,-2.915],[12.704,-18.527,-1.537],[11.679,-18.469,-0.854],[12.152,-18.209,-3.958],[11.418,-19.087,-4.951],[10.906,-20.268,-4.133],[12.324,-19.6,-5.913],[13.874,-18.052,-1.124],[14.044,-17.412,0.161],[13.496,-15.999,0.197],[12.946,-15.493,-0.785],[13.658,-15.357,1.354],[13.193,-14.0,1.596],[13.845,-13.02,0.609],[15.049,-13.079,0.385],[13.5,-13.605,3.052],[12.887,-12.275,3.522],[11.395,-12.443,3.828],[13.619,-11.744,4.749],[13.084,-12.095,0.02],[13.628,-11.09,-0.881],[14.513,-10.093,-0.129],[14.352,-9.884,1.075],[12.381,-10.427,-1.444],[11.365,-10.539,-0.339],[11.661,-11.895,0.252],[10.043,-10.429,-0.804],[15.453,-9.477,-0.84],[16.314,-8.46,-0.272],[15.542,-7.19,0.051],[14.588,-6.837,-0.647],[15.959,-6.501,1.109],[15.33,-5.273,1.56],[15.736,-4.102,0.665],[16.543,-4.235,-0.251],[15.722,-4.994,3.029],[17.207,-4.673,3.299],[18.057,-5.929,3.389],[18.496,-6.43,2.336],[18.238,-6.442,4.507],[15.177,-2.929,0.952],[15.448,-1.702,0.217],[16.926,-1.325,0.229],[17.669,-1.667,1.153],[14.618,-0.542,0.793],[13.675,0.046,-0.236],[14.062,0.295,-1.371],[12.428,0.242,0.146],[17.349,-0.619,-0.812],[18.73,-0.231,-0.972],[19.14,0.925,-0.063],[18.277,1.615,0.488],[20.454,1.136,0.121],[20.972,2.174,1.008],[20.898,3.546,0.304],[20.871,3.599,-0.935],[22.447,1.828,1.236],[22.656,0.473,0.595],[21.524,0.296,-0.396],[20.886,4.656,1.064],[20.804,6.004,0.507],[22.079,6.355,-0.259],[23.171,5.907,0.103],[20.643,6.956,1.69],[20.318,6.069,2.875],[20.827,4.679,2.519],[18.912,5.981,3.01],[21.951,7.161,-1.312],[23.076,7.588,-2.127],[24.032,8.542,-1.403],[23.757,8.975,-0.278],[25.182,8.86,-2.021],[26.201,9.709,-1.409],[25.766,11.186,-1.498],[24.971,11.539,-2.38],[27.465,9.526,-2.255],[27.142,8.435,-3.256],[25.63,8.326,-3.298],[26.283,12.062,-0.616],[25.949,13.487,-0.609],[26.365,14.161,-1.918],[27.292,13.712,-2.598],[26.744,14.093,0.55],[27.086,12.913,1.435],[27.156,11.715,0.499],[26.017,12.68,2.339],[25.69,15.252,-2.265],[25.993,15.995,-3.474],[27.302,16.779,-3.39],[27.908,16.885,-2.318],[27.74,17.359,-4.517],[28.967,18.143,-4.573],[28.767,19.567,-4.025],[27.632,20.056,-3.95],[29.307,18.202,-6.06],[27.962,18.114,-6.755],[27.108,17.25,-5.829],[29.856,20.278,-3.687],[29.789,21.629,-3.154],[29.555,22.646,-4.25],[30.678,23.21,-4.813],[31.095,21.847,-2.373],[31.916,20.575,-2.575],[31.231,19.8,-3.693],[31.938,19.768,-1.408],[28.384,22.939,-4.685],[13.109,-32.763,2.516],[12.796,-33.622,1.691],[12.329,-32.609,3.803],[14.135,-31.937,2.338],[14.954,-31.966,1.145],[15.837,-30.731,1.042],[16.001,-30.008,2.032],[16.436,-30.498,-0.144],[17.361,-29.393,-0.387],[16.663,-28.038,-0.188],[15.497,-27.899,-0.569],[17.791,-29.517,-1.847],[17.47,-30.945,-2.226],[16.322,-31.357,-1.317],[17.33,-27.041,0.412],[16.719,-25.739,0.676],[16.521,-24.988,-0.646],[17.147,-25.304,-1.662],[17.726,-24.987,1.55],[18.687,-26.05,2.044],[18.663,-27.141,0.992],[18.19,-26.655,3.23],[15.658,-23.978,-0.635],[15.4,-23.179,-1.82],[16.528,-22.212,-2.171],[17.498,-22.077,-1.416],[16.405,-21.517,-3.313],[17.415,-20.57,-3.769],[17.299,-19.229,-3.026],[16.257,-18.951,-2.419],[17.108,-20.378,-5.252],[15.61,-20.601,-5.357],[15.295,-21.617,-4.26],[18.352,-18.389,-3.062],[18.355,-17.08,-2.402],[17.248,-16.188,-2.966],[16.859,-16.326,-4.129],[19.725,-16.469,-2.708],[20.596,-17.645,-3.101],[19.643,-18.679,-3.683],[21.171,-18.217,-1.937],[16.742,-15.271,-2.148],[15.705,-14.351,-2.579],[16.198,-13.348,-3.613],[17.402,-13.183,-3.83],[15.254,-12.67,-4.259],[15.565,-11.697,-5.292],[16.131,-10.408,-4.683],[15.754,-10.061,-3.556],[14.303,-11.355,-6.091],[13.764,-12.508,-6.944],[12.369,-12.15,-7.459],[14.698,-12.823,-8.113],[17.038,-9.713,-5.401],[17.667,-8.48,-4.934],[16.628,-7.397,-4.667],[15.658,-7.273,-5.419],[18.585,-8.024,-6.067],[18.861,-9.285,-6.85],[17.614,-10.139,-6.677],[19.935,-9.988,-6.242],[16.842,-6.613,-3.615],[15.94,-5.548,-3.224],[15.807,-4.426,-4.246],[16.473,-4.392,-5.282],[14.927,-3.489,-3.938],[14.627,-2.349,-4.785],[15.603,-1.208,-4.524],[16.265,-1.163,-3.492],[13.203,-1.859,-4.498],[12.627,-2.21,-3.13],[11.14,-2.092,-3.136],[10.575,-1.065,-2.748],[10.376,-3.06,-3.269],[15.678,-0.264,-5.461],[16.586,0.877,-5.397],[16.33,1.708,-4.142],[15.185,1.948,-3.783],[16.426,1.729,-6.671],[17.342,2.95,-6.685],[16.89,4.078,-6.509],[18.631,2.728,-6.885],[17.401,2.131,-3.479],[17.321,2.919,-2.27],[17.042,4.402,-2.51],[16.79,4.826,-3.643],[17.03,5.2,-1.429],[16.684,6.62,-1.48],[17.889,7.458,-1.956],[19.027,6.993,-1.934],[16.371,7.021,-0.034],[16.387,5.737,0.766],[17.166,4.733,-0.057],[17.685,8.712,-2.378],[18.768,9.556,-2.874],[19.672,10.018,-1.722],[19.337,9.875,-0.544],[18.098,10.78,-3.498],[16.608,10.493,-3.481],[16.387,9.346,-2.508],[16.213,10.017,-4.758],[20.814,10.606,-2.069],[21.736,11.158,-1.098],[21.388,12.589,-0.698],[20.642,13.263,-1.415],[21.902,13.065,0.452],[21.623,14.409,0.96],[22.239,15.493,0.053],[23.189,15.214,-0.682],[22.301,14.48,2.332],[22.55,13.042,2.72],[22.682,12.287,1.409],[21.732,16.735,0.091],[22.238,17.831,-0.741],[23.691,18.142,-0.388],[24.118,17.96,0.756],[21.361,19.038,-0.401],[20.127,18.448,0.254],[20.582,17.143,0.886],[19.187,18.105,-0.753],[24.456,18.611,-1.369],[25.847,18.95,-1.151],[26.025,20.193,-0.281],[25.115,21.027,-0.192],[27.21,20.354,0.334],[27.528,21.515,1.157],[27.517,22.824,0.356],[28.115,22.888,-0.722],[28.899,21.243,1.763],[29.504,20.178,0.876],[28.329,19.421,0.274],[26.862,23.885,0.848],[26.737,25.144,0.119],[28.044,25.907,0.089],[28.269,26.794,1.118],[25.579,25.893,0.797],[24.928,24.867,1.714],[26.045,23.906,2.056],[23.919,24.111,1.072],[28.938,25.691,-0.806],[10.582,-29.855,1.472],[10.409,-29.949,2.686],[9.559,-30.404,0.511],[11.653,-29.278,0.931],[12.713,-28.672,1.71],[12.325,-27.294,2.244],[11.284,-26.742,1.873],[13.168,-26.715,3.113],[12.914,-25.41,3.712],[13.173,-24.262,2.727],[13.922,-24.436,1.762],[13.892,-25.331,4.881],[15.049,-26.219,4.465],[14.418,-27.299,3.594],[12.583,-23.075,2.958],[12.777,-21.909,2.097],[14.251,-21.503,2.062],[15.002,-21.762,3.007],[11.946,-20.786,2.718],[10.996,-21.471,3.682],[11.646,-22.799,4.041],[9.773,-21.751,3.022],[14.668,-20.858,0.977],[16.036,-20.39,0.837],[16.382,-19.223,1.767],[15.535,-18.751,2.535],[17.625,-18.73,1.694],[18.083,-17.625,2.527],[17.7,-16.265,1.914],[17.33,-16.196,0.736],[19.599,-17.781,2.535],[19.924,-18.413,1.192],[18.692,-19.242,0.838],[17.784,-15.174,2.699],[17.464,-13.83,2.23],[18.382,-13.41,1.079],[19.578,-13.711,1.094],[17.661,-12.902,3.426],[17.612,-13.818,4.63],[18.082,-15.178,4.127],[16.267,-13.958,5.054],[17.827,-12.723,0.085],[18.576,-12.233,-1.057],[19.426,-11.017,-0.722],[19.529,-10.598,0.434],[20.045,-10.444,-1.752],[20.911,-9.289,-1.585],[20.099,-7.998,-1.473],[19.026,-7.904,-2.064],[21.872,-9.161,-2.776],[22.886,-10.307,-2.899],[23.785,-10.062,-4.112],[23.736,-10.465,-1.636],[20.584,-6.991,-0.729],[19.86,-5.737,-0.523],[19.736,-4.976,-1.845],[20.395,-5.291,-2.84],[20.718,-4.924,0.455],[21.688,-5.92,1.052],[21.83,-7.026,0.026],[21.132,-6.509,2.215],[18.898,-3.951,-1.849],[18.694,-3.126,-3.015],[19.906,-2.293,-3.391],[20.869,-2.184,-2.628],[19.86,-1.693,-4.575],[20.972,-0.913,-5.089],[20.986,0.468,-4.442],[19.97,0.957,-3.94],[20.86,-0.751,-6.612],[20.451,-2.033,-7.36],[19.136,-1.85,-8.099],[18.065,-2.041,-7.485],[19.185,-1.459,-9.281],[22.154,1.103,-4.476],[22.363,2.424,-3.914],[21.527,3.446,-4.677],[21.483,3.432,-5.91],[23.855,2.792,-4.003],[24.235,3.964,-3.103],[25.059,4.795,-3.467],[23.665,4.022,-1.91],[20.841,4.311,-3.935],[20.017,5.338,-4.533],[20.834,6.435,-5.215],[22.062,6.472,-5.077],[20.166,7.314,-5.986],[20.822,8.368,-6.759],[21.625,9.335,-5.869],[21.289,9.524,-4.7],[19.693,9.134,-7.444],[18.536,8.16,-7.473],[18.731,7.276,-6.251],[22.696,9.953,-6.383],[23.538,10.845,-5.586],[22.778,12.139,-5.288],[21.849,12.515,-6.008],[24.754,11.15,-6.467],[24.696,10.126,-7.586],[23.237,9.736,-7.715],[25.381,8.95,-7.178],[23.177,12.826,-4.222],[22.554,14.075,-3.828],[22.792,15.209,-4.826],[23.778,15.183,-5.57],[21.907,16.22,-4.838],[22.02,17.359,-5.742],[23.145,18.32,-5.323],[23.507,18.359,-4.141],[20.668,18.063,-5.653],[20.148,17.706,-4.274],[20.721,16.322,-3.991],[23.697,19.103,-6.271],[24.767,20.065,-6.0],[24.322,21.114,-4.984],[23.21,21.64,-5.071],[25.073,20.735,-7.341],[24.483,19.816,-8.394],[23.366,19.055,-7.695],[25.461,18.872,-8.802],[25.195,21.414,-4.022],[24.912,22.389,-2.984],[24.817,23.808,-3.552],[25.624,24.142,-4.428],[23.862,24.635,-3.086],[23.651,26.007,-3.557],[24.914,26.872,-3.38],[25.347,27.103,-2.245],[22.511,26.562,-2.703],[21.785,25.341,-2.19],[22.843,24.26,-2.116],[25.531,27.354,-4.47],[26.767,28.129,-4.409],[26.474,29.567,-4.046],[26.389,30.47,-5.084],[27.44,27.938,-5.781],[26.596,26.891,-6.493],[25.223,27.012,-5.852],[27.091,25.582,-6.229],[26.243,29.926,-2.836]]}
  }
}"""


# =============================================================================
# 3. PURE-STDLIB 3D GEOMETRY & FIXED 3x3 JACOBI KABSCH SUPERPOSITION ENGINE
# =============================================================================
PKA_POS = {"K": 10.53, "R": 12.48, "H": 6.00}
PKA_NEG = {"D": 3.86, "E": 4.25, "C": 8.33, "Y": 10.07}


def sidechain_charge_ph(aa: str, ph: float = 7.4) -> float:
    if aa in PKA_POS:
        return 1.0 / (1.0 + 10.0 ** (ph - PKA_POS[aa]))
    if aa in PKA_NEG:
        return -1.0 / (1.0 + 10.0 ** (PKA_NEG[aa] - ph))