biotite 0.41.1__cp310-cp310-win_amd64.whl → 1.0.0__cp310-cp310-win_amd64.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 +2 -3
- biotite/application/__init__.py +36 -10
- biotite/application/application.py +22 -11
- biotite/application/autodock/__init__.py +1 -1
- biotite/application/autodock/app.py +74 -79
- biotite/application/blast/__init__.py +1 -1
- biotite/application/blast/alignment.py +19 -10
- biotite/application/blast/webapp.py +92 -85
- biotite/application/clustalo/__init__.py +1 -1
- biotite/application/clustalo/app.py +46 -61
- biotite/application/dssp/__init__.py +1 -1
- biotite/application/dssp/app.py +8 -11
- biotite/application/localapp.py +62 -60
- biotite/application/mafft/__init__.py +1 -1
- biotite/application/mafft/app.py +16 -22
- biotite/application/msaapp.py +78 -89
- biotite/application/muscle/__init__.py +1 -1
- biotite/application/muscle/app3.py +50 -64
- biotite/application/muscle/app5.py +23 -31
- biotite/application/sra/__init__.py +1 -1
- biotite/application/sra/app.py +64 -68
- biotite/application/tantan/__init__.py +1 -1
- biotite/application/tantan/app.py +22 -45
- biotite/application/util.py +7 -9
- biotite/application/viennarna/rnaalifold.py +34 -28
- biotite/application/viennarna/rnafold.py +24 -39
- biotite/application/viennarna/rnaplot.py +36 -21
- biotite/application/viennarna/util.py +17 -12
- biotite/application/webapp.py +13 -14
- biotite/copyable.py +13 -13
- biotite/database/__init__.py +1 -1
- biotite/database/entrez/__init__.py +1 -1
- biotite/database/entrez/check.py +2 -3
- biotite/database/entrez/dbnames.py +7 -5
- biotite/database/entrez/download.py +55 -49
- biotite/database/entrez/key.py +1 -1
- biotite/database/entrez/query.py +62 -23
- biotite/database/error.py +2 -1
- biotite/database/pubchem/__init__.py +1 -1
- biotite/database/pubchem/download.py +43 -45
- biotite/database/pubchem/error.py +2 -2
- biotite/database/pubchem/query.py +34 -31
- biotite/database/pubchem/throttle.py +3 -4
- biotite/database/rcsb/__init__.py +1 -1
- biotite/database/rcsb/download.py +44 -52
- biotite/database/rcsb/query.py +85 -80
- biotite/database/uniprot/check.py +6 -3
- biotite/database/uniprot/download.py +6 -11
- biotite/database/uniprot/query.py +115 -31
- biotite/file.py +12 -31
- biotite/sequence/__init__.py +16 -5
- biotite/sequence/align/__init__.py +160 -6
- biotite/sequence/align/alignment.py +99 -90
- biotite/sequence/align/banded.cp310-win_amd64.pyd +0 -0
- biotite/sequence/align/buckets.py +12 -10
- biotite/sequence/align/cigar.py +43 -52
- biotite/sequence/align/kmeralphabet.cp310-win_amd64.pyd +0 -0
- biotite/sequence/align/kmeralphabet.pyx +55 -51
- biotite/sequence/align/kmersimilarity.cp310-win_amd64.pyd +0 -0
- biotite/sequence/align/kmertable.cp310-win_amd64.pyd +0 -0
- biotite/sequence/align/kmertable.pyx +3 -2
- biotite/sequence/align/localgapped.cp310-win_amd64.pyd +0 -0
- biotite/sequence/align/localungapped.cp310-win_amd64.pyd +0 -0
- biotite/sequence/align/matrix.py +81 -82
- biotite/sequence/align/multiple.cp310-win_amd64.pyd +0 -0
- biotite/sequence/align/multiple.pyx +35 -35
- biotite/sequence/align/pairwise.cp310-win_amd64.pyd +0 -0
- biotite/sequence/align/permutation.cp310-win_amd64.pyd +0 -0
- biotite/sequence/align/permutation.pyx +12 -4
- biotite/sequence/align/selector.cp310-win_amd64.pyd +0 -0
- biotite/sequence/align/selector.pyx +52 -54
- biotite/sequence/align/statistics.py +32 -33
- biotite/sequence/align/tracetable.cp310-win_amd64.pyd +0 -0
- biotite/sequence/alphabet.py +112 -126
- biotite/sequence/annotation.py +78 -77
- biotite/sequence/codec.cp310-win_amd64.pyd +0 -0
- biotite/sequence/codon.py +90 -79
- biotite/sequence/graphics/__init__.py +1 -1
- biotite/sequence/graphics/alignment.py +184 -103
- biotite/sequence/graphics/colorschemes.py +10 -12
- biotite/sequence/graphics/dendrogram.py +79 -34
- biotite/sequence/graphics/features.py +133 -99
- biotite/sequence/graphics/logo.py +22 -28
- biotite/sequence/graphics/plasmid.py +229 -178
- biotite/sequence/io/fasta/__init__.py +1 -1
- biotite/sequence/io/fasta/convert.py +44 -33
- biotite/sequence/io/fasta/file.py +42 -55
- biotite/sequence/io/fastq/__init__.py +1 -1
- biotite/sequence/io/fastq/convert.py +11 -14
- biotite/sequence/io/fastq/file.py +68 -112
- biotite/sequence/io/genbank/__init__.py +2 -2
- biotite/sequence/io/genbank/annotation.py +12 -20
- biotite/sequence/io/genbank/file.py +74 -76
- biotite/sequence/io/genbank/metadata.py +74 -62
- biotite/sequence/io/genbank/sequence.py +13 -14
- biotite/sequence/io/general.py +39 -30
- biotite/sequence/io/gff/__init__.py +2 -2
- biotite/sequence/io/gff/convert.py +10 -15
- biotite/sequence/io/gff/file.py +81 -65
- biotite/sequence/phylo/__init__.py +1 -1
- biotite/sequence/phylo/nj.cp310-win_amd64.pyd +0 -0
- biotite/sequence/phylo/tree.cp310-win_amd64.pyd +0 -0
- biotite/sequence/phylo/upgma.cp310-win_amd64.pyd +0 -0
- biotite/sequence/profile.py +57 -28
- biotite/sequence/search.py +17 -15
- biotite/sequence/seqtypes.py +200 -164
- biotite/sequence/sequence.py +64 -64
- biotite/structure/__init__.py +3 -3
- biotite/structure/atoms.py +226 -240
- biotite/structure/basepairs.py +260 -271
- biotite/structure/bonds.cp310-win_amd64.pyd +0 -0
- biotite/structure/bonds.pyx +88 -100
- biotite/structure/box.py +67 -71
- biotite/structure/celllist.cp310-win_amd64.pyd +0 -0
- biotite/structure/chains.py +55 -39
- biotite/structure/charges.cp310-win_amd64.pyd +0 -0
- biotite/structure/compare.py +32 -32
- biotite/structure/density.py +13 -18
- biotite/structure/dotbracket.py +20 -22
- biotite/structure/error.py +10 -2
- biotite/structure/filter.py +82 -77
- biotite/structure/geometry.py +130 -119
- biotite/structure/graphics/atoms.py +60 -43
- biotite/structure/graphics/rna.py +81 -68
- biotite/structure/hbond.py +112 -93
- biotite/structure/info/__init__.py +0 -2
- biotite/structure/info/atoms.py +10 -11
- biotite/structure/info/bonds.py +41 -43
- biotite/structure/info/ccd.py +21 -7
- biotite/structure/info/groups.py +10 -15
- biotite/structure/info/masses.py +5 -10
- biotite/structure/info/misc.py +1 -1
- biotite/structure/info/radii.py +20 -20
- biotite/structure/info/standardize.py +15 -26
- biotite/structure/integrity.py +18 -71
- biotite/structure/io/__init__.py +3 -4
- biotite/structure/io/dcd/__init__.py +1 -1
- biotite/structure/io/dcd/file.py +22 -20
- biotite/structure/io/general.py +47 -61
- biotite/structure/io/gro/__init__.py +1 -1
- biotite/structure/io/gro/file.py +73 -72
- biotite/structure/io/mol/__init__.py +1 -1
- biotite/structure/io/mol/convert.py +8 -11
- biotite/structure/io/mol/ctab.py +37 -36
- biotite/structure/io/mol/header.py +14 -10
- biotite/structure/io/mol/mol.py +9 -53
- biotite/structure/io/mol/sdf.py +47 -50
- biotite/structure/io/netcdf/__init__.py +1 -1
- biotite/structure/io/netcdf/file.py +24 -23
- biotite/structure/io/pdb/__init__.py +1 -1
- biotite/structure/io/pdb/convert.py +32 -20
- biotite/structure/io/pdb/file.py +151 -172
- biotite/structure/io/pdb/hybrid36.cp310-win_amd64.pyd +0 -0
- biotite/structure/io/pdbqt/__init__.py +1 -1
- biotite/structure/io/pdbqt/convert.py +17 -11
- biotite/structure/io/pdbqt/file.py +128 -80
- biotite/structure/io/pdbx/__init__.py +1 -2
- biotite/structure/io/pdbx/bcif.py +36 -52
- biotite/structure/io/pdbx/cif.py +64 -62
- biotite/structure/io/pdbx/component.py +10 -16
- biotite/structure/io/pdbx/convert.py +235 -246
- biotite/structure/io/pdbx/encoding.cp310-win_amd64.pyd +0 -0
- biotite/structure/io/trajfile.py +76 -93
- biotite/structure/io/trr/__init__.py +1 -1
- biotite/structure/io/trr/file.py +12 -15
- biotite/structure/io/xtc/__init__.py +1 -1
- biotite/structure/io/xtc/file.py +11 -14
- biotite/structure/mechanics.py +9 -11
- biotite/structure/molecules.py +3 -4
- biotite/structure/pseudoknots.py +53 -67
- biotite/structure/rdf.py +23 -21
- biotite/structure/repair.py +137 -86
- biotite/structure/residues.py +26 -16
- biotite/structure/sasa.cp310-win_amd64.pyd +0 -0
- biotite/structure/{resutil.py → segments.py} +24 -23
- biotite/structure/sequence.py +10 -11
- biotite/structure/sse.py +100 -119
- biotite/structure/superimpose.py +39 -77
- biotite/structure/transform.py +97 -71
- biotite/structure/util.py +11 -13
- biotite/version.py +2 -2
- biotite/visualize.py +69 -55
- {biotite-0.41.1.dist-info → biotite-1.0.0.dist-info}/METADATA +6 -6
- biotite-1.0.0.dist-info/RECORD +322 -0
- {biotite-0.41.1.dist-info → biotite-1.0.0.dist-info}/WHEEL +1 -1
- biotite/structure/io/ctab.py +0 -72
- biotite/structure/io/mmtf/__init__.py +0 -21
- biotite/structure/io/mmtf/assembly.py +0 -214
- biotite/structure/io/mmtf/convertarray.cp310-win_amd64.pyd +0 -0
- biotite/structure/io/mmtf/convertarray.pyx +0 -341
- biotite/structure/io/mmtf/convertfile.cp310-win_amd64.pyd +0 -0
- biotite/structure/io/mmtf/convertfile.pyx +0 -501
- biotite/structure/io/mmtf/decode.cp310-win_amd64.pyd +0 -0
- biotite/structure/io/mmtf/decode.pyx +0 -152
- biotite/structure/io/mmtf/encode.cp310-win_amd64.pyd +0 -0
- biotite/structure/io/mmtf/encode.pyx +0 -183
- biotite/structure/io/mmtf/file.py +0 -233
- biotite/structure/io/npz/__init__.py +0 -20
- biotite/structure/io/npz/file.py +0 -152
- biotite/structure/io/pdbx/legacy.py +0 -267
- biotite/structure/io/tng/__init__.py +0 -13
- biotite/structure/io/tng/file.py +0 -46
- biotite/temp.py +0 -86
- biotite-0.41.1.dist-info/RECORD +0 -340
- {biotite-0.41.1.dist-info → biotite-1.0.0.dist-info}/licenses/LICENSE.rst +0 -0
|
@@ -9,8 +9,14 @@ subpackages.
|
|
|
9
9
|
|
|
10
10
|
__name__ = "biotite.structure.io.pdb"
|
|
11
11
|
__author__ = "Patrick Kunzmann"
|
|
12
|
-
__all__ = [
|
|
13
|
-
|
|
12
|
+
__all__ = [
|
|
13
|
+
"get_model_count",
|
|
14
|
+
"get_structure",
|
|
15
|
+
"set_structure",
|
|
16
|
+
"list_assemblies",
|
|
17
|
+
"get_assembly",
|
|
18
|
+
"get_symmetry_mates",
|
|
19
|
+
]
|
|
14
20
|
|
|
15
21
|
|
|
16
22
|
def get_model_count(pdb_file):
|
|
@@ -30,8 +36,9 @@ def get_model_count(pdb_file):
|
|
|
30
36
|
return pdb_file.get_model_count()
|
|
31
37
|
|
|
32
38
|
|
|
33
|
-
def get_structure(
|
|
34
|
-
|
|
39
|
+
def get_structure(
|
|
40
|
+
pdb_file, model=None, altloc="first", extra_fields=[], include_bonds=False
|
|
41
|
+
):
|
|
35
42
|
"""
|
|
36
43
|
Create an :class:`AtomArray` or :class:`AtomArrayStack` from a
|
|
37
44
|
:class:`PDBFile`.
|
|
@@ -39,7 +46,7 @@ def get_structure(pdb_file, model=None, altloc="first", extra_fields=[],
|
|
|
39
46
|
This function is a thin wrapper around the :class:`PDBFile` method
|
|
40
47
|
:func:`get_structure()` for the sake of consistency with other
|
|
41
48
|
``structure.io`` subpackages.
|
|
42
|
-
|
|
49
|
+
|
|
43
50
|
Parameters
|
|
44
51
|
----------
|
|
45
52
|
pdb_file : PDBFile
|
|
@@ -77,12 +84,12 @@ def get_structure(pdb_file, model=None, altloc="first", extra_fields=[],
|
|
|
77
84
|
(e.g. especially inter-residue bonds),
|
|
78
85
|
have :attr:`BondType.ANY`, since the PDB format itself does
|
|
79
86
|
not support bond orders.
|
|
80
|
-
|
|
87
|
+
|
|
81
88
|
Returns
|
|
82
89
|
-------
|
|
83
90
|
array : AtomArray or AtomArrayStack
|
|
84
91
|
The return type depends on the `model` parameter.
|
|
85
|
-
|
|
92
|
+
|
|
86
93
|
"""
|
|
87
94
|
return pdb_file.get_structure(model, altloc, extra_fields, include_bonds)
|
|
88
95
|
|
|
@@ -95,11 +102,11 @@ def set_structure(pdb_file, array, hybrid36=False):
|
|
|
95
102
|
This function is a thin wrapper around the :class:`PDBFile` method
|
|
96
103
|
:func:`set_structure()` for the sake of consistency with other
|
|
97
104
|
``structure.io`` subpackages.
|
|
98
|
-
|
|
105
|
+
|
|
99
106
|
This will save the coordinates, the mandatory annotation categories
|
|
100
107
|
and the optional annotation categories
|
|
101
108
|
'atom_id', 'b_factor', 'occupancy' and 'charge'.
|
|
102
|
-
|
|
109
|
+
|
|
103
110
|
Parameters
|
|
104
111
|
----------
|
|
105
112
|
pdb_file : PDBFile
|
|
@@ -137,7 +144,7 @@ def list_assemblies(pdb_file):
|
|
|
137
144
|
-------
|
|
138
145
|
assemblies : list of str
|
|
139
146
|
A list that contains the available assembly IDs.
|
|
140
|
-
|
|
147
|
+
|
|
141
148
|
Examples
|
|
142
149
|
--------
|
|
143
150
|
>>> import os.path
|
|
@@ -148,8 +155,14 @@ def list_assemblies(pdb_file):
|
|
|
148
155
|
return pdb_file.list_assemblies()
|
|
149
156
|
|
|
150
157
|
|
|
151
|
-
def get_assembly(
|
|
152
|
-
|
|
158
|
+
def get_assembly(
|
|
159
|
+
pdb_file,
|
|
160
|
+
assembly_id=None,
|
|
161
|
+
model=None,
|
|
162
|
+
altloc="first",
|
|
163
|
+
extra_fields=[],
|
|
164
|
+
include_bonds=False,
|
|
165
|
+
):
|
|
153
166
|
"""
|
|
154
167
|
Build the given biological assembly.
|
|
155
168
|
|
|
@@ -205,7 +218,7 @@ def get_assembly(pdb_file, assembly_id=None, model=None, altloc="first",
|
|
|
205
218
|
assembly : AtomArray or AtomArrayStack
|
|
206
219
|
The assembly.
|
|
207
220
|
The return type depends on the `model` parameter.
|
|
208
|
-
|
|
221
|
+
|
|
209
222
|
Examples
|
|
210
223
|
--------
|
|
211
224
|
|
|
@@ -218,8 +231,9 @@ def get_assembly(pdb_file, assembly_id=None, model=None, altloc="first",
|
|
|
218
231
|
)
|
|
219
232
|
|
|
220
233
|
|
|
221
|
-
def get_symmetry_mates(
|
|
222
|
-
|
|
234
|
+
def get_symmetry_mates(
|
|
235
|
+
pdb_file, model=None, altloc="first", extra_fields=[], include_bonds=False
|
|
236
|
+
):
|
|
223
237
|
"""
|
|
224
238
|
Build a structure model containing all symmetric copies
|
|
225
239
|
of the structure within a single unit cell, given by the space
|
|
@@ -274,13 +288,13 @@ def get_symmetry_mates(pdb_file, model=None, altloc="first",
|
|
|
274
288
|
symmetry_mates : AtomArray or AtomArrayStack
|
|
275
289
|
All atoms within a single unit cell.
|
|
276
290
|
The return type depends on the `model` parameter.
|
|
277
|
-
|
|
291
|
+
|
|
278
292
|
Notes
|
|
279
293
|
-----
|
|
280
294
|
To expand the structure beyond a single unit cell, use
|
|
281
295
|
:func:`repeat_box()` with the return value as its
|
|
282
296
|
input.
|
|
283
|
-
|
|
297
|
+
|
|
284
298
|
Examples
|
|
285
299
|
--------
|
|
286
300
|
|
|
@@ -288,6 +302,4 @@ def get_symmetry_mates(pdb_file, model=None, altloc="first",
|
|
|
288
302
|
>>> file = PDBFile.read(os.path.join(path_to_structures, "1aki.pdb"))
|
|
289
303
|
>>> atoms_in_unit_cell = get_symmetry_mates(file, model=1)
|
|
290
304
|
"""
|
|
291
|
-
return pdb_file.get_symmetry_mates(
|
|
292
|
-
model, altloc, extra_fields, include_bonds
|
|
293
|
-
)
|
|
305
|
+
return pdb_file.get_symmetry_mates(model, altloc, extra_fields, include_bonds)
|