Release evaluated DeepCDR-3D
Browse filesFiles changed (4)
- DeepCDR-3D/README.mdAdded+86
- DeepCDR-3D/amino_acid_vectors_30dim.jsonAdded+642
- DeepCDR-3D/model.ptAdded+3
- DeepCDR-3D/release_manifest.jsonAdded+29
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586---language: entags: - biology - antibody - protein - pytorch - graph-neural-network---
# DeepCDR-3D
DeepCDR-3D scores antibody–antigen pairs from an antibody CDR graph and anantigen-pocket graph. It is the structure-based interaction scorer used in[iMut-CDR-GC](https://github.com/linbuliao/iMut-CDR-GC), anaffinity-maturation-inspired antibody-design workflow.
## Files and implementation
- `model.pt`: the evaluated PyTorch tensor state dictionary, 24,285,608 bytes.- `amino_acid_vectors_30dim.json`: the exact residue-feature mapping.- `release_manifest.json`: file hashes and the source-code revision.
The model has 6,068,845 parameters. Separate graph-convolution branches encodethe antigen pocket and antibody CDRs; their pooled representations feed asigmoid classifier. Residue graphs use 30-dimensional features and CA contactsstrictly below 5 Å. The antigen enters the first branch and the antibody entersthe second. Preserve these input roles and the documented graph construction.
Source code and input preparation are provided by the[iMut-CDR-GC scoring package](https://github.com/linbuliao/iMut-CDR-GC/blob/main/docs/scoring.md).
## Download and load
```bashpip install "imut-cdr-gc[structure] @ git+https://github.com/linbuliao/iMut-CDR-GC@23dc11908d6e09b6e40feca2da4c503e9228d5c8" huggingface_hub```
```pythonimport hashlibfrom pathlib import Pathimport torchfrom huggingface_hub import snapshot_downloadfrom imut_cdr_gc.scoring._vendor.deepcdr3d_model import DeepCDR3DNet
repository = Path(snapshot_download( repo_id="linbuliao/iMut-CDR-GC", local_dir="assets/imut_cdr_gc", allow_patterns=["DeepCDR-3D/*"],))directory = repository / "DeepCDR-3D"weights = directory / "model.pt"expected = "35dd2b41dc4765ec08fd2cb09006811c6078c389845205b7772a76030c262672"assert hashlib.sha256(weights.read_bytes()).hexdigest() == expectedmodel = DeepCDR3DNet()model.load_state_dict(torch.load(weights, map_location="cpu", weights_only=True), strict=True)model.eval()```
For scoring, use `imut_cdr_gc.scoring.score_3d` with the candidate's actualnumbered antibody fold, its H/L sequences, the antigen pocket, and the pinnedfeature mapping. The linked documentation defines these inputs. This foldercontains a custom-network state dictionary, not a Transformers `AutoModel`.
## Training and evaluation scope
The retained processed training pool comprises 5,846 cognate pairs and 35,076constructed mismatched pairs. Mismatches are training negatives, notexperimentally measured nonbinders. Historical random validation does notestablish antibody-, antigen- or homology-disjoint performance.
Native/portable graph and forward-output agreement was checked on 60 actualantibody/pocket pairs. This checks implementation equivalence; it is not anexperimental affinity evaluation. The output is an interaction-classifierscore, not a measured binding affinity. Applicability and score distributionsmust be checked for each target; near-constant scores do not provide usefulwithin-target ranking.
## Related resources
- [iMut-CDR-GC code and reproducibility documentation](https://github.com/linbuliao/iMut-CDR-GC)- [DeepCDR-ESM2](https://github.com/haiping1010/DeepCDR_esm2), the sequence-based scorer used in the workflow.- [DeepGCN_Anti](https://github.com/haiping1010/DeepGCN_Anti), related dual-graph code provenance.
The model weights are released by the project authors. Public hosting does notassign a new license to third-party code or dependencies; retain their terms.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642{ "ALA": [ 13.266992211341858, -1.9081931211985648, -9.586760710924864, -1.59038707613945, -1.299408033490181, 1.4830965958535671, -6.2814327627420425, -4.988861538469791, -2.463971913792193, 1.3485463187098503, -1.7410510033369064, 9.137982174754143, -5.003446472808719, -0.3859543986618519, -1.0822423845529556, -4.928614854812622, 4.693410888314247, -3.391158554702997, -5.770751312375069, -10.123326063156128, -2.630828487686813, 3.2321896590292454, -0.16272076102904975, 0.8726783394813538, -2.6612116494216025, 5.660010773688555, -4.886752657592297, -3.1176595240831375, -2.3160136342048645, 4.195140842348337 ], "ARG": [ 25.346679717302322, -1.1322068669833243, -13.632545586675406, -6.393758362159133, -0.8286338653415442, -1.055324923247099, -14.138746378012002, -10.376035459339619, -6.115727186203003, 0.8110984489321709, 1.9922814425081015, 13.938838675618172, -6.88463026098907, -4.020069252699614, -5.112506031990051, -12.743127454072237, 13.648801708593965, -4.427720557898283, -8.921726264059544, -16.27657061815262, -3.5023246072232723, 7.059411760419607, -0.40128122898750007, 5.022374076768756, 6.441165525931865, 7.9201068840920925, -14.734914615750313, -7.018131300806999, -1.151648910716176, 5.5760790491476655 ], "ASN": [ 18.486888349056244, -1.2060676561668515, -13.951463159173727, -2.2355773467570543, 1.1782992631196976, 1.6239915154874325, -11.452826529741287, -7.130295097827911, -6.092224307358265, 1.0015816614031792, -1.2419217452406883, 10.413209110498428, -7.8572612926363945, -2.3058189917355776, 0.3080683946609497, -9.15265329927206, 10.539071902632713, -4.647411931306124, -6.441161081194878, -11.916545808315277, -3.8717492669820786, 4.489759389311075, 2.566243936540559, 0.38512706756591797, -1.1655786829069257, 8.809140522032976, -9.243173435330391, -7.069363491144031, -2.303179495036602, 6.45443718880415 ], "ASP": [ 20.489795982837677, -0.40511562395840883, -10.372270829975605, -0.8805179838091135, -0.17406202852725983, 3.1595835387706757, -11.792723804712296, -7.429185301065445, -5.591120816767216, 1.0757271945476532, -3.4314388558268547, 8.935787916183472, -8.13276743143797, -0.32528454065322876, -0.5472945533692837, -8.23628806322813, 11.700997218489647, -2.9982214979827404, -7.635237976908684, -13.676423966884613, -4.063217267394066, 4.657266620546579, 1.1866310187615454, 0.17485034465789795, -2.749257949180901, 9.710940528661013, -9.772440508008003, -5.586636637803167, -4.221823796629906, 6.863144122064114 ], "CYS": [ 15.183394134044647, -2.354939740151167, -9.079944167286158, -2.4534322638064623, -1.3847524747252464, 0.5061788782477379, -6.232766460627317, -2.9170520454645157, -4.640425987541676, 2.8098730370402336, 0.5821141749620438, 8.60544864833355, -7.055781921371818, -2.051806482486427, -3.275871217250824, -8.449712984263897, 8.800876691937447, -3.7703037187457085, -3.64112939639017, -9.23721894621849, -0.41481243446469307, 7.012863222509623, 0.00980844465084374, -0.3048102408647537, -1.765639100689441, 4.350602108985186, -6.66415186971426, -3.8499566167593002, -1.3455162048339844, 4.6601230734959245 ], "GLU": [ 22.329533576965332, -0.48479862976819277, -9.64759200066328, -2.4611457400023937, -1.1541691590100527, 3.195601798593998, -14.53995743393898, -8.702372714877129, -5.047916032373905, 2.1707843542099, -3.7809249460697174, 9.990553081035614, -8.341082077473402, -0.37627861462533474, -1.3172421418130398, -8.87343543022871, 12.847958713769913, -3.032981311902404, -9.402930200099945, -16.112304270267487, -5.508540868759155, 5.140880540013313, 0.323853496927768, 0.8616867940872908, -1.6942673632875085, 10.374857638031244, -11.558107033371925, -6.1123738549649715, -4.14402742870152, 6.660592311061919 ], "GLN": [ 20.3266259431839, -1.2857506619766355, -13.226784329861403, -3.8162051029503345, 0.19819213263690472, 1.6600097753107548, -14.200060158967972, -8.403482511639595, -5.549019522964954, 2.096638821065426, -1.591407835483551, 11.46797427535057, -8.065575938671827, -2.3568130657076836, -0.4618791937828064, -9.78980066627264, 11.68603339791298, -4.682171745225787, -8.208853304386139, -14.35242611169815, -5.317072868347168, 4.973373308777809, 1.7034664147067815, 1.0719635169953108, -0.11058809701353312, 9.473057631403208, -11.028839960694313, -7.595100708305836, -2.2253831271082163, 6.251885377801955 ], "GLY": [ 9.48911201953888, 0.22564189648255706, -4.396471302956343, -0.7319939155131578, -0.3646297752857208, 2.236902564764023, -6.2853673892095685, -4.842206373810768, -4.1431441605091095, 1.153573401272297, -0.6052835136651993, 4.694441393017769, -2.830526953563094, -1.3505954211577773, 0.8890450112521648, -4.912407353520393, 6.328760325908661, -1.3528665229678154, -4.996085904538631, -5.811155468225479, -4.235643278807402, 1.6915483998600394, 2.223000989528373, -0.766386091709137, 0.34669856494292617, 5.031692050397396, -6.095638871192932, -4.225467700511217, -1.4356619119644165, 3.036724917590618 ], "HIS": [ 21.935912251472473, -6.563724630046636, -10.708392392843962, -2.8246566373854876, -5.191391468048096, 0.524405088275671, -9.72430269792676, -8.546638210769743, -0.6751039372757077, 1.3110060305334628, -2.1034737285226583, 6.496642213314772, -5.484484244836494, -4.220035291276872, -4.292777347844094, -13.199244417250156, 9.40792291611433, -1.7165727615356445, -1.9160688668489456, -18.409118235111237, -4.799471337348223, 7.202737137675285, 3.155564056010917, 0.23676597222220153, -0.9015731338877231, 8.755162227898836, -9.578446507453918, -10.402983859181404, -5.161490695551038, 4.186098542995751 ], "ILE": [ 19.18083745241165, -5.3680264302529395, -12.366571743041277, -5.458627685904503, -4.1132670640945435, 0.3778278393438086, -12.300401091575623, -8.09865216165781, -0.9254689821973443, 3.5554676428437233, -4.261705532670021, 16.422096952795982, -6.065195879898965, 0.9159387610852718, -3.523803561925888, -6.963586982339621, 6.6324882954359055, -4.53180455416441, -7.960065171122551, -17.680580466985703, -3.491148072294891, 5.933194134384394, -3.654767519561574, 2.9791782684624195, -1.9726924286223948, 8.411072799935937, -8.488590367138386, -4.1291800029575825, -5.113509982824326, 4.325227994471788 ], "LEU": [ 20.352043986320496, -4.163905349094421, -11.687377627938986, -4.326629312708974, -2.8355107456445694, 1.2469375282526016, -12.352811723947525, -6.836133003234863, -3.2125081289559603, 2.427563063800335, -2.7163716200739145, 14.608021900057793, -6.984967483207583, -0.2669373555108905, -5.09837344288826, -6.0015569627285, 6.9300816655159, -5.5363807156682014, -6.655172465369105, -17.251988410949707, -2.816187324002385, 5.745933014899492, -3.5736947420518845, 2.6873199120163918, -2.4685099669732153, 7.437050882726908, -9.148140091449022, -4.330727368593216, -5.4540793895721436, 4.786933958530426 ], "LYS": [ 19.889713048934937, -2.7870700010098517, -8.177725244313478, -4.938890300691128, -2.8875742610543966, 1.6354139000177383, -15.493583410978317, -9.127883732318878, -4.87681307643652, 4.3412220403552055, -0.23465950787067413, 14.253444597125053, -5.808410378172994, -3.33260112721473, -5.206743896007538, -10.988665349781513, 10.850657016038895, -3.867402855306864, -7.437692277133465, -15.205599874258041, -4.6506154127418995, 5.8041789943818, 0.18255097535438836, -0.3175079096108675, 3.2524269721470773, 8.106198277324438, -13.67450262606144, -6.638708531856537, 0.6856351476162672, 3.133916813880205 ], "MET": [ 21.128001809120178, -2.5608990103937685, -7.928753521293402, -4.186293098144233, -1.9624127596616745, -1.248052291572094, -12.931062310934067, -7.745827093720436, -1.929419420659542, 3.3776822313666344, 2.583867534995079, 11.682367846369743, -4.7362954672425985, -3.8391138100996614, -4.237083777785301, -6.7161996476352215, 7.661617144942284, -2.8251379914581776, -5.221646375954151, -15.430224567651749, -2.1688747317530215, 4.594168294221163, 1.9780716684181243, 0.8598267938941717, -0.45448859268799424, 6.853034880012274, -7.502775147557259, -5.361163347959518, -4.136174054816365, 3.988160602748394 ], "PHE": [ 22.850041031837463, -9.756718742195517, -15.140382494777441, -0.7557885814458132, -8.520753428339958, 3.273754671216011, -13.393871530890465, -10.419912239070982, -0.3248952813446522, -1.2390956468880177, -6.45237971842289, 7.51761026121676, -5.645145657006651, -4.106050810776651, -1.3814349002204835, -13.294141344726086, 11.645185694098473, -4.363323539495468, -7.7253943383693695, -17.498735189437866, -0.7690622396767139, 10.032508615404367, 2.5898236634675413, 5.806232266128063, -1.5645215571857989, 12.54910870268941, -15.558030739426613, -15.864796057343483, -5.546481758356094, 4.426583960652351 ], "PRO": [ 6.67668366804719, 0.9294348857365549, -11.23133396729827, -8.445268884301186, -4.377298258244991, -1.5651896465569735, -3.524588823085651, -4.494831787422299, 0.886233888566494, 0.43557872623205185, -0.7042785733938217, -2.8036157935857773, -5.84983697347343, 3.7853476582095027, -0.8853770047426224, -4.160662539303303, 4.662382818758488, 4.959673222154379, -8.770110711455345, -14.301626294851303, -6.132763070287183, 0.37466595228761435, 5.575498723657802, 3.6567868292331696, -2.380797991878353, 9.350246205925941, -8.424218825995922, -7.645556952804327, -3.26220827922225, 9.75733196735382 ], "SER": [ 16.18774527311325, -1.2406345824711025, -6.704237766563892, -1.8168745655566454, -1.6806752234697342, 2.461905360221863, -8.065948277711868, -3.963874652981758, -5.00673270970583, 1.5085394009947777, -1.4293809705413878, 8.589677557349205, -7.774585923179984, -0.8677411107346416, -0.8303747773170471, -7.649388886988163, 8.138299897313118, -2.7165464013814926, -3.7844654470682144, -11.77476704120636, -3.103168074041605, 3.0565860345959663, 0.6305629622656852, -0.25338971614837646, -1.777822116855532, 4.374756794422865, -7.556478306651115, -2.788420632481575, -1.1446695104241371, 5.143187031149864 ], "THR": [ 17.73372995853424, -2.4331937418319285, -11.302181020379066, -2.624024985358119, -3.5096032172441483, 2.7469627124955878, -9.143289506435394, -5.159998141229153, -3.1418574089184403, 1.6640934823080897, -2.407870626077056, 13.205033525824547, -8.450346065685153, 0.3465944901108742, -1.8692003935575485, -6.558226816356182, 6.984000958502293, -4.847788002341986, -5.817736902274191, -15.623169630765915, -2.768105219118297, 4.162550143897533, -1.293438671855256, 1.1928203143179417, -4.018543599639088, 6.303478170186281, -7.163828140357509, -2.9294193759560585, -2.965356543660164, 5.022730275988579 ], "TRP": [ 28.475699186325073, -14.1073366724886, -17.334864120930433, -1.602628966793418, -9.676001951098442, 2.6874234676361084, -17.17447417974472, -12.207094219978899, 2.066788986325264, -0.7111232061870396, -7.530205510556698, 6.659021524712443, -6.017750748433173, -4.629739715717733, -4.194045279640704, -18.754483424127102, 12.432385668158531, -2.7902527302503586, -7.941833024844527, -25.37638020515442, -1.4984726198017597, 14.044914040714502, 5.714086608262733, 6.425307914614677, -1.2386372038163245, 14.031018365174532, -16.975549675524235, -19.458628818392754, -8.427586793899536, 6.607788845896721 ], "TYR": [ 25.729227006435394, -9.727442780975252, -14.419711276888847, -0.6836522328667343, -9.374721392989159, 4.884824499487877, -15.101073771715164, -11.266495255287737, -1.2328123971819878, -2.6864463835954666, -7.692163720726967, 8.416565097868443, -8.015749087557197, -1.8713254844769835, -1.5316458186134696, -12.984892167150974, 12.563350334763527, -3.683139866217971, -7.675107344985008, -20.526044726371765, -1.926855679601431, 10.142167583107948, 2.6961125324014574, 5.848567418754101, -3.1477912762202322, 12.708768982440233, -17.32441385090351, -14.695447942242026, -6.10312782227993, 6.590861722826958 ], "VAL": [ 17.830903470516205, -3.6848649182356894, -12.267774295061827, -3.2058352809399366, -2.7940264269709587, 1.6046236915281042, -8.833536118268967, -6.254449002444744, -2.1819957696134225, 2.3606584444642067, -3.2374322712421417, 13.638847634196281, -6.843349063768983, -0.14485383685678244, -3.175743281841278, -5.252901718020439, 5.4199513271451, -5.102212507277727, -7.113710388541222, -15.474675685167313, -3.781498635187745, 4.960804704576731, -2.3056604478042573, 2.437923915684223, -4.183840597514063, 7.173041719943285, -6.733314014971256, -3.348315764218569, -4.489369764924049, 4.585906647145748 ]}123version https://git-lfs.github.com/spec/v1oid sha256:35dd2b41dc4765ec08fd2cb09006811c6078c389845205b7772a76030c262672size 242856081234567891011121314151617181920212223242526272829{ "schema": "imut-cdr-gc.model-release.v2", "model": "DeepCDR-3D", "repository": "linbuliao/iMut-CDR-GC", "model_subdirectory": "DeepCDR-3D", "source_code": { "repository": "https://github.com/linbuliao/iMut-CDR-GC", "revision": "23dc11908d6e09b6e40feca2da4c503e9228d5c8" }, "serialization": "PyTorch plain tensor state_dict; load with weights_only=True", "file_paths_relative_to": "this model subdirectory", "files": [ { "path": "model.pt", "sha256": "35dd2b41dc4765ec08fd2cb09006811c6078c389845205b7772a76030c262672", "bytes": 24285608 }, { "path": "amino_acid_vectors_30dim.json", "sha256": "63e28f738d916185491322e349bf8873daae09df8cdb59c11ca1893d7724bf64", "bytes": 14770 }, { "path": "README.md", "sha256": "11da105bd7721c0e0709b878b357532b11a809b67d84b154000ac0cff290863a", "bytes": 3554 } ]}DeepCDR-3D/README.mdAdded+86
DeepCDR-3D/amino_acid_vectors_30dim.jsonAdded+642
DeepCDR-3D/model.ptAdded+3
DeepCDR-3D/release_manifest.jsonAdded+29