tcren 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. tcren-0.1.0/.gitattributes +1 -0
  2. tcren-0.1.0/.gitignore +318 -0
  3. tcren-0.1.0/CMakeLists.txt +20 -0
  4. tcren-0.1.0/LICENSE +674 -0
  5. tcren-0.1.0/PKG-INFO +264 -0
  6. tcren-0.1.0/README.md +214 -0
  7. tcren-0.1.0/environment.yml +31 -0
  8. tcren-0.1.0/pyproject.toml +80 -0
  9. tcren-0.1.0/src/_align/align.cpp +178 -0
  10. tcren-0.1.0/src/tcren/__init__.py +35 -0
  11. tcren-0.1.0/src/tcren/analysis.py +149 -0
  12. tcren-0.1.0/src/tcren/annotation/__init__.py +10 -0
  13. tcren-0.1.0/src/tcren/annotation/arda_adapter.py +150 -0
  14. tcren-0.1.0/src/tcren/annotation/cgene.py +129 -0
  15. tcren-0.1.0/src/tcren/annotation/chains.py +107 -0
  16. tcren-0.1.0/src/tcren/cli.py +330 -0
  17. tcren-0.1.0/src/tcren/contactmap.py +77 -0
  18. tcren-0.1.0/src/tcren/contacts/__init__.py +13 -0
  19. tcren-0.1.0/src/tcren/contacts/definitions.py +54 -0
  20. tcren-0.1.0/src/tcren/contacts/geometry.py +207 -0
  21. tcren-0.1.0/src/tcren/contacts/table.py +109 -0
  22. tcren-0.1.0/src/tcren/data/MJ_Keskin_potentials.csv +801 -0
  23. tcren-0.1.0/src/tcren/data/TCRen_potential.csv +381 -0
  24. tcren-0.1.0/src/tcren/data/__init__.py +1 -0
  25. tcren-0.1.0/src/tcren/data/canonical_frame.json +62 -0
  26. tcren-0.1.0/src/tcren/data/mhc_canonical.json +1 -0
  27. tcren-0.1.0/src/tcren/data/mhci_pseudo.fa +8286 -0
  28. tcren-0.1.0/src/tcren/data/mhcii_pseudo.fa +4418 -0
  29. tcren-0.1.0/src/tcren/data/tcr_constant.fasta +26 -0
  30. tcren-0.1.0/src/tcren/mhc/__init__.py +20 -0
  31. tcren-0.1.0/src/tcren/mhc/domains.py +27 -0
  32. tcren-0.1.0/src/tcren/mhc/imgt.py +143 -0
  33. tcren-0.1.0/src/tcren/mhc/linker.py +162 -0
  34. tcren-0.1.0/src/tcren/mhc/mapper.py +155 -0
  35. tcren-0.1.0/src/tcren/mhc/pseudo.py +158 -0
  36. tcren-0.1.0/src/tcren/mhc/reference.py +81 -0
  37. tcren-0.1.0/src/tcren/mhc/regions.py +126 -0
  38. tcren-0.1.0/src/tcren/orient/__init__.py +22 -0
  39. tcren-0.1.0/src/tcren/orient/align.py +153 -0
  40. tcren-0.1.0/src/tcren/orient/chains.py +108 -0
  41. tcren-0.1.0/src/tcren/orient/docking.py +142 -0
  42. tcren-0.1.0/src/tcren/orient/exceptions.py +42 -0
  43. tcren-0.1.0/src/tcren/orient/frame.py +172 -0
  44. tcren-0.1.0/src/tcren/orient/pipeline.py +309 -0
  45. tcren-0.1.0/src/tcren/orient/superimpose.py +150 -0
  46. tcren-0.1.0/src/tcren/paper/__init__.py +17 -0
  47. tcren-0.1.0/src/tcren/paper/bootstrap.py +257 -0
  48. tcren-0.1.0/src/tcren/paper/helpers.py +282 -0
  49. tcren-0.1.0/src/tcren/paths.py +83 -0
  50. tcren-0.1.0/src/tcren/pipeline.py +119 -0
  51. tcren-0.1.0/src/tcren/potential/__init__.py +15 -0
  52. tcren-0.1.0/src/tcren/potential/derive.py +144 -0
  53. tcren-0.1.0/src/tcren/potential/model.py +173 -0
  54. tcren-0.1.0/src/tcren/project2d/__init__.py +19 -0
  55. tcren-0.1.0/src/tcren/project2d/frame.py +176 -0
  56. tcren-0.1.0/src/tcren/project2d/pockets.py +46 -0
  57. tcren-0.1.0/src/tcren/project2d/tables.py +317 -0
  58. tcren-0.1.0/src/tcren/recent.py +144 -0
  59. tcren-0.1.0/src/tcren/scoring.py +103 -0
  60. tcren-0.1.0/src/tcren/structure/__init__.py +17 -0
  61. tcren-0.1.0/src/tcren/structure/io.py +402 -0
  62. tcren-0.1.0/src/tcren/structure/model.py +135 -0
  63. tcren-0.1.0/src/tcren/viz/__init__.py +13 -0
  64. tcren-0.1.0/src/tcren/viz/palette.py +41 -0
  65. tcren-0.1.0/src/tcren/viz/pocket3d.py +91 -0
  66. tcren-0.1.0/src/tcren/viz/svg2d.py +190 -0
@@ -0,0 +1 @@
1
+ data/output_TCRen/structures_annotation/cadist.txt filter=lfs diff=lfs merge=lfs -text
tcren-0.1.0/.gitignore ADDED
@@ -0,0 +1,318 @@
1
+ example_b27/
2
+
3
+ ## Core latex/pdflatex auxiliary files:
4
+ *.aux
5
+ *.lof
6
+ *.log
7
+ *.lot
8
+ *.fls
9
+ *.out
10
+ *.toc
11
+ *.fmt
12
+ *.fot
13
+ *.cb
14
+ *.cb2
15
+ .*.lb
16
+
17
+ ## Intermediate documents:
18
+ *.dvi
19
+ *.xdv
20
+ *-converted-to.*
21
+ # these rules might exclude image files for figures etc.
22
+ # *.ps
23
+ # *.eps
24
+ # *.pdf
25
+
26
+ ## Generated if empty string is given at "Please type another file name for output:"
27
+ .pdf
28
+
29
+ ## Bibliography auxiliary files (bibtex/biblatex/biber):
30
+ *.bbl
31
+ *.bcf
32
+ *.blg
33
+ *-blx.aux
34
+ *-blx.bib
35
+ *.run.xml
36
+
37
+ ## Build tool auxiliary files:
38
+ *.fdb_latexmk
39
+ *.synctex
40
+ *.synctex(busy)
41
+ *.synctex.gz
42
+ *.synctex.gz(busy)
43
+ *.pdfsync
44
+
45
+ ## Build tool directories for auxiliary files
46
+ # latexrun
47
+ latex.out/
48
+
49
+ ## Auxiliary and intermediate files from other packages:
50
+ # algorithms
51
+ *.alg
52
+ *.loa
53
+
54
+ # achemso
55
+ acs-*.bib
56
+
57
+ # amsthm
58
+ *.thm
59
+
60
+ # beamer
61
+ *.nav
62
+ *.pre
63
+ *.snm
64
+ *.vrb
65
+
66
+ # changes
67
+ *.soc
68
+
69
+ # comment
70
+ *.cut
71
+
72
+ # cprotect
73
+ *.cpt
74
+
75
+ # elsarticle (documentclass of Elsevier journals)
76
+ *.spl
77
+
78
+ # endnotes
79
+ *.ent
80
+
81
+ # fixme
82
+ *.lox
83
+
84
+ # feynmf/feynmp
85
+ *.mf
86
+ *.mp
87
+ *.t[1-9]
88
+ *.t[1-9][0-9]
89
+ *.tfm
90
+
91
+ #(r)(e)ledmac/(r)(e)ledpar
92
+ *.end
93
+ *.?end
94
+ *.[1-9]
95
+ *.[1-9][0-9]
96
+ *.[1-9][0-9][0-9]
97
+ *.[1-9]R
98
+ *.[1-9][0-9]R
99
+ *.[1-9][0-9][0-9]R
100
+ *.eledsec[1-9]
101
+ *.eledsec[1-9]R
102
+ *.eledsec[1-9][0-9]
103
+ *.eledsec[1-9][0-9]R
104
+ *.eledsec[1-9][0-9][0-9]
105
+ *.eledsec[1-9][0-9][0-9]R
106
+
107
+ # glossaries
108
+ *.acn
109
+ *.acr
110
+ *.glg
111
+ *.glo
112
+ *.gls
113
+ *.glsdefs
114
+ *.lzo
115
+ *.lzs
116
+
117
+ # uncomment this for glossaries-extra (will ignore makeindex's style files!)
118
+ # *.ist
119
+
120
+ # gnuplottex
121
+ *-gnuplottex-*
122
+
123
+ # gregoriotex
124
+ *.gaux
125
+ *.gtex
126
+
127
+ # htlatex
128
+ *.4ct
129
+ *.4tc
130
+ *.idv
131
+ *.lg
132
+ *.trc
133
+ *.xref
134
+
135
+ # hyperref
136
+ *.brf
137
+
138
+ # knitr
139
+ *-concordance.tex
140
+ # TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files
141
+ # *.tikz
142
+ *-tikzDictionary
143
+
144
+ # listings
145
+ *.lol
146
+
147
+ # luatexja-ruby
148
+ *.ltjruby
149
+
150
+ # makeidx
151
+ *.idx
152
+ *.ilg
153
+ *.ind
154
+
155
+ # minitoc
156
+ *.maf
157
+ *.mlf
158
+ *.mlt
159
+ *.mtc[0-9]*
160
+ *.slf[0-9]*
161
+ *.slt[0-9]*
162
+ *.stc[0-9]*
163
+
164
+ # minted
165
+ _minted*
166
+ *.pyg
167
+
168
+ # morewrites
169
+ *.mw
170
+
171
+ # nomencl
172
+ *.nlg
173
+ *.nlo
174
+ *.nls
175
+
176
+ # pax
177
+ *.pax
178
+
179
+ # pdfpcnotes
180
+ *.pdfpc
181
+
182
+ # sagetex
183
+ *.sagetex.sage
184
+ *.sagetex.py
185
+ *.sagetex.scmd
186
+
187
+ # scrwfile
188
+ *.wrt
189
+
190
+ # sympy
191
+ *.sout
192
+ *.sympy
193
+ sympy-plots-for-*.tex/
194
+
195
+ # pdfcomment
196
+ *.upa
197
+ *.upb
198
+
199
+ # pythontex
200
+ *.pytxcode
201
+ pythontex-files-*/
202
+
203
+ # tcolorbox
204
+ *.listing
205
+
206
+ # thmtools
207
+ *.loe
208
+
209
+ # TikZ & PGF
210
+ *.dpth
211
+ *.md5
212
+ *.auxlock
213
+
214
+ # todonotes
215
+ *.tdo
216
+
217
+ # vhistory
218
+ *.hst
219
+ *.ver
220
+
221
+ # easy-todo
222
+ *.lod
223
+
224
+ # xcolor
225
+ *.xcp
226
+
227
+ # xmpincl
228
+ *.xmpi
229
+
230
+ # xindy
231
+ *.xdy
232
+
233
+ # xypic precompiled matrices and outlines
234
+ *.xyc
235
+ *.xyd
236
+
237
+ # endfloat
238
+ *.ttt
239
+ *.fff
240
+
241
+ # Latexian
242
+ TSWLatexianTemp*
243
+
244
+ ## Editors:
245
+ # WinEdt
246
+ *.bak
247
+ *.sav
248
+
249
+ # Texpad
250
+ .texpadtmp
251
+
252
+ # LyX
253
+ *.lyx~
254
+
255
+ # Kile
256
+ *.backup
257
+
258
+ # gummi
259
+ .*.swp
260
+
261
+ # KBibTeX
262
+ *~[0-9]*
263
+
264
+ # TeXnicCenter
265
+ *.tps
266
+
267
+ # auto folder when using emacs and auctex
268
+ ./auto/*
269
+ *.el
270
+
271
+ # expex forward references with \gathertags
272
+ *-tags.tex
273
+
274
+ # standalone packages
275
+ *.sta
276
+
277
+ # Makeindex log files
278
+ *.lpz
279
+
280
+ # xwatermark package
281
+ *.xwm
282
+
283
+ # REVTeX puts footnotes in the bibliography by default, unless the nofootinbib
284
+ # option is specified. Footnotes are the stored in a file with suffix Notes.bib.
285
+ # Uncomment the next line to have this generated file ignored.
286
+ #*Notes.bib.ipynb_checkpoints/
287
+
288
+ # Python (tcren package)
289
+ tmp/
290
+ __pycache__/
291
+ *.py[cod]
292
+ *.egg-info/
293
+ .eggs/
294
+ build/
295
+ dist/
296
+ .pytest_cache/
297
+ .ruff_cache/
298
+ .coverage
299
+ htmlcov/
300
+ docs/_build/
301
+ data/mhc_cache/
302
+ database/mhc/
303
+
304
+ docs/notebooks/
305
+
306
+ # HF-bootstrapped structure sets (isalgo/tcren_structures) — never committed.
307
+ # Root data/: the canonical Native2026 set (symlinked from the notebooks copy) and the
308
+ # re-oriented Canonical2026 set produced by `tcren orient` (synced to the Hub).
309
+ data/Native2026
310
+ data/Canonical2026/
311
+ # notebooks/data/: per-set folders for the natcompsci2022 reproduction.
312
+ notebooks/data/Native2022/
313
+ notebooks/data/Native2026/
314
+ notebooks/data/Canonical2026/
315
+ notebooks/data/PolyV2022/
316
+ notebooks/data/Bobisse/
317
+ notebooks/data/Bigot/
318
+ data/pdb_recent/
@@ -0,0 +1,20 @@
1
+ cmake_minimum_required(VERSION 3.18)
2
+ project(tcren LANGUAGES CXX)
3
+
4
+ set(CMAKE_CXX_STANDARD 17)
5
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
6
+ set(CMAKE_CXX_EXTENSIONS OFF)
7
+
8
+ if(NOT CMAKE_BUILD_TYPE)
9
+ set(CMAKE_BUILD_TYPE Release)
10
+ endif()
11
+
12
+ # pybind11's modern FindPython path (silences CMP0148 deprecation warnings).
13
+ set(PYBIND11_FINDPYTHON ON)
14
+ find_package(pybind11 CONFIG REQUIRED)
15
+
16
+ # Fitting-alignment discrimination for MHC pseudosequence (MPS) matching. See src/_align/align.cpp.
17
+ pybind11_add_module(_align src/_align/align.cpp)
18
+ target_compile_options(_align PRIVATE -O3)
19
+
20
+ install(TARGETS _align DESTINATION tcren)