biotite 0.39.0__cp311-cp311-macosx_11_0_arm64.whl → 0.41.0__cp311-cp311-macosx_11_0_arm64.whl

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.

Potentially problematic release.


This version of biotite might be problematic. Click here for more details.

Files changed (121) hide show
  1. biotite/__init__.py +3 -3
  2. biotite/application/dssp/app.py +18 -18
  3. biotite/database/pubchem/download.py +23 -23
  4. biotite/database/pubchem/query.py +7 -7
  5. biotite/database/rcsb/download.py +19 -14
  6. biotite/file.py +17 -9
  7. biotite/sequence/align/banded.c +258 -237
  8. biotite/sequence/align/banded.cpython-311-darwin.so +0 -0
  9. biotite/sequence/align/cigar.py +60 -15
  10. biotite/sequence/align/kmeralphabet.c +243 -222
  11. biotite/sequence/align/kmeralphabet.cpython-311-darwin.so +0 -0
  12. biotite/sequence/align/kmersimilarity.c +215 -196
  13. biotite/sequence/align/kmersimilarity.cpython-311-darwin.so +0 -0
  14. biotite/sequence/align/kmertable.cpp +233 -205
  15. biotite/sequence/align/kmertable.cpython-311-darwin.so +0 -0
  16. biotite/sequence/align/localgapped.c +258 -237
  17. biotite/sequence/align/localgapped.cpython-311-darwin.so +0 -0
  18. biotite/sequence/align/localungapped.c +235 -214
  19. biotite/sequence/align/localungapped.cpython-311-darwin.so +0 -0
  20. biotite/sequence/align/multiple.c +255 -234
  21. biotite/sequence/align/multiple.cpython-311-darwin.so +0 -0
  22. biotite/sequence/align/pairwise.c +274 -253
  23. biotite/sequence/align/pairwise.cpython-311-darwin.so +0 -0
  24. biotite/sequence/align/permutation.c +215 -196
  25. biotite/sequence/align/permutation.cpython-311-darwin.so +0 -0
  26. biotite/sequence/align/selector.c +217 -197
  27. biotite/sequence/align/selector.cpython-311-darwin.so +0 -0
  28. biotite/sequence/align/tracetable.c +215 -195
  29. biotite/sequence/align/tracetable.cpython-311-darwin.so +0 -0
  30. biotite/sequence/annotation.py +2 -2
  31. biotite/sequence/codec.c +235 -214
  32. biotite/sequence/codec.cpython-311-darwin.so +0 -0
  33. biotite/sequence/io/fasta/convert.py +27 -24
  34. biotite/sequence/phylo/nj.c +215 -196
  35. biotite/sequence/phylo/nj.cpython-311-darwin.so +0 -0
  36. biotite/sequence/phylo/tree.c +227 -202
  37. biotite/sequence/phylo/tree.cpython-311-darwin.so +0 -0
  38. biotite/sequence/phylo/upgma.c +215 -196
  39. biotite/sequence/phylo/upgma.cpython-311-darwin.so +0 -0
  40. biotite/structure/__init__.py +2 -0
  41. biotite/structure/basepairs.py +7 -12
  42. biotite/structure/bonds.c +1437 -1279
  43. biotite/structure/bonds.cpython-311-darwin.so +0 -0
  44. biotite/structure/celllist.c +217 -197
  45. biotite/structure/celllist.cpython-311-darwin.so +0 -0
  46. biotite/structure/charges.c +1052 -1101
  47. biotite/structure/charges.cpython-311-darwin.so +0 -0
  48. biotite/structure/dotbracket.py +2 -0
  49. biotite/structure/filter.py +30 -37
  50. biotite/structure/info/__init__.py +5 -8
  51. biotite/structure/info/atoms.py +31 -68
  52. biotite/structure/info/bonds.py +47 -101
  53. biotite/structure/info/ccd/README.rst +8 -0
  54. biotite/structure/info/ccd/amino_acids.txt +1663 -0
  55. biotite/structure/info/ccd/carbohydrates.txt +1135 -0
  56. biotite/structure/info/ccd/components.bcif +0 -0
  57. biotite/structure/info/ccd/nucleotides.txt +798 -0
  58. biotite/structure/info/ccd.py +95 -0
  59. biotite/structure/info/groups.py +90 -0
  60. biotite/structure/info/masses.py +21 -20
  61. biotite/structure/info/misc.py +78 -25
  62. biotite/structure/info/standardize.py +17 -12
  63. biotite/structure/integrity.py +19 -70
  64. biotite/structure/io/__init__.py +2 -4
  65. biotite/structure/io/ctab.py +12 -106
  66. biotite/structure/io/general.py +167 -181
  67. biotite/structure/io/gro/file.py +16 -16
  68. biotite/structure/io/mmtf/__init__.py +3 -0
  69. biotite/structure/io/mmtf/convertarray.c +219 -198
  70. biotite/structure/io/mmtf/convertarray.cpython-311-darwin.so +0 -0
  71. biotite/structure/io/mmtf/convertfile.c +217 -197
  72. biotite/structure/io/mmtf/convertfile.cpython-311-darwin.so +0 -0
  73. biotite/structure/io/mmtf/decode.c +225 -204
  74. biotite/structure/io/mmtf/decode.cpython-311-darwin.so +0 -0
  75. biotite/structure/io/mmtf/encode.c +215 -196
  76. biotite/structure/io/mmtf/encode.cpython-311-darwin.so +0 -0
  77. biotite/structure/io/mmtf/file.py +34 -26
  78. biotite/structure/io/mol/__init__.py +4 -2
  79. biotite/structure/io/mol/convert.py +71 -7
  80. biotite/structure/io/mol/ctab.py +414 -0
  81. biotite/structure/io/mol/header.py +116 -0
  82. biotite/structure/io/mol/{file.py → mol.py} +69 -82
  83. biotite/structure/io/mol/sdf.py +909 -0
  84. biotite/structure/io/npz/__init__.py +3 -0
  85. biotite/structure/io/npz/file.py +21 -18
  86. biotite/structure/io/pdb/__init__.py +3 -3
  87. biotite/structure/io/pdb/file.py +89 -34
  88. biotite/structure/io/pdb/hybrid36.c +63 -43
  89. biotite/structure/io/pdb/hybrid36.cpython-311-darwin.so +0 -0
  90. biotite/structure/io/pdbqt/file.py +32 -32
  91. biotite/structure/io/pdbx/__init__.py +12 -6
  92. biotite/structure/io/pdbx/bcif.py +648 -0
  93. biotite/structure/io/pdbx/cif.py +1032 -0
  94. biotite/structure/io/pdbx/component.py +246 -0
  95. biotite/structure/io/pdbx/convert.py +858 -386
  96. biotite/structure/io/pdbx/encoding.c +112813 -0
  97. biotite/structure/io/pdbx/encoding.cpython-311-darwin.so +0 -0
  98. biotite/structure/io/pdbx/legacy.py +267 -0
  99. biotite/structure/molecules.py +151 -151
  100. biotite/structure/repair.py +253 -0
  101. biotite/structure/sasa.c +215 -196
  102. biotite/structure/sasa.cpython-311-darwin.so +0 -0
  103. biotite/structure/sequence.py +112 -0
  104. biotite/structure/superimpose.py +618 -116
  105. {biotite-0.39.0.dist-info → biotite-0.41.0.dist-info}/METADATA +3 -3
  106. {biotite-0.39.0.dist-info → biotite-0.41.0.dist-info}/RECORD +109 -103
  107. {biotite-0.39.0.dist-info → biotite-0.41.0.dist-info}/WHEEL +1 -1
  108. biotite/structure/info/amino_acids.json +0 -1556
  109. biotite/structure/info/amino_acids.py +0 -42
  110. biotite/structure/info/carbohydrates.json +0 -1122
  111. biotite/structure/info/carbohydrates.py +0 -39
  112. biotite/structure/info/intra_bonds.msgpack +0 -0
  113. biotite/structure/info/link_types.msgpack +0 -1
  114. biotite/structure/info/nucleotides.json +0 -772
  115. biotite/structure/info/nucleotides.py +0 -39
  116. biotite/structure/info/residue_masses.msgpack +0 -0
  117. biotite/structure/info/residue_names.msgpack +0 -3
  118. biotite/structure/info/residues.msgpack +0 -0
  119. biotite/structure/io/pdbx/file.py +0 -652
  120. {biotite-0.39.0.dist-info → biotite-0.41.0.dist-info}/LICENSE.rst +0 -0
  121. {biotite-0.39.0.dist-info → biotite-0.41.0.dist-info}/top_level.txt +0 -0
@@ -10,7 +10,7 @@ import numpy as np
10
10
  from ...atoms import AtomArray, AtomArrayStack
11
11
  from ...box import is_orthogonal
12
12
  from ....file import TextFile, InvalidFileError
13
- from ..general import _guess_element as guess_element
13
+ from ...repair import infer_elements
14
14
  from ...error import BadStructureError
15
15
  import copy
16
16
  from datetime import datetime
@@ -38,7 +38,7 @@ class GROFile(TextFile):
38
38
  --------
39
39
  Load a `\\*.gro` file, modify the structure and save the new
40
40
  structure into a new file:
41
-
41
+
42
42
  >>> import os.path
43
43
  >>> file = GROFile.read(os.path.join(path_to_structures, "1l2y.gro"))
44
44
  >>> array_stack = file.get_structure()
@@ -46,7 +46,7 @@ class GROFile(TextFile):
46
46
  >>> file = GROFile()
47
47
  >>> file.set_structure(array_stack_mod)
48
48
  >>> file.write(os.path.join(path_to_directory, "1l2y_mod.gro"))
49
-
49
+
50
50
  """
51
51
  def get_model_count(self):
52
52
  """
@@ -68,7 +68,7 @@ class GROFile(TextFile):
68
68
  """
69
69
  Get an :class:`AtomArray` or :class:`AtomArrayStack` from the
70
70
  GRO file.
71
-
71
+
72
72
  Parameters
73
73
  ----------
74
74
  model : int, optional
@@ -80,13 +80,13 @@ class GROFile(TextFile):
80
80
  If this parameter is omitted, an :class:`AtomArrayStack`
81
81
  containing all models will be returned, even if the
82
82
  structure contains only one model.
83
-
83
+
84
84
  Returns
85
85
  -------
86
86
  array : AtomArray or AtomArrayStack
87
87
  The return type depends on the `model` parameter.
88
88
  """
89
-
89
+
90
90
  def get_atom_line_i(model_start_i, model_atom_counts):
91
91
  """
92
92
  Helper function to get the indices of all atoms for a model
@@ -94,7 +94,7 @@ class GROFile(TextFile):
94
94
  return np.arange(
95
95
  model_start_i+1, model_start_i+1+model_atom_counts
96
96
  )
97
-
97
+
98
98
  def set_box_dimen(box_param):
99
99
  """
100
100
  Helper function to create the box vectors from the values
@@ -104,7 +104,7 @@ class GROFile(TextFile):
104
104
  ----------
105
105
  box_param : list of float
106
106
  The box dimensions in the GRO file.
107
-
107
+
108
108
  Returns
109
109
  -------
110
110
  box_vectors : ndarray, dtype=float, shape=(3,3)
@@ -171,7 +171,7 @@ class GROFile(TextFile):
171
171
  array.res_id[i] = int(line[0:5])
172
172
  array.res_name[i] = line[5:10].strip()
173
173
  array.atom_name[i] = line[10:15].strip()
174
- array.element[i] = guess_element(line[10:15].strip())
174
+ array.element = infer_elements(array.atom_name)
175
175
 
176
176
  # Fill in coordinates and boxes
177
177
  if isinstance(array, AtomArray):
@@ -186,7 +186,7 @@ class GROFile(TextFile):
186
186
  box_i = atom_i[-1] + 1
187
187
  box_param = [float(e)*10 for e in self.lines[box_i].split()]
188
188
  array.box = set_box_dimen(box_param)
189
-
189
+
190
190
  elif isinstance(array, AtomArrayStack):
191
191
  for m in range(len(model_start_i)):
192
192
  atom_i = get_atom_line_i(
@@ -204,18 +204,18 @@ class GROFile(TextFile):
204
204
  # Create a box in the stack if not already existing
205
205
  # and the box is not a dummy
206
206
  if box is not None:
207
- if array.box is None:
207
+ if array.box is None:
208
208
  array.box = np.zeros((array.stack_depth(), 3, 3))
209
209
  array.box[m] = box
210
-
210
+
211
211
  return array
212
212
 
213
-
213
+
214
214
  def set_structure(self, array):
215
215
  """
216
216
  Set the :class:`AtomArray` or :class:`AtomArrayStack` for the
217
217
  file.
218
-
218
+
219
219
  Parameters
220
220
  ----------
221
221
  array : AtomArray or AtomArrayStack
@@ -235,7 +235,7 @@ class GROFile(TextFile):
235
235
  ----------
236
236
  array : AtomArray
237
237
  The atom array to get the box dimensions from.
238
-
238
+
239
239
  Returns
240
240
  -------
241
241
  box : str
@@ -259,7 +259,7 @@ class GROFile(TextFile):
259
259
  box[2,0], box[2,1],
260
260
  )
261
261
  return " ".join([f"{e:>9.5f}" for e in box_elements])
262
-
262
+
263
263
  if "atom_id" in array.get_annotation_categories():
264
264
  atom_id = array.atom_id
265
265
  else:
@@ -7,6 +7,9 @@ This subpackage is used for reading and writing an :class:`AtomArray` or
7
7
  :class:`AtomArrayStack` using the binary MMTF format. This format
8
8
  features a smaller file size and a highly increased I/O operation
9
9
  performance, than the text based file formats.
10
+
11
+ DEPRECATED: Use :class:`biotite.structure.io.pdbx.BinaryCIFFile`
12
+ instead.
10
13
  """
11
14
 
12
15
  __name__ = "biotite.structure.io.mmtf"