aldepyde 0.0.0a35__tar.gz → 0.0.0a37__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.
Potentially problematic release.
This version of aldepyde might be problematic. Click here for more details.
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/PKG-INFO +1 -1
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/databases/SCOPe_Astral.py +4 -2
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde.egg-info/PKG-INFO +1 -1
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/pyproject.toml +1 -1
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/LICENSE +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/README.md +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/Parsers/_mmcif_parser.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/Parsers/_pdb_parser.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/__init__.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/_config.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/biomolecule/Residue.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/biomolecule/_Atom.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/biomolecule/_AtomFactory.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/biomolecule/__init__.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/biomolecule/_amino_acid.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/biomolecule/_dna.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/biomolecule/_pdb.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/biomolecule/_rna.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/biomolecule/utils.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/cache/__init__.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/cache/_cache.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/cache/cachemanager.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/cache/downloader.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/cache/utils.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/configurable.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/data/RemoteFileHandler.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/data/__init__.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/data.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/databases/PDB.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/databases/RemoteFileHandler.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/databases/UniRef.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/databases/__init__.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/databases/_database.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/env.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/fetcher/__init__.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/fetcher/test.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/json/CHG.json +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/json/Swiss_Prot.json +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/json/chemistry.json +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/rand/RandomProtein.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/rand/__init__.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/stats/ProteinStats.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/stats/__init__.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde/utils.py +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde.egg-info/SOURCES.txt +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde.egg-info/dependency_links.txt +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/aldepyde.egg-info/top_level.txt +0 -0
- {aldepyde-0.0.0a35 → aldepyde-0.0.0a37}/setup.cfg +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import io
|
|
2
|
+
|
|
1
3
|
from aldepyde.databases._database import local_database
|
|
2
4
|
import operator
|
|
3
5
|
from contextlib import nullcontext
|
|
@@ -49,9 +51,9 @@ class scop_parser(local_database):
|
|
|
49
51
|
logic = scop_parser.op[mode]
|
|
50
52
|
regex = re.compile(b">[a-zA-Z0-9_.]* *[a-l](.[0-9]+)?(.[0-9]+)?(.[0-9]+)?")
|
|
51
53
|
if append:
|
|
52
|
-
file_context = open(destination, 'ab') if destination is not None else nullcontext()
|
|
54
|
+
file_context = open(destination, 'ab') if destination is not None else nullcontext(io.BytesIO())
|
|
53
55
|
else:
|
|
54
|
-
file_context = open(destination, 'wb') if destination is not None else nullcontext()
|
|
56
|
+
file_context = open(destination, 'wb') if destination is not None else nullcontext(io.BytesIO())
|
|
55
57
|
with file_context as fp:
|
|
56
58
|
ret_dict = dict()
|
|
57
59
|
for line in self.extract_all_astral():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|