biotite 0.39.0__cp310-cp310-macosx_11_0_arm64.whl → 0.41.0__cp310-cp310-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.
- biotite/__init__.py +3 -3
- biotite/application/dssp/app.py +18 -18
- biotite/database/pubchem/download.py +23 -23
- biotite/database/pubchem/query.py +7 -7
- biotite/database/rcsb/download.py +19 -14
- biotite/file.py +17 -9
- biotite/sequence/align/banded.c +258 -237
- biotite/sequence/align/banded.cpython-310-darwin.so +0 -0
- biotite/sequence/align/cigar.py +60 -15
- biotite/sequence/align/kmeralphabet.c +243 -222
- biotite/sequence/align/kmeralphabet.cpython-310-darwin.so +0 -0
- biotite/sequence/align/kmersimilarity.c +215 -196
- biotite/sequence/align/kmersimilarity.cpython-310-darwin.so +0 -0
- biotite/sequence/align/kmertable.cpp +233 -205
- biotite/sequence/align/kmertable.cpython-310-darwin.so +0 -0
- biotite/sequence/align/localgapped.c +258 -237
- biotite/sequence/align/localgapped.cpython-310-darwin.so +0 -0
- biotite/sequence/align/localungapped.c +235 -214
- biotite/sequence/align/localungapped.cpython-310-darwin.so +0 -0
- biotite/sequence/align/multiple.c +255 -234
- biotite/sequence/align/multiple.cpython-310-darwin.so +0 -0
- biotite/sequence/align/pairwise.c +274 -253
- biotite/sequence/align/pairwise.cpython-310-darwin.so +0 -0
- biotite/sequence/align/permutation.c +215 -196
- biotite/sequence/align/permutation.cpython-310-darwin.so +0 -0
- biotite/sequence/align/selector.c +217 -197
- biotite/sequence/align/selector.cpython-310-darwin.so +0 -0
- biotite/sequence/align/tracetable.c +215 -195
- biotite/sequence/align/tracetable.cpython-310-darwin.so +0 -0
- biotite/sequence/annotation.py +2 -2
- biotite/sequence/codec.c +235 -214
- biotite/sequence/codec.cpython-310-darwin.so +0 -0
- biotite/sequence/io/fasta/convert.py +27 -24
- biotite/sequence/phylo/nj.c +215 -196
- biotite/sequence/phylo/nj.cpython-310-darwin.so +0 -0
- biotite/sequence/phylo/tree.c +227 -202
- biotite/sequence/phylo/tree.cpython-310-darwin.so +0 -0
- biotite/sequence/phylo/upgma.c +215 -196
- biotite/sequence/phylo/upgma.cpython-310-darwin.so +0 -0
- biotite/structure/__init__.py +2 -0
- biotite/structure/basepairs.py +7 -12
- biotite/structure/bonds.c +1437 -1279
- biotite/structure/bonds.cpython-310-darwin.so +0 -0
- biotite/structure/celllist.c +217 -197
- biotite/structure/celllist.cpython-310-darwin.so +0 -0
- biotite/structure/charges.c +1052 -1101
- biotite/structure/charges.cpython-310-darwin.so +0 -0
- biotite/structure/dotbracket.py +2 -0
- biotite/structure/filter.py +30 -37
- biotite/structure/info/__init__.py +5 -8
- biotite/structure/info/atoms.py +31 -68
- biotite/structure/info/bonds.py +47 -101
- biotite/structure/info/ccd/README.rst +8 -0
- biotite/structure/info/ccd/amino_acids.txt +1663 -0
- biotite/structure/info/ccd/carbohydrates.txt +1135 -0
- biotite/structure/info/ccd/components.bcif +0 -0
- biotite/structure/info/ccd/nucleotides.txt +798 -0
- biotite/structure/info/ccd.py +95 -0
- biotite/structure/info/groups.py +90 -0
- biotite/structure/info/masses.py +21 -20
- biotite/structure/info/misc.py +78 -25
- biotite/structure/info/standardize.py +17 -12
- biotite/structure/integrity.py +19 -70
- biotite/structure/io/__init__.py +2 -4
- biotite/structure/io/ctab.py +12 -106
- biotite/structure/io/general.py +167 -181
- biotite/structure/io/gro/file.py +16 -16
- biotite/structure/io/mmtf/__init__.py +3 -0
- biotite/structure/io/mmtf/convertarray.c +219 -198
- biotite/structure/io/mmtf/convertarray.cpython-310-darwin.so +0 -0
- biotite/structure/io/mmtf/convertfile.c +217 -197
- biotite/structure/io/mmtf/convertfile.cpython-310-darwin.so +0 -0
- biotite/structure/io/mmtf/decode.c +225 -204
- biotite/structure/io/mmtf/decode.cpython-310-darwin.so +0 -0
- biotite/structure/io/mmtf/encode.c +215 -196
- biotite/structure/io/mmtf/encode.cpython-310-darwin.so +0 -0
- biotite/structure/io/mmtf/file.py +34 -26
- biotite/structure/io/mol/__init__.py +4 -2
- biotite/structure/io/mol/convert.py +71 -7
- biotite/structure/io/mol/ctab.py +414 -0
- biotite/structure/io/mol/header.py +116 -0
- biotite/structure/io/mol/{file.py → mol.py} +69 -82
- biotite/structure/io/mol/sdf.py +909 -0
- biotite/structure/io/npz/__init__.py +3 -0
- biotite/structure/io/npz/file.py +21 -18
- biotite/structure/io/pdb/__init__.py +3 -3
- biotite/structure/io/pdb/file.py +89 -34
- biotite/structure/io/pdb/hybrid36.c +63 -43
- biotite/structure/io/pdb/hybrid36.cpython-310-darwin.so +0 -0
- biotite/structure/io/pdbqt/file.py +32 -32
- biotite/structure/io/pdbx/__init__.py +12 -6
- biotite/structure/io/pdbx/bcif.py +648 -0
- biotite/structure/io/pdbx/cif.py +1032 -0
- biotite/structure/io/pdbx/component.py +246 -0
- biotite/structure/io/pdbx/convert.py +858 -386
- biotite/structure/io/pdbx/encoding.c +112813 -0
- biotite/structure/io/pdbx/encoding.cpython-310-darwin.so +0 -0
- biotite/structure/io/pdbx/legacy.py +267 -0
- biotite/structure/molecules.py +151 -151
- biotite/structure/repair.py +253 -0
- biotite/structure/sasa.c +215 -196
- biotite/structure/sasa.cpython-310-darwin.so +0 -0
- biotite/structure/sequence.py +112 -0
- biotite/structure/superimpose.py +618 -116
- {biotite-0.39.0.dist-info → biotite-0.41.0.dist-info}/METADATA +3 -3
- {biotite-0.39.0.dist-info → biotite-0.41.0.dist-info}/RECORD +109 -103
- {biotite-0.39.0.dist-info → biotite-0.41.0.dist-info}/WHEEL +1 -1
- biotite/structure/info/amino_acids.json +0 -1556
- biotite/structure/info/amino_acids.py +0 -42
- biotite/structure/info/carbohydrates.json +0 -1122
- biotite/structure/info/carbohydrates.py +0 -39
- biotite/structure/info/intra_bonds.msgpack +0 -0
- biotite/structure/info/link_types.msgpack +0 -1
- biotite/structure/info/nucleotides.json +0 -772
- biotite/structure/info/nucleotides.py +0 -39
- biotite/structure/info/residue_masses.msgpack +0 -0
- biotite/structure/info/residue_names.msgpack +0 -3
- biotite/structure/info/residues.msgpack +0 -0
- biotite/structure/io/pdbx/file.py +0 -652
- {biotite-0.39.0.dist-info → biotite-0.41.0.dist-info}/LICENSE.rst +0 -0
- {biotite-0.39.0.dist-info → biotite-0.41.0.dist-info}/top_level.txt +0 -0
biotite/structure/io/gro/file.py
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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"
|