Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .venv_haddock/lib/python3.12/site-packages/BioSQL/BioSeq.py +592 -0
- .venv_haddock/lib/python3.12/site-packages/BioSQL/Loader.py +1260 -0
- .venv_haddock/lib/python3.12/site-packages/BioSQL/py.typed +0 -0
- .venv_haddock/lib/python3.12/site-packages/_distutils_hack/__init__.py +239 -0
- .venv_haddock/lib/python3.12/site-packages/_distutils_hack/override.py +1 -0
- .venv_haddock/lib/python3.12/site-packages/biopython-1.87.dist-info/INSTALLER +1 -0
- .venv_haddock/lib/python3.12/site-packages/biopython-1.87.dist-info/METADATA +323 -0
- .venv_haddock/lib/python3.12/site-packages/biopython-1.87.dist-info/RECORD +958 -0
- .venv_haddock/lib/python3.12/site-packages/biopython-1.87.dist-info/WHEEL +6 -0
- .venv_haddock/lib/python3.12/site-packages/biopython-1.87.dist-info/top_level.txt +2 -0
- .venv_haddock/lib/python3.12/site-packages/freesasa-2.2.1.dist-info/INSTALLER +1 -0
- .venv_haddock/lib/python3.12/site-packages/freesasa-2.2.1.dist-info/METADATA +28 -0
- .venv_haddock/lib/python3.12/site-packages/freesasa-2.2.1.dist-info/RECORD +34 -0
- .venv_haddock/lib/python3.12/site-packages/freesasa-2.2.1.dist-info/WHEEL +5 -0
- .venv_haddock/lib/python3.12/site-packages/freesasa-2.2.1.dist-info/top_level.txt +1 -0
- .venv_haddock/lib/python3.12/site-packages/numpy-2.4.4.dist-info/INSTALLER +1 -0
- .venv_haddock/lib/python3.12/site-packages/numpy-2.4.4.dist-info/METADATA +139 -0
- .venv_haddock/lib/python3.12/site-packages/numpy-2.4.4.dist-info/RECORD +0 -0
- .venv_haddock/lib/python3.12/site-packages/numpy-2.4.4.dist-info/WHEEL +6 -0
- .venv_haddock/lib/python3.12/site-packages/numpy-2.4.4.dist-info/entry_points.txt +13 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_config/__init__.py +57 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_config/__pycache__/__init__.cpython-312.pyc +0 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_config/__pycache__/config.cpython-312.pyc +0 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_config/__pycache__/dates.cpython-312.pyc +0 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_config/__pycache__/display.cpython-312.pyc +0 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_config/__pycache__/localization.cpython-312.pyc +0 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_config/config.py +948 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_config/dates.py +25 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_config/display.py +62 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_config/localization.py +172 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/__pycache__/__init__.cpython-312.pyc +0 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/arrays.pyi +40 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/byteswap.pyi +5 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/hashing.pyi +9 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/hashtable.pyi +252 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/index.pyi +103 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/interval.pyi +174 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/join.pyi +79 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/json.cpython-312-darwin.so +0 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/json.pyi +23 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/properties.pyi +27 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/sas.pyi +7 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/sparse.pyi +51 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/testing.pyi +12 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/__init__.py +87 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/ccalendar.cpython-312-darwin.so +0 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/ccalendar.pyi +12 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/dtypes.pyi +83 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/np_datetime.pyi +27 -0
- .venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/offsets.pyi +287 -0
.venv_haddock/lib/python3.12/site-packages/BioSQL/BioSeq.py
ADDED
|
@@ -0,0 +1,592 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2002 by Andrew Dalke. All rights reserved.
|
| 2 |
+
# Revisions 2007-2016 copyright by Peter Cock. All rights reserved.
|
| 3 |
+
# Revisions 2008-2009 copyright by Cymon J. Cox. All rights reserved.
|
| 4 |
+
#
|
| 5 |
+
# This file is part of the Biopython distribution and governed by your
|
| 6 |
+
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
|
| 7 |
+
# Please see the LICENSE file that should have been included as part of this
|
| 8 |
+
# package.
|
| 9 |
+
#
|
| 10 |
+
# Note that BioSQL (including the database schema and scripts) is
|
| 11 |
+
# available and licensed separately. Please consult www.biosql.org
|
| 12 |
+
"""Implementations of Biopython-like Seq objects on top of BioSQL.
|
| 13 |
+
|
| 14 |
+
This allows retrieval of items stored in a BioSQL database using
|
| 15 |
+
a biopython-like SeqRecord and Seq interface.
|
| 16 |
+
|
| 17 |
+
Note: Currently we do not support recording per-letter-annotations
|
| 18 |
+
(like quality scores) in BioSQL.
|
| 19 |
+
"""
|
| 20 |
+
|
| 21 |
+
from Bio import SeqFeature
|
| 22 |
+
from Bio.Seq import Seq
|
| 23 |
+
from Bio.Seq import SequenceDataAbstractBaseClass
|
| 24 |
+
from Bio.SeqRecord import _RestrictedDict
|
| 25 |
+
from Bio.SeqRecord import SeqRecord
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
class _BioSQLSequenceData(SequenceDataAbstractBaseClass):
|
| 29 |
+
"""Retrieves sequence data from a BioSQL database (PRIVATE)."""
|
| 30 |
+
|
| 31 |
+
__slots__ = ("primary_id", "adaptor", "_length", "start")
|
| 32 |
+
|
| 33 |
+
def __init__(self, primary_id, adaptor, start=0, length=0):
|
| 34 |
+
"""Create a new _BioSQLSequenceData object referring to a BioSQL entry.
|
| 35 |
+
|
| 36 |
+
You wouldn't normally create a _BioSQLSequenceData object yourself,
|
| 37 |
+
this is done for you when retrieving a DBSeqRecord object from the
|
| 38 |
+
database, which creates a Seq object using a _BioSQLSequenceData
|
| 39 |
+
instance as the data provider.
|
| 40 |
+
"""
|
| 41 |
+
self.primary_id = primary_id
|
| 42 |
+
self.adaptor = adaptor
|
| 43 |
+
self._length = length
|
| 44 |
+
self.start = start
|
| 45 |
+
super().__init__()
|
| 46 |
+
|
| 47 |
+
def __len__(self):
|
| 48 |
+
"""Return the length of the sequence."""
|
| 49 |
+
return self._length
|
| 50 |
+
|
| 51 |
+
def __getitem__(self, key):
|
| 52 |
+
"""Return a subsequence as a bytes or a _BioSQLSequenceData object."""
|
| 53 |
+
if isinstance(key, slice):
|
| 54 |
+
start, end, step = key.indices(self._length)
|
| 55 |
+
size = len(range(start, end, step))
|
| 56 |
+
if size == 0:
|
| 57 |
+
return b""
|
| 58 |
+
else:
|
| 59 |
+
# Return a single letter as an integer (consistent with bytes)
|
| 60 |
+
i = key
|
| 61 |
+
if i < 0:
|
| 62 |
+
i += self._length
|
| 63 |
+
if i < 0:
|
| 64 |
+
raise IndexError(key)
|
| 65 |
+
elif i >= self._length:
|
| 66 |
+
raise IndexError(key)
|
| 67 |
+
c = self.adaptor.get_subseq_as_string(
|
| 68 |
+
self.primary_id, self.start + i, self.start + i + 1
|
| 69 |
+
)
|
| 70 |
+
return ord(c)
|
| 71 |
+
|
| 72 |
+
if step == 1:
|
| 73 |
+
if start == 0 and size == self._length:
|
| 74 |
+
# Return the full sequence as bytes
|
| 75 |
+
sequence = self.adaptor.get_subseq_as_string(
|
| 76 |
+
self.primary_id, self.start, self.start + self._length
|
| 77 |
+
)
|
| 78 |
+
return sequence.encode("ASCII")
|
| 79 |
+
else:
|
| 80 |
+
# Return a _BioSQLSequenceData with the start and end adjusted
|
| 81 |
+
return _BioSQLSequenceData(
|
| 82 |
+
self.primary_id, self.adaptor, self.start + start, size
|
| 83 |
+
)
|
| 84 |
+
else:
|
| 85 |
+
# Will have to extract the sequence because of the stride
|
| 86 |
+
full = self.adaptor.get_subseq_as_string(
|
| 87 |
+
self.primary_id, self.start + start, self.start + end
|
| 88 |
+
)
|
| 89 |
+
return full[::step].encode("ASCII")
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
def _retrieve_seq_len(adaptor, primary_id):
|
| 93 |
+
# The database schema ensures there will be only one matching row
|
| 94 |
+
seqs = adaptor.execute_and_fetchall(
|
| 95 |
+
"SELECT length FROM biosequence WHERE bioentry_id = %s", (primary_id,)
|
| 96 |
+
)
|
| 97 |
+
if not seqs:
|
| 98 |
+
return None
|
| 99 |
+
if len(seqs) != 1:
|
| 100 |
+
raise ValueError(f"Expected 1 response, got {len(seqs)}.")
|
| 101 |
+
(given_length,) = seqs[0]
|
| 102 |
+
return int(given_length)
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def _retrieve_seq(adaptor, primary_id):
|
| 106 |
+
# The database schema ensures there will be only one matching
|
| 107 |
+
# row in the table.
|
| 108 |
+
|
| 109 |
+
# If an undefined sequence was recorded, seq will be NULL,
|
| 110 |
+
# but length will be populated. This means length(seq)
|
| 111 |
+
# will return None.
|
| 112 |
+
seqs = adaptor.execute_and_fetchall(
|
| 113 |
+
"SELECT alphabet, length, length(seq) FROM biosequence WHERE bioentry_id = %s",
|
| 114 |
+
(primary_id,),
|
| 115 |
+
)
|
| 116 |
+
if not seqs:
|
| 117 |
+
return
|
| 118 |
+
if len(seqs) != 1:
|
| 119 |
+
raise ValueError(f"Expected 1 response, got {len(seqs)}.")
|
| 120 |
+
moltype, given_length, length = seqs[0]
|
| 121 |
+
|
| 122 |
+
try:
|
| 123 |
+
length = int(length)
|
| 124 |
+
given_length = int(given_length)
|
| 125 |
+
if length != given_length:
|
| 126 |
+
raise ValueError(
|
| 127 |
+
f"'length' differs from sequence length, {given_length}, {length}"
|
| 128 |
+
)
|
| 129 |
+
have_seq = True
|
| 130 |
+
except TypeError:
|
| 131 |
+
if length is not None:
|
| 132 |
+
raise ValueError(f"Expected 'length' to be 'None', got {length}.")
|
| 133 |
+
seqs = adaptor.execute_and_fetchall(
|
| 134 |
+
"SELECT alphabet, length, seq FROM biosequence WHERE bioentry_id = %s",
|
| 135 |
+
(primary_id,),
|
| 136 |
+
)
|
| 137 |
+
if len(seqs) != 1:
|
| 138 |
+
raise ValueError(f"Expected 1 response, got {len(seqs)}.")
|
| 139 |
+
moltype, given_length, seq = seqs[0]
|
| 140 |
+
if seq:
|
| 141 |
+
raise ValueError(f"Expected 'seq' to have a falsy value, got {seq}.")
|
| 142 |
+
length = int(given_length)
|
| 143 |
+
have_seq = False
|
| 144 |
+
del seq
|
| 145 |
+
del given_length
|
| 146 |
+
|
| 147 |
+
if have_seq:
|
| 148 |
+
data = _BioSQLSequenceData(primary_id, adaptor, start=0, length=length)
|
| 149 |
+
return Seq(data)
|
| 150 |
+
else:
|
| 151 |
+
return Seq(None, length=length)
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
def _retrieve_dbxrefs(adaptor, primary_id):
|
| 155 |
+
"""Retrieve the database cross references for the sequence (PRIVATE)."""
|
| 156 |
+
_dbxrefs = []
|
| 157 |
+
dbxrefs = adaptor.execute_and_fetchall(
|
| 158 |
+
"SELECT dbname, accession, version"
|
| 159 |
+
" FROM bioentry_dbxref join dbxref using (dbxref_id)"
|
| 160 |
+
" WHERE bioentry_id = %s"
|
| 161 |
+
' ORDER BY "rank"',
|
| 162 |
+
(primary_id,),
|
| 163 |
+
)
|
| 164 |
+
for dbname, accession, version in dbxrefs:
|
| 165 |
+
if version and version != "0":
|
| 166 |
+
v = f"{accession}.{version}"
|
| 167 |
+
else:
|
| 168 |
+
v = accession
|
| 169 |
+
_dbxrefs.append(f"{dbname}:{v}")
|
| 170 |
+
return _dbxrefs
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
def _retrieve_features(adaptor, primary_id):
|
| 174 |
+
sql = (
|
| 175 |
+
'SELECT seqfeature_id, type.name, "rank"'
|
| 176 |
+
" FROM seqfeature join term type on (type_term_id = type.term_id)"
|
| 177 |
+
" WHERE bioentry_id = %s"
|
| 178 |
+
' ORDER BY "rank"'
|
| 179 |
+
)
|
| 180 |
+
results = adaptor.execute_and_fetchall(sql, (primary_id,))
|
| 181 |
+
seq_feature_list = []
|
| 182 |
+
for seqfeature_id, seqfeature_type, seqfeature_rank in results:
|
| 183 |
+
# Get qualifiers [except for db_xref which is stored separately]
|
| 184 |
+
qvs = adaptor.execute_and_fetchall(
|
| 185 |
+
"SELECT name, value"
|
| 186 |
+
" FROM seqfeature_qualifier_value join term using (term_id)"
|
| 187 |
+
" WHERE seqfeature_id = %s"
|
| 188 |
+
' ORDER BY "rank"',
|
| 189 |
+
(seqfeature_id,),
|
| 190 |
+
)
|
| 191 |
+
qualifiers = {}
|
| 192 |
+
for qv_name, qv_value in qvs:
|
| 193 |
+
qualifiers.setdefault(qv_name, []).append(qv_value)
|
| 194 |
+
# Get db_xrefs [special case of qualifiers]
|
| 195 |
+
qvs = adaptor.execute_and_fetchall(
|
| 196 |
+
"SELECT dbxref.dbname, dbxref.accession"
|
| 197 |
+
" FROM dbxref join seqfeature_dbxref using (dbxref_id)"
|
| 198 |
+
" WHERE seqfeature_dbxref.seqfeature_id = %s"
|
| 199 |
+
' ORDER BY "rank"',
|
| 200 |
+
(seqfeature_id,),
|
| 201 |
+
)
|
| 202 |
+
for qv_name, qv_value in qvs:
|
| 203 |
+
value = f"{qv_name}:{qv_value}"
|
| 204 |
+
qualifiers.setdefault("db_xref", []).append(value)
|
| 205 |
+
# Get locations
|
| 206 |
+
results = adaptor.execute_and_fetchall(
|
| 207 |
+
"SELECT location_id, start_pos, end_pos, strand"
|
| 208 |
+
" FROM location"
|
| 209 |
+
" WHERE seqfeature_id = %s"
|
| 210 |
+
' ORDER BY "rank"',
|
| 211 |
+
(seqfeature_id,),
|
| 212 |
+
)
|
| 213 |
+
locations = []
|
| 214 |
+
# convert to Python standard form
|
| 215 |
+
# Convert strand = 0 to strand = None
|
| 216 |
+
# re: comment in Loader.py:
|
| 217 |
+
# Biopython uses None when we don't know strand information but
|
| 218 |
+
# BioSQL requires something (non null) and sets this as zero
|
| 219 |
+
# So we'll use the strand or 0 if Biopython spits out None
|
| 220 |
+
for location_id, start, end, strand in results:
|
| 221 |
+
if start:
|
| 222 |
+
start -= 1
|
| 223 |
+
if strand == 0:
|
| 224 |
+
strand = None
|
| 225 |
+
if strand not in (+1, -1, None):
|
| 226 |
+
raise ValueError(
|
| 227 |
+
"Invalid strand %s found in database for "
|
| 228 |
+
"seqfeature_id %s" % (strand, seqfeature_id)
|
| 229 |
+
)
|
| 230 |
+
if start is not None and end is not None and end < start:
|
| 231 |
+
import warnings
|
| 232 |
+
|
| 233 |
+
from Bio import BiopythonWarning
|
| 234 |
+
|
| 235 |
+
warnings.warn(
|
| 236 |
+
"Inverted location start/end (%i and %i) for "
|
| 237 |
+
"seqfeature_id %s" % (start, end, seqfeature_id),
|
| 238 |
+
BiopythonWarning,
|
| 239 |
+
)
|
| 240 |
+
|
| 241 |
+
# For SwissProt unknown positions (?)
|
| 242 |
+
if start is None:
|
| 243 |
+
start = SeqFeature.UnknownPosition()
|
| 244 |
+
if end is None:
|
| 245 |
+
end = SeqFeature.UnknownPosition()
|
| 246 |
+
|
| 247 |
+
locations.append((location_id, start, end, strand))
|
| 248 |
+
# Get possible remote reference information
|
| 249 |
+
remote_results = adaptor.execute_and_fetchall(
|
| 250 |
+
"SELECT location_id, dbname, accession, version"
|
| 251 |
+
" FROM location join dbxref using (dbxref_id)"
|
| 252 |
+
" WHERE seqfeature_id = %s",
|
| 253 |
+
(seqfeature_id,),
|
| 254 |
+
)
|
| 255 |
+
lookup = {}
|
| 256 |
+
for location_id, dbname, accession, version in remote_results:
|
| 257 |
+
if version and version != "0":
|
| 258 |
+
v = f"{accession}.{version}"
|
| 259 |
+
else:
|
| 260 |
+
v = accession
|
| 261 |
+
# subfeature remote location db_ref are stored as a empty string
|
| 262 |
+
# when not present
|
| 263 |
+
if dbname == "":
|
| 264 |
+
dbname = None
|
| 265 |
+
lookup[location_id] = (dbname, v)
|
| 266 |
+
|
| 267 |
+
feature = SeqFeature.SeqFeature(type=seqfeature_type)
|
| 268 |
+
# Store the key as a private property
|
| 269 |
+
feature._seqfeature_id = seqfeature_id
|
| 270 |
+
feature.qualifiers = qualifiers
|
| 271 |
+
if len(locations) == 0:
|
| 272 |
+
pass
|
| 273 |
+
elif len(locations) == 1:
|
| 274 |
+
location_id, start, end, strand = locations[0]
|
| 275 |
+
# See Bug 2677, we currently don't record the location_operator
|
| 276 |
+
# For consistency with older versions Biopython, default to "".
|
| 277 |
+
feature.location_operator = _retrieve_location_qualifier_value(
|
| 278 |
+
adaptor, location_id
|
| 279 |
+
)
|
| 280 |
+
dbname, version = lookup.get(location_id, (None, None))
|
| 281 |
+
feature.location = SeqFeature.SimpleLocation(start, end)
|
| 282 |
+
feature.location.strand = strand
|
| 283 |
+
feature.location.ref_db = dbname
|
| 284 |
+
feature.location.ref = version
|
| 285 |
+
else:
|
| 286 |
+
locs = []
|
| 287 |
+
for location in locations:
|
| 288 |
+
location_id, start, end, strand = location
|
| 289 |
+
dbname, version = lookup.get(location_id, (None, None))
|
| 290 |
+
locs.append(
|
| 291 |
+
SeqFeature.SimpleLocation(
|
| 292 |
+
start, end, strand=strand, ref=version, ref_db=dbname
|
| 293 |
+
)
|
| 294 |
+
)
|
| 295 |
+
# Locations are typically in biological in order (see negative
|
| 296 |
+
# strands below), but because of remote locations for
|
| 297 |
+
# sub-features they are not necessarily in numerical order:
|
| 298 |
+
strands = {_.strand for _ in locs}
|
| 299 |
+
if len(strands) == 1 and -1 in strands:
|
| 300 |
+
# Evil hack time for backwards compatibility
|
| 301 |
+
# TODO - Check if BioPerl and (old) Biopython did the same,
|
| 302 |
+
# we may have an existing incompatibility lurking here...
|
| 303 |
+
locs = locs[::-1]
|
| 304 |
+
feature.location = SeqFeature.CompoundLocation(locs, "join")
|
| 305 |
+
# TODO - See Bug 2677 - we don't yet record location operator,
|
| 306 |
+
# so for consistency with older versions of Biopython default
|
| 307 |
+
# to assuming its a join.
|
| 308 |
+
seq_feature_list.append(feature)
|
| 309 |
+
return seq_feature_list
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
def _retrieve_location_qualifier_value(adaptor, location_id):
|
| 313 |
+
value = adaptor.execute_and_fetch_col0(
|
| 314 |
+
"SELECT value FROM location_qualifier_value WHERE location_id = %s",
|
| 315 |
+
(location_id,),
|
| 316 |
+
)
|
| 317 |
+
try:
|
| 318 |
+
return value[0]
|
| 319 |
+
except IndexError:
|
| 320 |
+
return ""
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
def _retrieve_annotations(adaptor, primary_id, taxon_id):
|
| 324 |
+
annotations = {}
|
| 325 |
+
annotations.update(_retrieve_alphabet(adaptor, primary_id))
|
| 326 |
+
annotations.update(_retrieve_qualifier_value(adaptor, primary_id))
|
| 327 |
+
annotations.update(_retrieve_reference(adaptor, primary_id))
|
| 328 |
+
annotations.update(_retrieve_taxon(adaptor, primary_id, taxon_id))
|
| 329 |
+
annotations.update(_retrieve_comment(adaptor, primary_id))
|
| 330 |
+
return annotations
|
| 331 |
+
|
| 332 |
+
|
| 333 |
+
def _retrieve_alphabet(adaptor, primary_id):
|
| 334 |
+
results = adaptor.execute_and_fetchall(
|
| 335 |
+
"SELECT alphabet FROM biosequence WHERE bioentry_id = %s", (primary_id,)
|
| 336 |
+
)
|
| 337 |
+
if len(results) != 1:
|
| 338 |
+
raise ValueError(f"Expected 1 response, got {len(results)}.")
|
| 339 |
+
alphabets = results[0]
|
| 340 |
+
if len(alphabets) != 1:
|
| 341 |
+
raise ValueError(f"Expected 1 alphabet in response, got {len(alphabets)}.")
|
| 342 |
+
alphabet = alphabets[0]
|
| 343 |
+
if alphabet == "dna":
|
| 344 |
+
molecule_type = "DNA"
|
| 345 |
+
elif alphabet == "rna":
|
| 346 |
+
molecule_type = "RNA"
|
| 347 |
+
elif alphabet == "protein":
|
| 348 |
+
molecule_type = "protein"
|
| 349 |
+
else:
|
| 350 |
+
molecule_type = None
|
| 351 |
+
if molecule_type is not None:
|
| 352 |
+
return {"molecule_type": molecule_type}
|
| 353 |
+
else:
|
| 354 |
+
return {}
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
def _retrieve_qualifier_value(adaptor, primary_id):
|
| 358 |
+
qvs = adaptor.execute_and_fetchall(
|
| 359 |
+
"SELECT name, value"
|
| 360 |
+
" FROM bioentry_qualifier_value JOIN term USING (term_id)"
|
| 361 |
+
" WHERE bioentry_id = %s"
|
| 362 |
+
' ORDER BY "rank"',
|
| 363 |
+
(primary_id,),
|
| 364 |
+
)
|
| 365 |
+
qualifiers = {}
|
| 366 |
+
for name, value in qvs:
|
| 367 |
+
if name == "keyword":
|
| 368 |
+
name = "keywords"
|
| 369 |
+
# See handling of "date" in Loader.py
|
| 370 |
+
elif name == "date_changed":
|
| 371 |
+
name = "date"
|
| 372 |
+
elif name == "secondary_accession":
|
| 373 |
+
name = "accessions"
|
| 374 |
+
qualifiers.setdefault(name, []).append(value)
|
| 375 |
+
return qualifiers
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
def _retrieve_reference(adaptor, primary_id):
|
| 379 |
+
# XXX dbxref_qualifier_value
|
| 380 |
+
|
| 381 |
+
refs = adaptor.execute_and_fetchall(
|
| 382 |
+
"SELECT start_pos, end_pos, "
|
| 383 |
+
" location, title, authors,"
|
| 384 |
+
" dbname, accession"
|
| 385 |
+
" FROM bioentry_reference"
|
| 386 |
+
" JOIN reference USING (reference_id)"
|
| 387 |
+
" LEFT JOIN dbxref USING (dbxref_id)"
|
| 388 |
+
" WHERE bioentry_id = %s"
|
| 389 |
+
' ORDER BY "rank"',
|
| 390 |
+
(primary_id,),
|
| 391 |
+
)
|
| 392 |
+
references = []
|
| 393 |
+
for start, end, location, title, authors, dbname, accession in refs:
|
| 394 |
+
reference = SeqFeature.Reference()
|
| 395 |
+
# If the start/end are missing, reference.location is an empty list
|
| 396 |
+
if (start is not None) or (end is not None):
|
| 397 |
+
if start is not None:
|
| 398 |
+
start -= 1 # python counting
|
| 399 |
+
reference.location = [SeqFeature.SimpleLocation(start, end)]
|
| 400 |
+
# Don't replace the default "" with None.
|
| 401 |
+
if authors:
|
| 402 |
+
reference.authors = authors
|
| 403 |
+
if title:
|
| 404 |
+
reference.title = title
|
| 405 |
+
reference.journal = location
|
| 406 |
+
if dbname == "PUBMED":
|
| 407 |
+
reference.pubmed_id = accession
|
| 408 |
+
elif dbname == "MEDLINE":
|
| 409 |
+
reference.medline_id = accession
|
| 410 |
+
references.append(reference)
|
| 411 |
+
if references:
|
| 412 |
+
return {"references": references}
|
| 413 |
+
else:
|
| 414 |
+
return {}
|
| 415 |
+
|
| 416 |
+
|
| 417 |
+
def _retrieve_taxon(adaptor, primary_id, taxon_id):
|
| 418 |
+
a = {}
|
| 419 |
+
common_names = adaptor.execute_and_fetch_col0(
|
| 420 |
+
"SELECT name FROM taxon_name WHERE taxon_id = %s"
|
| 421 |
+
" AND name_class = 'genbank common name'",
|
| 422 |
+
(taxon_id,),
|
| 423 |
+
)
|
| 424 |
+
if common_names:
|
| 425 |
+
a["source"] = common_names[0]
|
| 426 |
+
scientific_names = adaptor.execute_and_fetch_col0(
|
| 427 |
+
"SELECT name FROM taxon_name WHERE taxon_id = %s"
|
| 428 |
+
" AND name_class = 'scientific name'",
|
| 429 |
+
(taxon_id,),
|
| 430 |
+
)
|
| 431 |
+
if scientific_names:
|
| 432 |
+
a["organism"] = scientific_names[0]
|
| 433 |
+
ncbi_taxids = adaptor.execute_and_fetch_col0(
|
| 434 |
+
"SELECT ncbi_taxon_id FROM taxon WHERE taxon_id = %s", (taxon_id,)
|
| 435 |
+
)
|
| 436 |
+
if ncbi_taxids and ncbi_taxids[0] and ncbi_taxids[0] != "0":
|
| 437 |
+
a["ncbi_taxid"] = ncbi_taxids[0]
|
| 438 |
+
|
| 439 |
+
# Old code used the left/right values in the taxon table to get the
|
| 440 |
+
# taxonomy lineage in one SQL command. This was actually very slow,
|
| 441 |
+
# and would fail if the (optional) left/right values were missing.
|
| 442 |
+
#
|
| 443 |
+
# The following code is based on a contribution from Eric Gibert, and
|
| 444 |
+
# relies on the taxon table's parent_taxon_id field only (ignoring the
|
| 445 |
+
# optional left/right values). This means that it has to make a
|
| 446 |
+
# separate SQL query for each entry in the lineage, but it does still
|
| 447 |
+
# appear to be *much* faster. See Bug 2494.
|
| 448 |
+
taxonomy = []
|
| 449 |
+
while taxon_id:
|
| 450 |
+
name, rank, parent_taxon_id = adaptor.execute_one(
|
| 451 |
+
"SELECT taxon_name.name, taxon.node_rank, taxon.parent_taxon_id"
|
| 452 |
+
" FROM taxon, taxon_name"
|
| 453 |
+
" WHERE taxon.taxon_id=taxon_name.taxon_id"
|
| 454 |
+
" AND taxon_name.name_class='scientific name'"
|
| 455 |
+
" AND taxon.taxon_id = %s",
|
| 456 |
+
(taxon_id,),
|
| 457 |
+
)
|
| 458 |
+
if taxon_id == parent_taxon_id:
|
| 459 |
+
# If the taxon table has been populated by the BioSQL script
|
| 460 |
+
# load_ncbi_taxonomy.pl this is how top parent nodes are stored.
|
| 461 |
+
# Personally, I would have used a NULL parent_taxon_id here.
|
| 462 |
+
break
|
| 463 |
+
|
| 464 |
+
taxonomy.insert(0, name)
|
| 465 |
+
taxon_id = parent_taxon_id
|
| 466 |
+
|
| 467 |
+
if taxonomy:
|
| 468 |
+
a["taxonomy"] = taxonomy
|
| 469 |
+
return a
|
| 470 |
+
|
| 471 |
+
|
| 472 |
+
def _retrieve_comment(adaptor, primary_id):
|
| 473 |
+
qvs = adaptor.execute_and_fetchall(
|
| 474 |
+
'SELECT comment_text FROM comment WHERE bioentry_id=%s ORDER BY "rank"',
|
| 475 |
+
(primary_id,),
|
| 476 |
+
)
|
| 477 |
+
comments = [comm[0] for comm in qvs]
|
| 478 |
+
# Don't want to add an empty list...
|
| 479 |
+
if comments:
|
| 480 |
+
return {"comment": comments}
|
| 481 |
+
else:
|
| 482 |
+
return {}
|
| 483 |
+
|
| 484 |
+
|
| 485 |
+
class DBSeqRecord(SeqRecord):
|
| 486 |
+
"""BioSQL equivalent of the Biopython SeqRecord object."""
|
| 487 |
+
|
| 488 |
+
def __init__(self, adaptor, primary_id):
|
| 489 |
+
"""Create a DBSeqRecord object.
|
| 490 |
+
|
| 491 |
+
Arguments:
|
| 492 |
+
- adaptor - A BioSQL.BioSeqDatabase.Adaptor object
|
| 493 |
+
- primary_id - An internal integer ID used by BioSQL
|
| 494 |
+
|
| 495 |
+
You wouldn't normally create a DBSeqRecord object yourself,
|
| 496 |
+
this is done for you when using a BioSeqDatabase object
|
| 497 |
+
"""
|
| 498 |
+
self._adaptor = adaptor
|
| 499 |
+
self._primary_id = primary_id
|
| 500 |
+
|
| 501 |
+
(
|
| 502 |
+
self._biodatabase_id,
|
| 503 |
+
self._taxon_id,
|
| 504 |
+
self.name,
|
| 505 |
+
accession,
|
| 506 |
+
version,
|
| 507 |
+
self._identifier,
|
| 508 |
+
self._division,
|
| 509 |
+
self.description,
|
| 510 |
+
) = self._adaptor.execute_one(
|
| 511 |
+
"SELECT biodatabase_id, taxon_id, name, accession, version,"
|
| 512 |
+
" identifier, division, description"
|
| 513 |
+
" FROM bioentry"
|
| 514 |
+
" WHERE bioentry_id = %s",
|
| 515 |
+
(self._primary_id,),
|
| 516 |
+
)
|
| 517 |
+
if version and version != "0":
|
| 518 |
+
self.id = f"{accession}.{version}"
|
| 519 |
+
else:
|
| 520 |
+
self.id = accession
|
| 521 |
+
# We don't yet record any per-letter-annotations in the
|
| 522 |
+
# BioSQL database, but we should set this property up
|
| 523 |
+
# for completeness (and the __str__ method).
|
| 524 |
+
# We do NOT want to load the sequence from the DB here!
|
| 525 |
+
length = _retrieve_seq_len(adaptor, primary_id)
|
| 526 |
+
self._per_letter_annotations = _RestrictedDict(length=length)
|
| 527 |
+
|
| 528 |
+
def __get_seq(self):
|
| 529 |
+
if not hasattr(self, "_seq"):
|
| 530 |
+
self._seq = _retrieve_seq(self._adaptor, self._primary_id)
|
| 531 |
+
return self._seq
|
| 532 |
+
|
| 533 |
+
def __set_seq(self, seq):
|
| 534 |
+
# TODO - Check consistent with self._per_letter_annotations
|
| 535 |
+
self._seq = seq
|
| 536 |
+
|
| 537 |
+
def __del_seq(self):
|
| 538 |
+
del self._seq
|
| 539 |
+
|
| 540 |
+
seq = property(__get_seq, __set_seq, __del_seq, "Seq object") # type: ignore
|
| 541 |
+
|
| 542 |
+
@property
|
| 543 |
+
def dbxrefs(self) -> list[str]:
|
| 544 |
+
"""Database cross references."""
|
| 545 |
+
if not hasattr(self, "_dbxrefs"):
|
| 546 |
+
self._dbxrefs = _retrieve_dbxrefs(self._adaptor, self._primary_id)
|
| 547 |
+
return self._dbxrefs
|
| 548 |
+
|
| 549 |
+
@dbxrefs.setter
|
| 550 |
+
def dbxrefs(self, value: list[str]) -> None:
|
| 551 |
+
self._dbxrefs = value
|
| 552 |
+
|
| 553 |
+
@dbxrefs.deleter
|
| 554 |
+
def dbxrefs(self) -> None:
|
| 555 |
+
del self._dbxrefs
|
| 556 |
+
|
| 557 |
+
def __get_features(self):
|
| 558 |
+
if not hasattr(self, "_features"):
|
| 559 |
+
self._features = _retrieve_features(self._adaptor, self._primary_id)
|
| 560 |
+
return self._features
|
| 561 |
+
|
| 562 |
+
def __set_features(self, features):
|
| 563 |
+
self._features = features
|
| 564 |
+
|
| 565 |
+
def __del_features(self):
|
| 566 |
+
del self._features
|
| 567 |
+
|
| 568 |
+
features = property(__get_features, __set_features, __del_features, "Features")
|
| 569 |
+
|
| 570 |
+
@property
|
| 571 |
+
def annotations(self) -> SeqRecord._AnnotationsDict:
|
| 572 |
+
"""Annotations."""
|
| 573 |
+
if not hasattr(self, "_annotations"):
|
| 574 |
+
self._annotations = _retrieve_annotations(
|
| 575 |
+
self._adaptor, self._primary_id, self._taxon_id
|
| 576 |
+
)
|
| 577 |
+
if self._identifier:
|
| 578 |
+
self._annotations["gi"] = self._identifier
|
| 579 |
+
if self._division:
|
| 580 |
+
self._annotations["data_file_division"] = self._division
|
| 581 |
+
return self._annotations
|
| 582 |
+
|
| 583 |
+
@annotations.setter
|
| 584 |
+
def annotations(self, value: SeqRecord._AnnotationsDict | None) -> None:
|
| 585 |
+
if value:
|
| 586 |
+
self._annotations = value
|
| 587 |
+
else:
|
| 588 |
+
self._annotations = {}
|
| 589 |
+
|
| 590 |
+
@annotations.deleter
|
| 591 |
+
def annotations(self) -> None:
|
| 592 |
+
del self._annotations
|
.venv_haddock/lib/python3.12/site-packages/BioSQL/Loader.py
ADDED
|
@@ -0,0 +1,1260 @@
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2002 by Andrew Dalke. All rights reserved.
|
| 2 |
+
# Revisions 2007-2016 copyright by Peter Cock. All rights reserved.
|
| 3 |
+
# Revisions 2008 copyright by Cymon J. Cox. All rights reserved.
|
| 4 |
+
#
|
| 5 |
+
# This file is part of the Biopython distribution and governed by your
|
| 6 |
+
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
|
| 7 |
+
# Please see the LICENSE file that should have been included as part of this
|
| 8 |
+
# package.
|
| 9 |
+
#
|
| 10 |
+
# Note that BioSQL (including the database schema and scripts) is
|
| 11 |
+
# available and licensed separately. Please consult www.biosql.org
|
| 12 |
+
|
| 13 |
+
"""Load biopython objects into a BioSQL database for persistent storage.
|
| 14 |
+
|
| 15 |
+
This code makes it possible to store biopython objects in a relational
|
| 16 |
+
database and then retrieve them back. You shouldn't use any of the
|
| 17 |
+
classes in this module directly. Rather, call the load() method on
|
| 18 |
+
a database object.
|
| 19 |
+
"""
|
| 20 |
+
|
| 21 |
+
# standard modules
|
| 22 |
+
from time import gmtime
|
| 23 |
+
from time import strftime
|
| 24 |
+
|
| 25 |
+
from Bio import Entrez
|
| 26 |
+
from Bio.Seq import UndefinedSequenceError
|
| 27 |
+
from Bio.SeqFeature import UnknownPosition
|
| 28 |
+
|
| 29 |
+
# biopython
|
| 30 |
+
from Bio.SeqUtils.CheckSum import crc64
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
class DatabaseLoader:
|
| 34 |
+
"""Object used to load SeqRecord objects into a BioSQL database."""
|
| 35 |
+
|
| 36 |
+
def __init__(self, adaptor, dbid, fetch_NCBI_taxonomy=False):
|
| 37 |
+
"""Initialize with connection information for the database.
|
| 38 |
+
|
| 39 |
+
Creating a DatabaseLoader object is normally handled via the
|
| 40 |
+
BioSeqDatabase DBServer object, for example::
|
| 41 |
+
|
| 42 |
+
from BioSQL import BioSeqDatabase
|
| 43 |
+
server = BioSeqDatabase.open_database(driver="MySQLdb",
|
| 44 |
+
user="gbrowse",
|
| 45 |
+
passwd="biosql",
|
| 46 |
+
host="localhost",
|
| 47 |
+
db="test_biosql")
|
| 48 |
+
try:
|
| 49 |
+
db = server["test"]
|
| 50 |
+
except KeyError:
|
| 51 |
+
db = server.new_database("test",
|
| 52 |
+
description="For testing GBrowse")
|
| 53 |
+
|
| 54 |
+
"""
|
| 55 |
+
self.adaptor = adaptor
|
| 56 |
+
self.dbid = dbid
|
| 57 |
+
self.fetch_NCBI_taxonomy = fetch_NCBI_taxonomy
|
| 58 |
+
|
| 59 |
+
def load_seqrecord(self, record):
|
| 60 |
+
"""Load a Biopython SeqRecord into the database."""
|
| 61 |
+
bioentry_id = self._load_bioentry_table(record)
|
| 62 |
+
self._load_bioentry_date(record, bioentry_id)
|
| 63 |
+
self._load_biosequence(record, bioentry_id)
|
| 64 |
+
self._load_comment(record, bioentry_id)
|
| 65 |
+
self._load_dbxrefs(record, bioentry_id)
|
| 66 |
+
references = record.annotations.get("references", ())
|
| 67 |
+
for reference, rank in zip(references, list(range(len(references)))):
|
| 68 |
+
self._load_reference(reference, rank, bioentry_id)
|
| 69 |
+
self._load_annotations(record, bioentry_id)
|
| 70 |
+
for seq_feature_num in range(len(record.features)):
|
| 71 |
+
seq_feature = record.features[seq_feature_num]
|
| 72 |
+
self._load_seqfeature(seq_feature, seq_feature_num, bioentry_id)
|
| 73 |
+
|
| 74 |
+
def _get_ontology_id(self, name, definition=None):
|
| 75 |
+
"""Return identifier for the named ontology (PRIVATE).
|
| 76 |
+
|
| 77 |
+
This looks through the onotology table for a the given entry name.
|
| 78 |
+
If it is not found, a row is added for this ontology (using the
|
| 79 |
+
definition if supplied). In either case, the id corresponding to
|
| 80 |
+
the provided name is returned, so that you can reference it in
|
| 81 |
+
another table.
|
| 82 |
+
"""
|
| 83 |
+
oids = self.adaptor.execute_and_fetch_col0(
|
| 84 |
+
"SELECT ontology_id FROM ontology WHERE name = %s", (name,)
|
| 85 |
+
)
|
| 86 |
+
if oids:
|
| 87 |
+
return oids[0]
|
| 88 |
+
self.adaptor.execute(
|
| 89 |
+
"INSERT INTO ontology(name, definition) VALUES (%s, %s)", (name, definition)
|
| 90 |
+
)
|
| 91 |
+
return self.adaptor.last_id("ontology")
|
| 92 |
+
|
| 93 |
+
def _get_term_id(self, name, ontology_id=None, definition=None, identifier=None):
|
| 94 |
+
"""Get the id that corresponds to a term (PRIVATE).
|
| 95 |
+
|
| 96 |
+
This looks through the term table for a the given term. If it
|
| 97 |
+
is not found, a new id corresponding to this term is created.
|
| 98 |
+
In either case, the id corresponding to that term is returned, so
|
| 99 |
+
that you can reference it in another table.
|
| 100 |
+
|
| 101 |
+
The ontology_id should be used to disambiguate the term.
|
| 102 |
+
"""
|
| 103 |
+
# try to get the term id
|
| 104 |
+
sql = "SELECT term_id FROM term WHERE name = %s"
|
| 105 |
+
fields = [name]
|
| 106 |
+
if ontology_id:
|
| 107 |
+
sql += " AND ontology_id = %s"
|
| 108 |
+
fields.append(ontology_id)
|
| 109 |
+
id_results = self.adaptor.execute_and_fetchall(sql, fields)
|
| 110 |
+
# something is wrong
|
| 111 |
+
if len(id_results) > 1:
|
| 112 |
+
raise ValueError(f"Multiple term ids for {name}: {id_results!r}")
|
| 113 |
+
elif len(id_results) == 1:
|
| 114 |
+
return id_results[0][0]
|
| 115 |
+
else:
|
| 116 |
+
sql = (
|
| 117 |
+
"INSERT INTO term (name, definition,"
|
| 118 |
+
" identifier, ontology_id)"
|
| 119 |
+
" VALUES (%s, %s, %s, %s)"
|
| 120 |
+
)
|
| 121 |
+
self.adaptor.execute(sql, (name, definition, identifier, ontology_id))
|
| 122 |
+
return self.adaptor.last_id("term")
|
| 123 |
+
|
| 124 |
+
def _add_dbxref(self, dbname, accession, version):
|
| 125 |
+
"""Insert a dbxref and return its id (PRIVATE)."""
|
| 126 |
+
self.adaptor.execute(
|
| 127 |
+
"INSERT INTO dbxref(dbname, accession, version) VALUES (%s, %s, %s)",
|
| 128 |
+
(dbname, accession, version),
|
| 129 |
+
)
|
| 130 |
+
return self.adaptor.last_id("dbxref")
|
| 131 |
+
|
| 132 |
+
def _get_taxon_id(self, record):
|
| 133 |
+
"""Get the taxon id for this record (PRIVATE).
|
| 134 |
+
|
| 135 |
+
Arguments:
|
| 136 |
+
- record - a SeqRecord object
|
| 137 |
+
|
| 138 |
+
This searches the taxon/taxon_name tables using the
|
| 139 |
+
NCBI taxon ID, scientific name and common name to find
|
| 140 |
+
the matching taxon table entry's id.
|
| 141 |
+
|
| 142 |
+
If the species isn't in the taxon table, and we have at
|
| 143 |
+
least the NCBI taxon ID, scientific name or common name,
|
| 144 |
+
at least a minimal stub entry is created in the table.
|
| 145 |
+
|
| 146 |
+
Returns the taxon id (database key for the taxon table,
|
| 147 |
+
not an NCBI taxon ID), or None if the taxonomy information
|
| 148 |
+
is missing.
|
| 149 |
+
|
| 150 |
+
See also the BioSQL script load_ncbi_taxonomy.pl which
|
| 151 |
+
will populate and update the taxon/taxon_name tables
|
| 152 |
+
with the latest information from the NCBI.
|
| 153 |
+
"""
|
| 154 |
+
# To find the NCBI taxid, first check for a top level annotation
|
| 155 |
+
ncbi_taxon_id = None
|
| 156 |
+
if "ncbi_taxid" in record.annotations:
|
| 157 |
+
# Could be a list of IDs.
|
| 158 |
+
if isinstance(record.annotations["ncbi_taxid"], list):
|
| 159 |
+
if len(record.annotations["ncbi_taxid"]) == 1:
|
| 160 |
+
ncbi_taxon_id = record.annotations["ncbi_taxid"][0]
|
| 161 |
+
else:
|
| 162 |
+
ncbi_taxon_id = record.annotations["ncbi_taxid"]
|
| 163 |
+
if not ncbi_taxon_id:
|
| 164 |
+
# Secondly, look for a source feature
|
| 165 |
+
for f in record.features:
|
| 166 |
+
if f.type == "source":
|
| 167 |
+
quals = getattr(f, "qualifiers", {})
|
| 168 |
+
if "db_xref" in quals:
|
| 169 |
+
for db_xref in f.qualifiers["db_xref"]:
|
| 170 |
+
if db_xref.startswith("taxon:"):
|
| 171 |
+
ncbi_taxon_id = int(db_xref[6:])
|
| 172 |
+
break
|
| 173 |
+
if ncbi_taxon_id:
|
| 174 |
+
break
|
| 175 |
+
|
| 176 |
+
try:
|
| 177 |
+
scientific_name = record.annotations["organism"][:255]
|
| 178 |
+
except KeyError:
|
| 179 |
+
scientific_name = None
|
| 180 |
+
try:
|
| 181 |
+
common_name = record.annotations["source"][:255]
|
| 182 |
+
except KeyError:
|
| 183 |
+
common_name = None
|
| 184 |
+
# Note: The maximum length for taxon names in the schema is 255.
|
| 185 |
+
# Cropping it now should help in getting a match when searching,
|
| 186 |
+
# and avoids an error if we try and add these to the database.
|
| 187 |
+
|
| 188 |
+
if ncbi_taxon_id:
|
| 189 |
+
# Good, we have the NCBI taxon to go on - this is unambiguous :)
|
| 190 |
+
# Note that the scientific name and common name will only be
|
| 191 |
+
# used if we have to record a stub entry.
|
| 192 |
+
return self._get_taxon_id_from_ncbi_taxon_id(
|
| 193 |
+
ncbi_taxon_id, scientific_name, common_name
|
| 194 |
+
)
|
| 195 |
+
|
| 196 |
+
if not common_name and not scientific_name:
|
| 197 |
+
# Nothing to go on... and there is no point adding
|
| 198 |
+
# a new entry to the database. We'll just leave this
|
| 199 |
+
# sequence's taxon as a NULL in the database.
|
| 200 |
+
return None
|
| 201 |
+
|
| 202 |
+
# Next, we'll try to find a match based on the species name
|
| 203 |
+
# (stored in GenBank files as the organism and/or the source).
|
| 204 |
+
if scientific_name:
|
| 205 |
+
taxa = self.adaptor.execute_and_fetch_col0(
|
| 206 |
+
"SELECT taxon_id FROM taxon_name"
|
| 207 |
+
" WHERE name_class = 'scientific name' AND name = %s",
|
| 208 |
+
(scientific_name,),
|
| 209 |
+
)
|
| 210 |
+
if taxa:
|
| 211 |
+
# Good, mapped the scientific name to a taxon table entry
|
| 212 |
+
return taxa[0]
|
| 213 |
+
|
| 214 |
+
# Last chance...
|
| 215 |
+
if common_name:
|
| 216 |
+
taxa = self.adaptor.execute_and_fetch_col0(
|
| 217 |
+
"SELECT DISTINCT taxon_id FROM taxon_name WHERE name = %s",
|
| 218 |
+
(common_name,),
|
| 219 |
+
)
|
| 220 |
+
# Its natural that several distinct taxa will have the same common
|
| 221 |
+
# name - in which case we can't resolve the taxon uniquely.
|
| 222 |
+
if len(taxa) > 1:
|
| 223 |
+
raise ValueError(
|
| 224 |
+
"Taxa: %d species have name %r" % (len(taxa), common_name)
|
| 225 |
+
)
|
| 226 |
+
if taxa:
|
| 227 |
+
# Good, mapped the common name to a taxon table entry
|
| 228 |
+
return taxa[0]
|
| 229 |
+
|
| 230 |
+
# At this point, as far as we can tell, this species isn't
|
| 231 |
+
# in the taxon table already. So we'll have to add it.
|
| 232 |
+
# We don't have an NCBI taxonomy ID, so if we do record just
|
| 233 |
+
# a stub entry, there is no simple way to fix this later.
|
| 234 |
+
#
|
| 235 |
+
# TODO - Should we try searching the NCBI taxonomy using the
|
| 236 |
+
# species name?
|
| 237 |
+
#
|
| 238 |
+
# OK, let's try inserting the species.
|
| 239 |
+
# Chances are we don't have enough information ...
|
| 240 |
+
# Furthermore, it won't be in the hierarchy.
|
| 241 |
+
|
| 242 |
+
lineage = []
|
| 243 |
+
for c in record.annotations.get("taxonomy", []):
|
| 244 |
+
lineage.append([None, None, c])
|
| 245 |
+
if lineage:
|
| 246 |
+
lineage[-1][1] = "genus"
|
| 247 |
+
lineage.append([None, "species", record.annotations["organism"]])
|
| 248 |
+
# XXX do we have them?
|
| 249 |
+
if "subspecies" in record.annotations:
|
| 250 |
+
lineage.append([None, "subspecies", record.annotations["subspecies"]])
|
| 251 |
+
if "variant" in record.annotations:
|
| 252 |
+
lineage.append([None, "varietas", record.annotations["variant"]])
|
| 253 |
+
lineage[-1][0] = ncbi_taxon_id
|
| 254 |
+
|
| 255 |
+
left_value = self.adaptor.execute_one("SELECT MAX(left_value) FROM taxon")[0]
|
| 256 |
+
if not left_value:
|
| 257 |
+
left_value = 0
|
| 258 |
+
left_value += 1
|
| 259 |
+
|
| 260 |
+
# XXX -- Brad: Fixing this for now in an ugly way because
|
| 261 |
+
# I am getting overlaps for right_values. I need to dig into this
|
| 262 |
+
# more to actually understand how it works. I'm not sure it is
|
| 263 |
+
# actually working right anyhow.
|
| 264 |
+
right_start_value = self.adaptor.execute_one(
|
| 265 |
+
"SELECT MAX(right_value) FROM taxon"
|
| 266 |
+
)[0]
|
| 267 |
+
if not right_start_value:
|
| 268 |
+
right_start_value = 0
|
| 269 |
+
right_value = right_start_value + 2 * len(lineage) - 1
|
| 270 |
+
|
| 271 |
+
parent_taxon_id = None
|
| 272 |
+
for taxon in lineage:
|
| 273 |
+
self.adaptor.execute(
|
| 274 |
+
"INSERT INTO taxon(parent_taxon_id, ncbi_taxon_id, node_rank,"
|
| 275 |
+
" left_value, right_value)"
|
| 276 |
+
" VALUES (%s, %s, %s, %s, %s)",
|
| 277 |
+
(parent_taxon_id, taxon[0], taxon[1], left_value, right_value),
|
| 278 |
+
)
|
| 279 |
+
taxon_id = self.adaptor.last_id("taxon")
|
| 280 |
+
self.adaptor.execute(
|
| 281 |
+
"INSERT INTO taxon_name(taxon_id, name, name_class)"
|
| 282 |
+
"VALUES (%s, %s, 'scientific name')",
|
| 283 |
+
(taxon_id, taxon[2][:255]),
|
| 284 |
+
)
|
| 285 |
+
# Note the name field is limited to 255, some SwissProt files
|
| 286 |
+
# have a multi-species name which can be longer. So truncate this.
|
| 287 |
+
left_value += 1
|
| 288 |
+
right_value -= 1
|
| 289 |
+
parent_taxon_id = taxon_id
|
| 290 |
+
if common_name:
|
| 291 |
+
self.adaptor.execute(
|
| 292 |
+
"INSERT INTO taxon_name(taxon_id, name, name_class)"
|
| 293 |
+
"VALUES (%s, %s, 'common name')",
|
| 294 |
+
(taxon_id, common_name),
|
| 295 |
+
)
|
| 296 |
+
|
| 297 |
+
return taxon_id
|
| 298 |
+
|
| 299 |
+
def _fix_name_class(self, entrez_name):
|
| 300 |
+
"""Map Entrez name terms to those used in taxdump (PRIVATE).
|
| 301 |
+
|
| 302 |
+
We need to make this conversion to match the taxon_name.name_class
|
| 303 |
+
values used by the BioSQL load_ncbi_taxonomy.pl script.
|
| 304 |
+
|
| 305 |
+
e.g.::
|
| 306 |
+
|
| 307 |
+
"ScientificName" -> "scientific name",
|
| 308 |
+
"EquivalentName" -> "equivalent name",
|
| 309 |
+
"Synonym" -> "synonym",
|
| 310 |
+
|
| 311 |
+
"""
|
| 312 |
+
# Add any special cases here:
|
| 313 |
+
#
|
| 314 |
+
# known = {}
|
| 315 |
+
# try:
|
| 316 |
+
# return known[entrez_name]
|
| 317 |
+
# except KeyError:
|
| 318 |
+
# pass
|
| 319 |
+
|
| 320 |
+
# Try automatically by adding spaces before each capital
|
| 321 |
+
def add_space(letter):
|
| 322 |
+
"""Add a space before a capital letter."""
|
| 323 |
+
if letter.isupper():
|
| 324 |
+
return " " + letter.lower()
|
| 325 |
+
else:
|
| 326 |
+
return letter
|
| 327 |
+
|
| 328 |
+
answer = "".join(add_space(letter) for letter in entrez_name).strip()
|
| 329 |
+
if answer != answer.lower():
|
| 330 |
+
raise ValueError(
|
| 331 |
+
f"Expected processed entrez_name, '{answer}' to only have lower case letters."
|
| 332 |
+
)
|
| 333 |
+
return answer
|
| 334 |
+
|
| 335 |
+
def _update_left_right_taxon_values(self, left_value):
|
| 336 |
+
"""Update the left and right taxon values in the table (PRIVATE)."""
|
| 337 |
+
if not left_value:
|
| 338 |
+
return
|
| 339 |
+
# Due to the UNIQUE constraint on the left and right values in the taxon
|
| 340 |
+
# table we cannot simply update them through an SQL statement as we risk
|
| 341 |
+
# colliding values. Instead we must select all of the rows that we want to
|
| 342 |
+
# update, modify the values in python and then update the rows
|
| 343 |
+
# self.adaptor.execute("UPDATE taxon SET right_value = right_value + 2 "
|
| 344 |
+
# "WHERE right_value >= %s", (left_value,))
|
| 345 |
+
# self.adaptor.execute("UPDATE taxon SET left_value = left_value + 2 "
|
| 346 |
+
# "WHERE left_value > %s", (left_value,))
|
| 347 |
+
|
| 348 |
+
rows = self.adaptor.execute_and_fetchall(
|
| 349 |
+
"SELECT left_value, right_value, taxon_id FROM taxon "
|
| 350 |
+
"WHERE right_value >= %s or left_value > %s",
|
| 351 |
+
(left_value, left_value),
|
| 352 |
+
)
|
| 353 |
+
|
| 354 |
+
right_rows = []
|
| 355 |
+
left_rows = []
|
| 356 |
+
for row in rows:
|
| 357 |
+
new_right = row[1]
|
| 358 |
+
new_left = row[0]
|
| 359 |
+
if new_right >= left_value:
|
| 360 |
+
new_right += 2
|
| 361 |
+
|
| 362 |
+
if new_left > left_value:
|
| 363 |
+
new_left += 2
|
| 364 |
+
right_rows.append((new_right, row[2]))
|
| 365 |
+
left_rows.append((new_left, row[2]))
|
| 366 |
+
|
| 367 |
+
# sort the rows based on the value from largest to smallest
|
| 368 |
+
# should ensure no overlaps
|
| 369 |
+
right_rows = sorted(right_rows, key=lambda x: x[0], reverse=True)
|
| 370 |
+
left_rows = sorted(left_rows, key=lambda x: x[0], reverse=True)
|
| 371 |
+
|
| 372 |
+
self.adaptor.executemany(
|
| 373 |
+
"UPDATE taxon SET left_value = %s WHERE taxon_id = %s", left_rows
|
| 374 |
+
)
|
| 375 |
+
self.adaptor.executemany(
|
| 376 |
+
"UPDATE taxon SET right_value = %s WHERE taxon_id = %s", right_rows
|
| 377 |
+
)
|
| 378 |
+
|
| 379 |
+
def _get_taxon_id_from_ncbi_taxon_id(
|
| 380 |
+
self, ncbi_taxon_id, scientific_name=None, common_name=None
|
| 381 |
+
):
|
| 382 |
+
"""Get the taxon id for record from NCBI taxon ID (PRIVATE).
|
| 383 |
+
|
| 384 |
+
Arguments:
|
| 385 |
+
- ncbi_taxon_id - string containing an NCBI taxon id
|
| 386 |
+
- scientific_name - string, used if a stub entry is recorded
|
| 387 |
+
- common_name - string, used if a stub entry is recorded
|
| 388 |
+
|
| 389 |
+
This searches the taxon table using ONLY the NCBI taxon ID
|
| 390 |
+
to find the matching taxon table entry's ID (database key).
|
| 391 |
+
|
| 392 |
+
If the species isn't in the taxon table, and the fetch_NCBI_taxonomy
|
| 393 |
+
flag is true, Biopython will attempt to go online using Bio.Entrez
|
| 394 |
+
to fetch the official NCBI lineage, recursing up the tree until an
|
| 395 |
+
existing entry is found in the database or the full lineage has been
|
| 396 |
+
fetched.
|
| 397 |
+
|
| 398 |
+
Otherwise the NCBI taxon ID, scientific name and common name are
|
| 399 |
+
recorded as a minimal stub entry in the taxon and taxon_name tables.
|
| 400 |
+
Any partial information about the lineage from the SeqRecord is NOT
|
| 401 |
+
recorded. This should mean that (re)running the BioSQL script
|
| 402 |
+
load_ncbi_taxonomy.pl can fill in the taxonomy lineage.
|
| 403 |
+
|
| 404 |
+
Returns the taxon id (database key for the taxon table, not
|
| 405 |
+
an NCBI taxon ID).
|
| 406 |
+
"""
|
| 407 |
+
if not ncbi_taxon_id:
|
| 408 |
+
raise ValueError("Expected a non-empty value for ncbi_taxon_id.")
|
| 409 |
+
|
| 410 |
+
taxon_id = self.adaptor.execute_and_fetch_col0(
|
| 411 |
+
"SELECT taxon_id FROM taxon WHERE ncbi_taxon_id = %s", (int(ncbi_taxon_id),)
|
| 412 |
+
)
|
| 413 |
+
if taxon_id:
|
| 414 |
+
# Good, we have mapped the NCBI taxid to a taxon table entry
|
| 415 |
+
return taxon_id[0]
|
| 416 |
+
|
| 417 |
+
# At this point, as far as we can tell, this species isn't
|
| 418 |
+
# in the taxon table already. So we'll have to add it.
|
| 419 |
+
|
| 420 |
+
parent_taxon_id = None
|
| 421 |
+
rank = "species"
|
| 422 |
+
genetic_code = None
|
| 423 |
+
mito_genetic_code = None
|
| 424 |
+
parent_left_value = None
|
| 425 |
+
parent_right_value = None
|
| 426 |
+
left_value = None
|
| 427 |
+
right_value = None
|
| 428 |
+
species_names = []
|
| 429 |
+
if scientific_name:
|
| 430 |
+
species_names.append(("scientific name", scientific_name))
|
| 431 |
+
if common_name:
|
| 432 |
+
species_names.append(("common name", common_name))
|
| 433 |
+
|
| 434 |
+
if self.fetch_NCBI_taxonomy:
|
| 435 |
+
# Go online to get the parent taxon ID!
|
| 436 |
+
handle = Entrez.efetch(db="taxonomy", id=ncbi_taxon_id, retmode="XML")
|
| 437 |
+
taxonomic_record = Entrez.read(handle)
|
| 438 |
+
if len(taxonomic_record) == 1:
|
| 439 |
+
if taxonomic_record[0]["TaxId"] != str(ncbi_taxon_id):
|
| 440 |
+
raise ValueError(
|
| 441 |
+
f"ncbi_taxon_id different from parent taxon id. {ncbi_taxon_id} versus {taxonomic_record[0]['TaxId']}"
|
| 442 |
+
)
|
| 443 |
+
|
| 444 |
+
(
|
| 445 |
+
parent_taxon_id,
|
| 446 |
+
parent_left_value,
|
| 447 |
+
parent_right_value,
|
| 448 |
+
) = self._get_taxon_id_from_ncbi_lineage(
|
| 449 |
+
taxonomic_record[0]["LineageEx"]
|
| 450 |
+
)
|
| 451 |
+
|
| 452 |
+
left_value = parent_right_value
|
| 453 |
+
right_value = parent_right_value + 1
|
| 454 |
+
|
| 455 |
+
rank = str(taxonomic_record[0]["Rank"])
|
| 456 |
+
|
| 457 |
+
genetic_code = int(taxonomic_record[0]["GeneticCode"]["GCId"])
|
| 458 |
+
|
| 459 |
+
mito_genetic_code = int(taxonomic_record[0]["MitoGeneticCode"]["MGCId"])
|
| 460 |
+
|
| 461 |
+
species_names = [
|
| 462 |
+
("scientific name", str(taxonomic_record[0]["ScientificName"]))
|
| 463 |
+
]
|
| 464 |
+
try:
|
| 465 |
+
for name_class, names in taxonomic_record[0]["OtherNames"].items():
|
| 466 |
+
name_class = self._fix_name_class(name_class)
|
| 467 |
+
if not isinstance(names, list):
|
| 468 |
+
# The Entrez parser seems to return single entry
|
| 469 |
+
# lists as just a string which is annoying.
|
| 470 |
+
names = [names]
|
| 471 |
+
for name in names:
|
| 472 |
+
# Want to ignore complex things like ClassCDE
|
| 473 |
+
# entries
|
| 474 |
+
if isinstance(name, str):
|
| 475 |
+
species_names.append((name_class, name))
|
| 476 |
+
except KeyError:
|
| 477 |
+
# OtherNames isn't always present,
|
| 478 |
+
# e.g. NCBI taxon 41205, Bromheadia finlaysoniana
|
| 479 |
+
pass
|
| 480 |
+
else:
|
| 481 |
+
pass
|
| 482 |
+
# If we are not allowed to go online, we will record the bare minimum;
|
| 483 |
+
# as long as the NCBI taxon id is present, then (re)running
|
| 484 |
+
# load_ncbi_taxonomy.pl should fill in the taxonomomy lineage
|
| 485 |
+
# (and update the species names).
|
| 486 |
+
#
|
| 487 |
+
# I am NOT going to try and record the lineage, even if it
|
| 488 |
+
# is in the record annotation as a list of names, as we won't
|
| 489 |
+
# know the NCBI taxon IDs for these parent nodes.
|
| 490 |
+
|
| 491 |
+
self._update_left_right_taxon_values(left_value)
|
| 492 |
+
|
| 493 |
+
self.adaptor.execute(
|
| 494 |
+
"INSERT INTO taxon(parent_taxon_id, ncbi_taxon_id, node_rank,"
|
| 495 |
+
" genetic_code, mito_genetic_code, left_value, right_value)"
|
| 496 |
+
" VALUES (%s, %s, %s, %s, %s, %s, %s)",
|
| 497 |
+
(
|
| 498 |
+
parent_taxon_id,
|
| 499 |
+
ncbi_taxon_id,
|
| 500 |
+
rank,
|
| 501 |
+
genetic_code,
|
| 502 |
+
mito_genetic_code,
|
| 503 |
+
left_value,
|
| 504 |
+
right_value,
|
| 505 |
+
),
|
| 506 |
+
)
|
| 507 |
+
|
| 508 |
+
taxon_id = self.adaptor.last_id("taxon")
|
| 509 |
+
|
| 510 |
+
# Record the scientific name, common name, etc
|
| 511 |
+
for name_class, name in species_names:
|
| 512 |
+
self.adaptor.execute(
|
| 513 |
+
"INSERT INTO taxon_name(taxon_id, name, name_class)"
|
| 514 |
+
" VALUES (%s, %s, %s)",
|
| 515 |
+
(taxon_id, name[:255], name_class),
|
| 516 |
+
)
|
| 517 |
+
return taxon_id
|
| 518 |
+
|
| 519 |
+
def _get_taxon_id_from_ncbi_lineage(self, taxonomic_lineage):
|
| 520 |
+
"""Recursive method to get taxon ID from NCBI lineage (PRIVATE).
|
| 521 |
+
|
| 522 |
+
Arguments:
|
| 523 |
+
- taxonomic_lineage - list of taxonomy dictionaries from Bio.Entrez
|
| 524 |
+
|
| 525 |
+
First dictionary in list is the taxonomy root, highest would be
|
| 526 |
+
the species. Each dictionary includes:
|
| 527 |
+
|
| 528 |
+
- TaxID (string, NCBI taxon id)
|
| 529 |
+
- Rank (string, e.g. "species", "genus", ..., "phylum", ...)
|
| 530 |
+
- ScientificName (string)
|
| 531 |
+
|
| 532 |
+
(and that is all at the time of writing)
|
| 533 |
+
|
| 534 |
+
This method will record all the lineage given, returning the taxon id
|
| 535 |
+
(database key, not NCBI taxon id) of the final entry (the species).
|
| 536 |
+
"""
|
| 537 |
+
ncbi_taxon_id = int(taxonomic_lineage[-1]["TaxId"])
|
| 538 |
+
left_value = None
|
| 539 |
+
right_value = None
|
| 540 |
+
parent_left_value = None
|
| 541 |
+
parent_right_value = None
|
| 542 |
+
# Is this in the database already? Check the taxon table...
|
| 543 |
+
rows = self.adaptor.execute_and_fetchall(
|
| 544 |
+
"SELECT taxon_id, left_value, right_value FROM taxon"
|
| 545 |
+
" WHERE ncbi_taxon_id=%s" % ncbi_taxon_id
|
| 546 |
+
)
|
| 547 |
+
if rows:
|
| 548 |
+
# we could verify that the Scientific Name etc in the database
|
| 549 |
+
# is the same and update it or print a warning if not...
|
| 550 |
+
if len(rows) != 1:
|
| 551 |
+
raise ValueError(f"Expected 1 response, got {len(rows)}")
|
| 552 |
+
return rows[0]
|
| 553 |
+
|
| 554 |
+
# We have to record this.
|
| 555 |
+
if len(taxonomic_lineage) > 1:
|
| 556 |
+
# Use recursion to find out the taxon id (database key) of the
|
| 557 |
+
# parent.
|
| 558 |
+
(
|
| 559 |
+
parent_taxon_id,
|
| 560 |
+
parent_left_value,
|
| 561 |
+
parent_right_value,
|
| 562 |
+
) = self._get_taxon_id_from_ncbi_lineage(taxonomic_lineage[:-1])
|
| 563 |
+
left_value = parent_right_value
|
| 564 |
+
right_value = parent_right_value + 1
|
| 565 |
+
if not isinstance(parent_taxon_id, int):
|
| 566 |
+
raise ValueError(
|
| 567 |
+
f"Expected parent_taxon_id to be an int, got {parent_taxon_id}"
|
| 568 |
+
)
|
| 569 |
+
else:
|
| 570 |
+
# we have reached the top of the lineage but no current taxonomy
|
| 571 |
+
# id has been found
|
| 572 |
+
parent_taxon_id = None
|
| 573 |
+
left_value = self.adaptor.execute_one("SELECT MAX(left_value) FROM taxon")[
|
| 574 |
+
0
|
| 575 |
+
]
|
| 576 |
+
if not left_value:
|
| 577 |
+
left_value = 0
|
| 578 |
+
|
| 579 |
+
right_value = left_value + 1
|
| 580 |
+
|
| 581 |
+
self._update_left_right_taxon_values(left_value)
|
| 582 |
+
|
| 583 |
+
# INSERT new taxon
|
| 584 |
+
rank = str(taxonomic_lineage[-1].get("Rank"))
|
| 585 |
+
self.adaptor.execute(
|
| 586 |
+
"INSERT INTO taxon(ncbi_taxon_id, parent_taxon_id, node_rank, "
|
| 587 |
+
"left_value, right_value) VALUES (%s, %s, %s, %s, %s)",
|
| 588 |
+
(ncbi_taxon_id, parent_taxon_id, rank, left_value, right_value),
|
| 589 |
+
)
|
| 590 |
+
|
| 591 |
+
taxon_id = self.adaptor.last_id("taxon")
|
| 592 |
+
# assert isinstance(taxon_id, int), repr(taxon_id)
|
| 593 |
+
# ... and its name in taxon_name
|
| 594 |
+
scientific_name = taxonomic_lineage[-1].get("ScientificName")
|
| 595 |
+
if scientific_name:
|
| 596 |
+
self.adaptor.execute(
|
| 597 |
+
"INSERT INTO taxon_name(taxon_id, name, name_class) "
|
| 598 |
+
"VALUES (%s, %s, 'scientific name')",
|
| 599 |
+
(taxon_id, scientific_name[:255]),
|
| 600 |
+
)
|
| 601 |
+
return taxon_id, left_value, right_value
|
| 602 |
+
|
| 603 |
+
def _load_bioentry_table(self, record):
|
| 604 |
+
"""Fill the bioentry table with sequence information (PRIVATE).
|
| 605 |
+
|
| 606 |
+
Arguments:
|
| 607 |
+
- record - SeqRecord object to add to the database.
|
| 608 |
+
|
| 609 |
+
"""
|
| 610 |
+
# get the pertinent info and insert it
|
| 611 |
+
|
| 612 |
+
if record.id.count(".") == 1: # try to get a version from the id
|
| 613 |
+
# This assumes the string is something like "XXXXXXXX.123"
|
| 614 |
+
accession, version = record.id.split(".")
|
| 615 |
+
try:
|
| 616 |
+
version = int(version)
|
| 617 |
+
except ValueError:
|
| 618 |
+
accession = record.id
|
| 619 |
+
version = 0
|
| 620 |
+
else: # otherwise just use a version of 0
|
| 621 |
+
accession = record.id
|
| 622 |
+
version = 0
|
| 623 |
+
|
| 624 |
+
if (
|
| 625 |
+
"accessions" in record.annotations
|
| 626 |
+
and isinstance(record.annotations["accessions"], list)
|
| 627 |
+
and record.annotations["accessions"]
|
| 628 |
+
):
|
| 629 |
+
# Take the first accession (one if there is more than one)
|
| 630 |
+
accession = record.annotations["accessions"][0]
|
| 631 |
+
|
| 632 |
+
# Find the taxon id (this is not just the NCBI Taxon ID)
|
| 633 |
+
# NOTE - If the species isn't defined in the taxon table,
|
| 634 |
+
# a new minimal entry is created.
|
| 635 |
+
taxon_id = self._get_taxon_id(record)
|
| 636 |
+
|
| 637 |
+
if "gi" in record.annotations:
|
| 638 |
+
identifier = record.annotations["gi"]
|
| 639 |
+
else:
|
| 640 |
+
identifier = record.id
|
| 641 |
+
|
| 642 |
+
# Allow description and division to default to NULL as in BioPerl.
|
| 643 |
+
description = getattr(record, "description", None)
|
| 644 |
+
division = record.annotations.get("data_file_division")
|
| 645 |
+
|
| 646 |
+
sql = """
|
| 647 |
+
INSERT INTO bioentry (
|
| 648 |
+
biodatabase_id,
|
| 649 |
+
taxon_id,
|
| 650 |
+
name,
|
| 651 |
+
accession,
|
| 652 |
+
identifier,
|
| 653 |
+
division,
|
| 654 |
+
description,
|
| 655 |
+
version)
|
| 656 |
+
VALUES (
|
| 657 |
+
%s,
|
| 658 |
+
%s,
|
| 659 |
+
%s,
|
| 660 |
+
%s,
|
| 661 |
+
%s,
|
| 662 |
+
%s,
|
| 663 |
+
%s,
|
| 664 |
+
%s)"""
|
| 665 |
+
# print(self.dbid, taxon_id, record.name, accession, identifier, \
|
| 666 |
+
# division, description, version)
|
| 667 |
+
self.adaptor.execute(
|
| 668 |
+
sql,
|
| 669 |
+
(
|
| 670 |
+
self.dbid,
|
| 671 |
+
taxon_id,
|
| 672 |
+
record.name,
|
| 673 |
+
accession,
|
| 674 |
+
identifier,
|
| 675 |
+
division,
|
| 676 |
+
description,
|
| 677 |
+
version,
|
| 678 |
+
),
|
| 679 |
+
)
|
| 680 |
+
# now retrieve the id for the bioentry
|
| 681 |
+
return self.adaptor.last_id("bioentry")
|
| 682 |
+
|
| 683 |
+
def _load_bioentry_date(self, record, bioentry_id):
|
| 684 |
+
"""Add the effective date of the entry into the database (PRIVATE).
|
| 685 |
+
|
| 686 |
+
record - a SeqRecord object with an annotated date
|
| 687 |
+
bioentry_id - corresponding database identifier
|
| 688 |
+
"""
|
| 689 |
+
# dates are GenBank style, like:
|
| 690 |
+
# 14-SEP-2000
|
| 691 |
+
date = record.annotations.get("date", strftime("%d-%b-%Y", gmtime()).upper())
|
| 692 |
+
if isinstance(date, list):
|
| 693 |
+
date = date[0]
|
| 694 |
+
annotation_tags_id = self._get_ontology_id("Annotation Tags")
|
| 695 |
+
date_id = self._get_term_id("date_changed", annotation_tags_id)
|
| 696 |
+
sql = (
|
| 697 |
+
"INSERT INTO bioentry_qualifier_value"
|
| 698 |
+
' (bioentry_id, term_id, value, "rank")'
|
| 699 |
+
" VALUES (%s, %s, %s, 1)"
|
| 700 |
+
)
|
| 701 |
+
self.adaptor.execute(sql, (bioentry_id, date_id, date))
|
| 702 |
+
|
| 703 |
+
def _load_biosequence(self, record, bioentry_id):
|
| 704 |
+
"""Record SeqRecord's sequence and alphabet in DB (PRIVATE).
|
| 705 |
+
|
| 706 |
+
Arguments:
|
| 707 |
+
- record - a SeqRecord object with a seq property
|
| 708 |
+
- bioentry_id - corresponding database identifier
|
| 709 |
+
|
| 710 |
+
"""
|
| 711 |
+
if record.seq is None:
|
| 712 |
+
# The biosequence table entry is optional, so if we haven't
|
| 713 |
+
# got a sequence, we don't need to write to the table.
|
| 714 |
+
return
|
| 715 |
+
|
| 716 |
+
molecule_type = record.annotations.get("molecule_type", "")
|
| 717 |
+
if "DNA" in molecule_type:
|
| 718 |
+
alphabet = "dna"
|
| 719 |
+
elif "RNA" in molecule_type:
|
| 720 |
+
alphabet = "rna"
|
| 721 |
+
elif "protein" in molecule_type:
|
| 722 |
+
alphabet = "protein"
|
| 723 |
+
else:
|
| 724 |
+
alphabet = "unknown"
|
| 725 |
+
|
| 726 |
+
try:
|
| 727 |
+
seq_str = str(record.seq)
|
| 728 |
+
except UndefinedSequenceError:
|
| 729 |
+
seq_str = None
|
| 730 |
+
|
| 731 |
+
sql = (
|
| 732 |
+
"INSERT INTO biosequence (bioentry_id, version, "
|
| 733 |
+
"length, seq, alphabet) "
|
| 734 |
+
"VALUES (%s, 0, %s, %s, %s)"
|
| 735 |
+
)
|
| 736 |
+
self.adaptor.execute(sql, (bioentry_id, len(record.seq), seq_str, alphabet))
|
| 737 |
+
|
| 738 |
+
def _load_comment(self, record, bioentry_id):
|
| 739 |
+
"""Record a SeqRecord's annotated comment in the database (PRIVATE).
|
| 740 |
+
|
| 741 |
+
Arguments:
|
| 742 |
+
- record - a SeqRecord object with an annotated comment
|
| 743 |
+
- bioentry_id - corresponding database identifier
|
| 744 |
+
|
| 745 |
+
"""
|
| 746 |
+
comments = record.annotations.get("comment")
|
| 747 |
+
if not comments:
|
| 748 |
+
return
|
| 749 |
+
if not isinstance(comments, list):
|
| 750 |
+
# It should be a string then...
|
| 751 |
+
comments = [comments]
|
| 752 |
+
|
| 753 |
+
for index, comment in enumerate(comments):
|
| 754 |
+
comment = comment.replace("\n", " ")
|
| 755 |
+
# TODO - Store each line as a separate entry? This would preserve
|
| 756 |
+
# the newlines, but we should check BioPerl etc to be consistent.
|
| 757 |
+
sql = (
|
| 758 |
+
'INSERT INTO comment (bioentry_id, comment_text, "rank")'
|
| 759 |
+
" VALUES (%s, %s, %s)"
|
| 760 |
+
)
|
| 761 |
+
self.adaptor.execute(sql, (bioentry_id, comment, index + 1))
|
| 762 |
+
|
| 763 |
+
def _load_annotations(self, record, bioentry_id):
|
| 764 |
+
"""Record a SeqRecord's misc annotations in the database (PRIVATE).
|
| 765 |
+
|
| 766 |
+
The annotation strings are recorded in the bioentry_qualifier_value
|
| 767 |
+
table, except for special cases like the reference, comment and
|
| 768 |
+
taxonomy which are handled with their own tables.
|
| 769 |
+
|
| 770 |
+
Arguments:
|
| 771 |
+
- record - a SeqRecord object with an annotations dictionary
|
| 772 |
+
- bioentry_id - corresponding database identifier
|
| 773 |
+
|
| 774 |
+
"""
|
| 775 |
+
mono_sql = (
|
| 776 |
+
"INSERT INTO bioentry_qualifier_value"
|
| 777 |
+
"(bioentry_id, term_id, value)"
|
| 778 |
+
" VALUES (%s, %s, %s)"
|
| 779 |
+
)
|
| 780 |
+
many_sql = (
|
| 781 |
+
"INSERT INTO bioentry_qualifier_value"
|
| 782 |
+
'(bioentry_id, term_id, value, "rank")'
|
| 783 |
+
" VALUES (%s, %s, %s, %s)"
|
| 784 |
+
)
|
| 785 |
+
tag_ontology_id = self._get_ontology_id("Annotation Tags")
|
| 786 |
+
for key, value in record.annotations.items():
|
| 787 |
+
if key in ["molecule_type", "references", "comment", "ncbi_taxid", "date"]:
|
| 788 |
+
# Handled separately
|
| 789 |
+
continue
|
| 790 |
+
term_id = self._get_term_id(key, ontology_id=tag_ontology_id)
|
| 791 |
+
if isinstance(value, (list, tuple)):
|
| 792 |
+
rank = 0
|
| 793 |
+
for entry in value:
|
| 794 |
+
if isinstance(entry, (str, int)):
|
| 795 |
+
# Easy case
|
| 796 |
+
rank += 1
|
| 797 |
+
self.adaptor.execute(
|
| 798 |
+
many_sql, (bioentry_id, term_id, str(entry), rank)
|
| 799 |
+
)
|
| 800 |
+
else:
|
| 801 |
+
pass
|
| 802 |
+
elif isinstance(value, (str, int)):
|
| 803 |
+
# Have a simple single entry, leave rank as the DB default
|
| 804 |
+
self.adaptor.execute(mono_sql, (bioentry_id, term_id, str(value)))
|
| 805 |
+
else:
|
| 806 |
+
pass
|
| 807 |
+
# print("Ignoring annotation '%s' entry of type '%s'" \
|
| 808 |
+
# % (key, type(value)))
|
| 809 |
+
|
| 810 |
+
def _load_reference(self, reference, rank, bioentry_id):
|
| 811 |
+
"""Record SeqRecord's annotated references in the database (PRIVATE).
|
| 812 |
+
|
| 813 |
+
Arguments:
|
| 814 |
+
- record - a SeqRecord object with annotated references
|
| 815 |
+
- bioentry_id - corresponding database identifier
|
| 816 |
+
|
| 817 |
+
"""
|
| 818 |
+
refs = None
|
| 819 |
+
if reference.medline_id:
|
| 820 |
+
refs = self.adaptor.execute_and_fetch_col0(
|
| 821 |
+
"SELECT reference_id"
|
| 822 |
+
" FROM reference JOIN dbxref USING (dbxref_id)"
|
| 823 |
+
" WHERE dbname = 'MEDLINE' AND accession = %s",
|
| 824 |
+
(reference.medline_id,),
|
| 825 |
+
)
|
| 826 |
+
if not refs and reference.pubmed_id:
|
| 827 |
+
refs = self.adaptor.execute_and_fetch_col0(
|
| 828 |
+
"SELECT reference_id"
|
| 829 |
+
" FROM reference JOIN dbxref USING (dbxref_id)"
|
| 830 |
+
" WHERE dbname = 'PUBMED' AND accession = %s",
|
| 831 |
+
(reference.pubmed_id,),
|
| 832 |
+
)
|
| 833 |
+
if not refs:
|
| 834 |
+
s = []
|
| 835 |
+
for f in reference.authors, reference.title, reference.journal:
|
| 836 |
+
s.append(f or "<undef>")
|
| 837 |
+
crc = crc64("".join(s))
|
| 838 |
+
refs = self.adaptor.execute_and_fetch_col0(
|
| 839 |
+
"SELECT reference_id FROM reference WHERE crc = %s", (crc,)
|
| 840 |
+
)
|
| 841 |
+
if not refs:
|
| 842 |
+
if reference.medline_id:
|
| 843 |
+
dbxref_id = self._add_dbxref("MEDLINE", reference.medline_id, 0)
|
| 844 |
+
elif reference.pubmed_id:
|
| 845 |
+
dbxref_id = self._add_dbxref("PUBMED", reference.pubmed_id, 0)
|
| 846 |
+
else:
|
| 847 |
+
dbxref_id = None
|
| 848 |
+
authors = reference.authors or None
|
| 849 |
+
title = reference.title or None
|
| 850 |
+
# The location/journal field cannot be Null, so default
|
| 851 |
+
# to an empty string rather than None:
|
| 852 |
+
journal = reference.journal or ""
|
| 853 |
+
self.adaptor.execute(
|
| 854 |
+
"INSERT INTO reference (dbxref_id, location,"
|
| 855 |
+
" title, authors, crc)"
|
| 856 |
+
" VALUES (%s, %s, %s, %s, %s)",
|
| 857 |
+
(dbxref_id, journal, title, authors, crc),
|
| 858 |
+
)
|
| 859 |
+
reference_id = self.adaptor.last_id("reference")
|
| 860 |
+
else:
|
| 861 |
+
reference_id = refs[0]
|
| 862 |
+
|
| 863 |
+
if reference.location:
|
| 864 |
+
start = 1 + int(str(reference.location[0].start))
|
| 865 |
+
end = int(str(reference.location[0].end))
|
| 866 |
+
else:
|
| 867 |
+
start = None
|
| 868 |
+
end = None
|
| 869 |
+
|
| 870 |
+
sql = (
|
| 871 |
+
"INSERT INTO bioentry_reference (bioentry_id, reference_id,"
|
| 872 |
+
' start_pos, end_pos, "rank") VALUES (%s, %s, %s, %s, %s)'
|
| 873 |
+
)
|
| 874 |
+
self.adaptor.execute(sql, (bioentry_id, reference_id, start, end, rank + 1))
|
| 875 |
+
|
| 876 |
+
def _load_seqfeature(self, feature, feature_rank, bioentry_id):
|
| 877 |
+
"""Load a biopython SeqFeature into the database (PRIVATE)."""
|
| 878 |
+
# records loaded from a gff file using BCBio.GFF will contain value
|
| 879 |
+
# of 2nd column of the gff as a feature qualifier. The BioSQL wiki
|
| 880 |
+
# suggests that the source should not go in with the other feature
|
| 881 |
+
# mappings but instead be put in the term table
|
| 882 |
+
# (http://www.biosql.org/wiki/Annotation_Mapping)
|
| 883 |
+
try:
|
| 884 |
+
source = feature.qualifiers["source"]
|
| 885 |
+
if isinstance(source, list):
|
| 886 |
+
source = source[0]
|
| 887 |
+
seqfeature_id = self._load_seqfeature_basic(
|
| 888 |
+
feature.type, feature_rank, bioentry_id, source=source
|
| 889 |
+
)
|
| 890 |
+
except KeyError:
|
| 891 |
+
seqfeature_id = self._load_seqfeature_basic(
|
| 892 |
+
feature.type, feature_rank, bioentry_id
|
| 893 |
+
)
|
| 894 |
+
|
| 895 |
+
self._load_seqfeature_locations(feature, seqfeature_id)
|
| 896 |
+
self._load_seqfeature_qualifiers(feature.qualifiers, seqfeature_id)
|
| 897 |
+
|
| 898 |
+
def _load_seqfeature_basic(
|
| 899 |
+
self, feature_type, feature_rank, bioentry_id, source="EMBL/GenBank/SwissProt"
|
| 900 |
+
):
|
| 901 |
+
"""Load the first tables of a seqfeature and returns the id (PRIVATE).
|
| 902 |
+
|
| 903 |
+
This loads the "key" of the seqfeature (ie. CDS, gene) and
|
| 904 |
+
the basic seqfeature table itself.
|
| 905 |
+
"""
|
| 906 |
+
ontology_id = self._get_ontology_id("SeqFeature Keys")
|
| 907 |
+
seqfeature_key_id = self._get_term_id(feature_type, ontology_id=ontology_id)
|
| 908 |
+
source_cat_id = self._get_ontology_id("SeqFeature Sources")
|
| 909 |
+
source_term_id = self._get_term_id(source, ontology_id=source_cat_id)
|
| 910 |
+
|
| 911 |
+
sql = (
|
| 912 |
+
"INSERT INTO seqfeature (bioentry_id, type_term_id, "
|
| 913 |
+
'source_term_id, "rank") VALUES (%s, %s, %s, %s)'
|
| 914 |
+
)
|
| 915 |
+
self.adaptor.execute(
|
| 916 |
+
sql, (bioentry_id, seqfeature_key_id, source_term_id, feature_rank + 1)
|
| 917 |
+
)
|
| 918 |
+
return self.adaptor.last_id("seqfeature")
|
| 919 |
+
|
| 920 |
+
def _load_seqfeature_locations(self, feature, seqfeature_id):
|
| 921 |
+
"""Load all of the locations for a SeqFeature into tables (PRIVATE).
|
| 922 |
+
|
| 923 |
+
This adds the locations related to the SeqFeature into the
|
| 924 |
+
seqfeature_location table. Fuzzies are not handled right now.
|
| 925 |
+
For a simple location, ie (1..2), we have a single table row
|
| 926 |
+
with seq_start = 1, seq_end = 2, location_rank = 1.
|
| 927 |
+
|
| 928 |
+
For split locations, ie (1..2, 3..4, 5..6) we would have three
|
| 929 |
+
row tables with::
|
| 930 |
+
|
| 931 |
+
start = 1, end = 2, rank = 1
|
| 932 |
+
start = 3, end = 4, rank = 2
|
| 933 |
+
start = 5, end = 6, rank = 3
|
| 934 |
+
|
| 935 |
+
"""
|
| 936 |
+
# TODO - Record an ontology for the locations (using location.term_id)
|
| 937 |
+
# which for now as in BioPerl we leave defaulting to NULL.
|
| 938 |
+
try:
|
| 939 |
+
if feature.location.operator != "join":
|
| 940 |
+
# e.g. order locations... we don't record "order" so it
|
| 941 |
+
# will become a "join" on reloading. What does BioPerl do?
|
| 942 |
+
import warnings
|
| 943 |
+
|
| 944 |
+
from Bio import BiopythonWarning
|
| 945 |
+
|
| 946 |
+
warnings.warn(
|
| 947 |
+
"%s location operators are not fully supported"
|
| 948 |
+
% feature.location_operator,
|
| 949 |
+
BiopythonWarning,
|
| 950 |
+
)
|
| 951 |
+
except AttributeError:
|
| 952 |
+
pass
|
| 953 |
+
# This will be a list of length one for a SimpleLocation:
|
| 954 |
+
parts = feature.location.parts
|
| 955 |
+
if parts and {loc.strand for loc in parts} == {-1}:
|
| 956 |
+
# To mimic prior behaviour of Biopython+BioSQL, reverse order
|
| 957 |
+
parts = parts[::-1]
|
| 958 |
+
# TODO - Check what BioPerl does; see also BioSeq.py code
|
| 959 |
+
for rank, loc in enumerate(parts):
|
| 960 |
+
self._insert_location(loc, rank + 1, seqfeature_id)
|
| 961 |
+
|
| 962 |
+
def _insert_location(self, location, rank, seqfeature_id):
|
| 963 |
+
"""Add SeqFeature location to seqfeature_location table (PRIVATE).
|
| 964 |
+
|
| 965 |
+
TODO - Add location operator to location_qualifier_value?
|
| 966 |
+
"""
|
| 967 |
+
# convert biopython locations to the 1-based location system
|
| 968 |
+
# used in bioSQL
|
| 969 |
+
# XXX This could also handle fuzzies
|
| 970 |
+
|
| 971 |
+
try:
|
| 972 |
+
start = int(location.start) + 1
|
| 973 |
+
except TypeError:
|
| 974 |
+
# Handle SwissProt unknown position (?)
|
| 975 |
+
if isinstance(location.start, UnknownPosition):
|
| 976 |
+
start = None
|
| 977 |
+
else:
|
| 978 |
+
raise
|
| 979 |
+
|
| 980 |
+
try:
|
| 981 |
+
end = int(location.end)
|
| 982 |
+
except TypeError:
|
| 983 |
+
# Handle SwissProt unknown position (?)
|
| 984 |
+
if isinstance(location.end, UnknownPosition):
|
| 985 |
+
end = None
|
| 986 |
+
else:
|
| 987 |
+
raise
|
| 988 |
+
|
| 989 |
+
# Biopython uses None when we don't know strand information but
|
| 990 |
+
# BioSQL requires something (non null) and sets this as zero
|
| 991 |
+
# So we'll use the strand or 0 if Biopython spits out None
|
| 992 |
+
strand = location.strand or 0
|
| 993 |
+
|
| 994 |
+
# TODO - Record an ontology term for the location (location.term_id)
|
| 995 |
+
# which for now like BioPerl we'll leave as NULL.
|
| 996 |
+
# This might allow us to record "between" positions properly, but I
|
| 997 |
+
# don't really see how it could work for before/after fuzzy positions
|
| 998 |
+
loc_term_id = None
|
| 999 |
+
|
| 1000 |
+
if location.ref:
|
| 1001 |
+
# sub_feature remote locations when they are in the same db as the
|
| 1002 |
+
# current record do not have a value for ref_db, which SeqFeature
|
| 1003 |
+
# object stores as None. BioSQL schema requires a varchar and is
|
| 1004 |
+
# not NULL
|
| 1005 |
+
dbxref_id = self._get_dbxref_id(location.ref_db or "", location.ref)
|
| 1006 |
+
else:
|
| 1007 |
+
dbxref_id = None
|
| 1008 |
+
|
| 1009 |
+
sql = (
|
| 1010 |
+
"INSERT INTO location (seqfeature_id, dbxref_id, term_id,"
|
| 1011 |
+
'start_pos, end_pos, strand, "rank") '
|
| 1012 |
+
"VALUES (%s, %s, %s, %s, %s, %s, %s)"
|
| 1013 |
+
)
|
| 1014 |
+
self.adaptor.execute(
|
| 1015 |
+
sql, (seqfeature_id, dbxref_id, loc_term_id, start, end, strand, rank)
|
| 1016 |
+
)
|
| 1017 |
+
|
| 1018 |
+
"""
|
| 1019 |
+
# See Bug 2677
|
| 1020 |
+
# TODO - Record the location_operator (e.g. "join" or "order")
|
| 1021 |
+
# using the location_qualifier_value table (which we and BioPerl
|
| 1022 |
+
# have historically left empty).
|
| 1023 |
+
# Note this will need an ontology term for the location qualifier
|
| 1024 |
+
# (location_qualifier_value.term_id) for which oddly the schema
|
| 1025 |
+
# does not allow NULL.
|
| 1026 |
+
if feature.location_operator:
|
| 1027 |
+
#e.g. "join" (common),
|
| 1028 |
+
#or "order" (see Tests/GenBank/protein_refseq2.gb)
|
| 1029 |
+
location_id = self.adaptor.last_id('location')
|
| 1030 |
+
loc_qual_term_id = None # Not allowed in BioSQL v1.0.1
|
| 1031 |
+
sql = ("INSERT INTO location_qualifier_value"
|
| 1032 |
+
"(location_id, term_id, value) "
|
| 1033 |
+
"VALUES (%s, %s, %s)")
|
| 1034 |
+
self.adaptor.execute(sql, (location_id, loc_qual_term_id,
|
| 1035 |
+
feature.location_operator))
|
| 1036 |
+
"""
|
| 1037 |
+
|
| 1038 |
+
def _load_seqfeature_qualifiers(self, qualifiers, seqfeature_id):
|
| 1039 |
+
"""Insert feature's (key, value) pair qualifiers (PRIVATE).
|
| 1040 |
+
|
| 1041 |
+
Qualifiers should be a dictionary of the form::
|
| 1042 |
+
|
| 1043 |
+
{key : [value1, value2]}
|
| 1044 |
+
|
| 1045 |
+
"""
|
| 1046 |
+
tag_ontology_id = self._get_ontology_id("Annotation Tags")
|
| 1047 |
+
for qualifier_key in qualifiers:
|
| 1048 |
+
# Treat db_xref qualifiers differently to sequence annotation
|
| 1049 |
+
# qualifiers by populating the seqfeature_dbxref and dbxref
|
| 1050 |
+
# tables. Other qualifiers go into the seqfeature_qualifier_value
|
| 1051 |
+
# and (if new) term tables.
|
| 1052 |
+
if qualifier_key != "db_xref":
|
| 1053 |
+
qualifier_key_id = self._get_term_id(
|
| 1054 |
+
qualifier_key, ontology_id=tag_ontology_id
|
| 1055 |
+
)
|
| 1056 |
+
# now add all of the values to their table
|
| 1057 |
+
entries = qualifiers[qualifier_key]
|
| 1058 |
+
if not isinstance(entries, list):
|
| 1059 |
+
# Could be a plain string, or an int or a float.
|
| 1060 |
+
# However, we exect a list of strings here.
|
| 1061 |
+
entries = [entries]
|
| 1062 |
+
for qual_value_rank in range(len(entries)):
|
| 1063 |
+
qualifier_value = entries[qual_value_rank]
|
| 1064 |
+
sql = (
|
| 1065 |
+
"INSERT INTO seqfeature_qualifier_value "
|
| 1066 |
+
' (seqfeature_id, term_id, "rank", value) VALUES'
|
| 1067 |
+
" (%s, %s, %s, %s)"
|
| 1068 |
+
)
|
| 1069 |
+
self.adaptor.execute(
|
| 1070 |
+
sql,
|
| 1071 |
+
(
|
| 1072 |
+
seqfeature_id,
|
| 1073 |
+
qualifier_key_id,
|
| 1074 |
+
qual_value_rank + 1,
|
| 1075 |
+
qualifier_value,
|
| 1076 |
+
),
|
| 1077 |
+
)
|
| 1078 |
+
else:
|
| 1079 |
+
# The dbxref_id qualifier/value sets go into the dbxref table
|
| 1080 |
+
# as dbname, accession, version tuples, with dbxref.dbxref_id
|
| 1081 |
+
# being automatically assigned, and into the seqfeature_dbxref
|
| 1082 |
+
# table as seqfeature_id, dbxref_id, and rank tuples
|
| 1083 |
+
self._load_seqfeature_dbxref(qualifiers[qualifier_key], seqfeature_id)
|
| 1084 |
+
|
| 1085 |
+
def _load_seqfeature_dbxref(self, dbxrefs, seqfeature_id):
|
| 1086 |
+
"""Add SeqFeature's DB cross-references to the database (PRIVATE).
|
| 1087 |
+
|
| 1088 |
+
Arguments:
|
| 1089 |
+
- dbxrefs - List, dbxref data from the source file in the
|
| 1090 |
+
format <database>:<accession>
|
| 1091 |
+
- seqfeature_id - Int, the identifier for the seqfeature in the
|
| 1092 |
+
seqfeature table
|
| 1093 |
+
|
| 1094 |
+
Insert dbxref qualifier data for a seqfeature into the
|
| 1095 |
+
seqfeature_dbxref and, if required, dbxref tables.
|
| 1096 |
+
The dbxref_id qualifier/value sets go into the dbxref table
|
| 1097 |
+
as dbname, accession, version tuples, with dbxref.dbxref_id
|
| 1098 |
+
being automatically assigned, and into the seqfeature_dbxref
|
| 1099 |
+
table as seqfeature_id, dbxref_id, and rank tuples.
|
| 1100 |
+
"""
|
| 1101 |
+
# NOTE - In older versions of Biopython, we would map the GenBank
|
| 1102 |
+
# db_xref "name", for example "GI" to "GeneIndex", and give a warning
|
| 1103 |
+
# for any unknown terms. This was a long term maintenance problem,
|
| 1104 |
+
# and differed from BioPerl and BioJava's implementation. See bug 2405
|
| 1105 |
+
for rank, value in enumerate(dbxrefs):
|
| 1106 |
+
# Split the DB:accession format string at colons. We have to
|
| 1107 |
+
# account for multiple-line and multiple-accession entries
|
| 1108 |
+
try:
|
| 1109 |
+
dbxref_data = value.replace(" ", "").replace("\n", "").split(":")
|
| 1110 |
+
db = dbxref_data[0]
|
| 1111 |
+
accessions = dbxref_data[1:]
|
| 1112 |
+
except Exception:
|
| 1113 |
+
raise ValueError(f"Parsing of db_xref failed: '{value}'") from None
|
| 1114 |
+
# Loop over all the grabbed accessions, and attempt to fill the
|
| 1115 |
+
# table
|
| 1116 |
+
for accession in accessions:
|
| 1117 |
+
# Get the dbxref_id value for the dbxref data
|
| 1118 |
+
dbxref_id = self._get_dbxref_id(db, accession)
|
| 1119 |
+
# Insert the seqfeature_dbxref data
|
| 1120 |
+
self._get_seqfeature_dbxref(seqfeature_id, dbxref_id, rank + 1)
|
| 1121 |
+
|
| 1122 |
+
def _get_dbxref_id(self, db, accession):
|
| 1123 |
+
"""Get DB cross-reference for accession (PRIVATE).
|
| 1124 |
+
|
| 1125 |
+
Arguments:
|
| 1126 |
+
- db - String, the name of the external database containing
|
| 1127 |
+
the accession number
|
| 1128 |
+
- accession - String, the accession of the dbxref data
|
| 1129 |
+
|
| 1130 |
+
Finds and returns the dbxref_id for the passed data. The method
|
| 1131 |
+
attempts to find an existing record first, and inserts the data
|
| 1132 |
+
if there is no record.
|
| 1133 |
+
"""
|
| 1134 |
+
# Check for an existing record
|
| 1135 |
+
sql = "SELECT dbxref_id FROM dbxref WHERE dbname = %s AND accession = %s"
|
| 1136 |
+
dbxref_id = self.adaptor.execute_and_fetch_col0(sql, (db, accession))
|
| 1137 |
+
# If there was a record, return the dbxref_id, else create the
|
| 1138 |
+
# record and return the created dbxref_id
|
| 1139 |
+
if dbxref_id:
|
| 1140 |
+
return dbxref_id[0]
|
| 1141 |
+
return self._add_dbxref(db, accession, 0)
|
| 1142 |
+
|
| 1143 |
+
def _get_seqfeature_dbxref(self, seqfeature_id, dbxref_id, rank):
|
| 1144 |
+
"""Get DB cross-reference, creating it if needed (PRIVATE).
|
| 1145 |
+
|
| 1146 |
+
Check for a pre-existing seqfeature_dbxref entry with the passed
|
| 1147 |
+
seqfeature_id and dbxref_id. If one does not exist, insert new
|
| 1148 |
+
data.
|
| 1149 |
+
"""
|
| 1150 |
+
# Check for an existing record
|
| 1151 |
+
sql = (
|
| 1152 |
+
"SELECT seqfeature_id, dbxref_id FROM seqfeature_dbxref "
|
| 1153 |
+
"WHERE seqfeature_id = %s AND dbxref_id = %s"
|
| 1154 |
+
)
|
| 1155 |
+
result = self.adaptor.execute_and_fetch_col0(sql, (seqfeature_id, dbxref_id))
|
| 1156 |
+
# If there was a record, return without executing anything, else create
|
| 1157 |
+
# the record and return
|
| 1158 |
+
if result:
|
| 1159 |
+
return result
|
| 1160 |
+
return self._add_seqfeature_dbxref(seqfeature_id, dbxref_id, rank)
|
| 1161 |
+
|
| 1162 |
+
def _add_seqfeature_dbxref(self, seqfeature_id, dbxref_id, rank):
|
| 1163 |
+
"""Add DB cross-reference (PRIVATE).
|
| 1164 |
+
|
| 1165 |
+
Insert a seqfeature_dbxref row and return the seqfeature_id and
|
| 1166 |
+
dbxref_id
|
| 1167 |
+
"""
|
| 1168 |
+
sql = (
|
| 1169 |
+
"INSERT INTO seqfeature_dbxref "
|
| 1170 |
+
'(seqfeature_id, dbxref_id, "rank") VALUES'
|
| 1171 |
+
"(%s, %s, %s)"
|
| 1172 |
+
)
|
| 1173 |
+
self.adaptor.execute(sql, (seqfeature_id, dbxref_id, rank))
|
| 1174 |
+
return (seqfeature_id, dbxref_id)
|
| 1175 |
+
|
| 1176 |
+
def _load_dbxrefs(self, record, bioentry_id):
|
| 1177 |
+
"""Load any sequence level cross references into the database (PRIVATE).
|
| 1178 |
+
|
| 1179 |
+
See table bioentry_dbxref.
|
| 1180 |
+
"""
|
| 1181 |
+
for rank, value in enumerate(record.dbxrefs):
|
| 1182 |
+
# Split the DB:accession string at first colon.
|
| 1183 |
+
# We have to cope with things like:
|
| 1184 |
+
# "MGD:MGI:892" (db="MGD", accession="MGI:892")
|
| 1185 |
+
# "GO:GO:123" (db="GO", accession="GO:123")
|
| 1186 |
+
#
|
| 1187 |
+
# Annoyingly I have seen the NCBI use both the style
|
| 1188 |
+
# "GO:GO:123" and "GO:123" in different vintages.
|
| 1189 |
+
newline_escape_count = value.count("\n")
|
| 1190 |
+
if newline_escape_count != 0:
|
| 1191 |
+
raise ValueError(
|
| 1192 |
+
"Expected a single line in value, got {newline_escape_count}"
|
| 1193 |
+
)
|
| 1194 |
+
try:
|
| 1195 |
+
db, accession = value.split(":", 1)
|
| 1196 |
+
db = db.strip()
|
| 1197 |
+
accession = accession.strip()
|
| 1198 |
+
except Exception:
|
| 1199 |
+
raise ValueError(f"Parsing of dbxrefs list failed: '{value}'") from None
|
| 1200 |
+
# Get the dbxref_id value for the dbxref data
|
| 1201 |
+
dbxref_id = self._get_dbxref_id(db, accession)
|
| 1202 |
+
# Insert the bioentry_dbxref data
|
| 1203 |
+
self._get_bioentry_dbxref(bioentry_id, dbxref_id, rank + 1)
|
| 1204 |
+
|
| 1205 |
+
def _get_bioentry_dbxref(self, bioentry_id, dbxref_id, rank):
|
| 1206 |
+
"""Get pre-existing db-xref, or create and return it (PRIVATE).
|
| 1207 |
+
|
| 1208 |
+
Check for a pre-existing bioentry_dbxref entry with the passed
|
| 1209 |
+
seqfeature_id and dbxref_id. If one does not exist, insert new
|
| 1210 |
+
data
|
| 1211 |
+
"""
|
| 1212 |
+
# Check for an existing record
|
| 1213 |
+
sql = (
|
| 1214 |
+
"SELECT bioentry_id, dbxref_id FROM bioentry_dbxref "
|
| 1215 |
+
"WHERE bioentry_id = %s AND dbxref_id = %s"
|
| 1216 |
+
)
|
| 1217 |
+
result = self.adaptor.execute_and_fetch_col0(sql, (bioentry_id, dbxref_id))
|
| 1218 |
+
# If there was a record, return without executing anything, else create
|
| 1219 |
+
# the record and return
|
| 1220 |
+
if result:
|
| 1221 |
+
return result
|
| 1222 |
+
return self._add_bioentry_dbxref(bioentry_id, dbxref_id, rank)
|
| 1223 |
+
|
| 1224 |
+
def _add_bioentry_dbxref(self, bioentry_id, dbxref_id, rank):
|
| 1225 |
+
"""Insert a bioentry_dbxref row (PRIVATE).
|
| 1226 |
+
|
| 1227 |
+
Returns the seqfeature_id and dbxref_id (PRIVATE).
|
| 1228 |
+
"""
|
| 1229 |
+
sql = (
|
| 1230 |
+
"INSERT INTO bioentry_dbxref "
|
| 1231 |
+
'(bioentry_id,dbxref_id,"rank") VALUES '
|
| 1232 |
+
"(%s, %s, %s)"
|
| 1233 |
+
)
|
| 1234 |
+
self.adaptor.execute(sql, (bioentry_id, dbxref_id, rank))
|
| 1235 |
+
return (bioentry_id, dbxref_id)
|
| 1236 |
+
|
| 1237 |
+
|
| 1238 |
+
class DatabaseRemover:
|
| 1239 |
+
"""Complement the Loader functionality by fully removing a database.
|
| 1240 |
+
|
| 1241 |
+
This probably isn't really useful for normal purposes, since you
|
| 1242 |
+
can just do a::
|
| 1243 |
+
|
| 1244 |
+
DROP DATABASE db_name
|
| 1245 |
+
|
| 1246 |
+
and then recreate the database. But, it's really useful for testing
|
| 1247 |
+
purposes.
|
| 1248 |
+
"""
|
| 1249 |
+
|
| 1250 |
+
def __init__(self, adaptor, dbid):
|
| 1251 |
+
"""Initialize with a database id and adaptor connection."""
|
| 1252 |
+
self.adaptor = adaptor
|
| 1253 |
+
self.dbid = dbid
|
| 1254 |
+
|
| 1255 |
+
def remove(self):
|
| 1256 |
+
"""Remove everything related to the given database id."""
|
| 1257 |
+
sql = "DELETE FROM bioentry WHERE biodatabase_id = %s"
|
| 1258 |
+
self.adaptor.execute(sql, (self.dbid,))
|
| 1259 |
+
sql = "DELETE FROM biodatabase WHERE biodatabase_id = %s"
|
| 1260 |
+
self.adaptor.execute(sql, (self.dbid,))
|
.venv_haddock/lib/python3.12/site-packages/BioSQL/py.typed
ADDED
|
File without changes
|
.venv_haddock/lib/python3.12/site-packages/_distutils_hack/__init__.py
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# don't import any costly modules
|
| 2 |
+
import os
|
| 3 |
+
import sys
|
| 4 |
+
|
| 5 |
+
report_url = (
|
| 6 |
+
"https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml"
|
| 7 |
+
)
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def warn_distutils_present():
|
| 11 |
+
if 'distutils' not in sys.modules:
|
| 12 |
+
return
|
| 13 |
+
import warnings
|
| 14 |
+
|
| 15 |
+
warnings.warn(
|
| 16 |
+
"Distutils was imported before Setuptools, but importing Setuptools "
|
| 17 |
+
"also replaces the `distutils` module in `sys.modules`. This may lead "
|
| 18 |
+
"to undesirable behaviors or errors. To avoid these issues, avoid "
|
| 19 |
+
"using distutils directly, ensure that setuptools is installed in the "
|
| 20 |
+
"traditional way (e.g. not an editable install), and/or make sure "
|
| 21 |
+
"that setuptools is always imported before distutils."
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def clear_distutils():
|
| 26 |
+
if 'distutils' not in sys.modules:
|
| 27 |
+
return
|
| 28 |
+
import warnings
|
| 29 |
+
|
| 30 |
+
warnings.warn(
|
| 31 |
+
"Setuptools is replacing distutils. Support for replacing "
|
| 32 |
+
"an already imported distutils is deprecated. In the future, "
|
| 33 |
+
"this condition will fail. "
|
| 34 |
+
f"Register concerns at {report_url}"
|
| 35 |
+
)
|
| 36 |
+
mods = [
|
| 37 |
+
name
|
| 38 |
+
for name in sys.modules
|
| 39 |
+
if name == "distutils" or name.startswith("distutils.")
|
| 40 |
+
]
|
| 41 |
+
for name in mods:
|
| 42 |
+
del sys.modules[name]
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def enabled():
|
| 46 |
+
"""
|
| 47 |
+
Allow selection of distutils by environment variable.
|
| 48 |
+
"""
|
| 49 |
+
which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
|
| 50 |
+
if which == 'stdlib':
|
| 51 |
+
import warnings
|
| 52 |
+
|
| 53 |
+
warnings.warn(
|
| 54 |
+
"Reliance on distutils from stdlib is deprecated. Users "
|
| 55 |
+
"must rely on setuptools to provide the distutils module. "
|
| 56 |
+
"Avoid importing distutils or import setuptools first, "
|
| 57 |
+
"and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. "
|
| 58 |
+
f"Register concerns at {report_url}"
|
| 59 |
+
)
|
| 60 |
+
return which == 'local'
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def ensure_local_distutils():
|
| 64 |
+
import importlib
|
| 65 |
+
|
| 66 |
+
clear_distutils()
|
| 67 |
+
|
| 68 |
+
# With the DistutilsMetaFinder in place,
|
| 69 |
+
# perform an import to cause distutils to be
|
| 70 |
+
# loaded from setuptools._distutils. Ref #2906.
|
| 71 |
+
with shim():
|
| 72 |
+
importlib.import_module('distutils')
|
| 73 |
+
|
| 74 |
+
# check that submodules load as expected
|
| 75 |
+
core = importlib.import_module('distutils.core')
|
| 76 |
+
assert '_distutils' in core.__file__, core.__file__
|
| 77 |
+
assert 'setuptools._distutils.log' not in sys.modules
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def do_override():
|
| 81 |
+
"""
|
| 82 |
+
Ensure that the local copy of distutils is preferred over stdlib.
|
| 83 |
+
|
| 84 |
+
See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401
|
| 85 |
+
for more motivation.
|
| 86 |
+
"""
|
| 87 |
+
if enabled():
|
| 88 |
+
warn_distutils_present()
|
| 89 |
+
ensure_local_distutils()
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
class _TrivialRe:
|
| 93 |
+
def __init__(self, *patterns) -> None:
|
| 94 |
+
self._patterns = patterns
|
| 95 |
+
|
| 96 |
+
def match(self, string):
|
| 97 |
+
return all(pat in string for pat in self._patterns)
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
class DistutilsMetaFinder:
|
| 101 |
+
def find_spec(self, fullname, path, target=None):
|
| 102 |
+
# optimization: only consider top level modules and those
|
| 103 |
+
# found in the CPython test suite.
|
| 104 |
+
if path is not None and not fullname.startswith('test.'):
|
| 105 |
+
return None
|
| 106 |
+
|
| 107 |
+
method_name = 'spec_for_{fullname}'.format(**locals())
|
| 108 |
+
method = getattr(self, method_name, lambda: None)
|
| 109 |
+
return method()
|
| 110 |
+
|
| 111 |
+
def spec_for_distutils(self):
|
| 112 |
+
if self.is_cpython():
|
| 113 |
+
return None
|
| 114 |
+
|
| 115 |
+
import importlib
|
| 116 |
+
import importlib.abc
|
| 117 |
+
import importlib.util
|
| 118 |
+
|
| 119 |
+
try:
|
| 120 |
+
mod = importlib.import_module('setuptools._distutils')
|
| 121 |
+
except Exception:
|
| 122 |
+
# There are a couple of cases where setuptools._distutils
|
| 123 |
+
# may not be present:
|
| 124 |
+
# - An older Setuptools without a local distutils is
|
| 125 |
+
# taking precedence. Ref #2957.
|
| 126 |
+
# - Path manipulation during sitecustomize removes
|
| 127 |
+
# setuptools from the path but only after the hook
|
| 128 |
+
# has been loaded. Ref #2980.
|
| 129 |
+
# In either case, fall back to stdlib behavior.
|
| 130 |
+
return None
|
| 131 |
+
|
| 132 |
+
class DistutilsLoader(importlib.abc.Loader):
|
| 133 |
+
def create_module(self, spec):
|
| 134 |
+
mod.__name__ = 'distutils'
|
| 135 |
+
return mod
|
| 136 |
+
|
| 137 |
+
def exec_module(self, module):
|
| 138 |
+
pass
|
| 139 |
+
|
| 140 |
+
return importlib.util.spec_from_loader(
|
| 141 |
+
'distutils', DistutilsLoader(), origin=mod.__file__
|
| 142 |
+
)
|
| 143 |
+
|
| 144 |
+
@staticmethod
|
| 145 |
+
def is_cpython():
|
| 146 |
+
"""
|
| 147 |
+
Suppress supplying distutils for CPython (build and tests).
|
| 148 |
+
Ref #2965 and #3007.
|
| 149 |
+
"""
|
| 150 |
+
return os.path.isfile('pybuilddir.txt')
|
| 151 |
+
|
| 152 |
+
def spec_for_pip(self):
|
| 153 |
+
"""
|
| 154 |
+
Ensure stdlib distutils when running under pip.
|
| 155 |
+
See pypa/pip#8761 for rationale.
|
| 156 |
+
"""
|
| 157 |
+
if sys.version_info >= (3, 12) or self.pip_imported_during_build():
|
| 158 |
+
return
|
| 159 |
+
clear_distutils()
|
| 160 |
+
self.spec_for_distutils = lambda: None
|
| 161 |
+
|
| 162 |
+
@classmethod
|
| 163 |
+
def pip_imported_during_build(cls):
|
| 164 |
+
"""
|
| 165 |
+
Detect if pip is being imported in a build script. Ref #2355.
|
| 166 |
+
"""
|
| 167 |
+
import traceback
|
| 168 |
+
|
| 169 |
+
return any(
|
| 170 |
+
cls.frame_file_is_setup(frame) for frame, line in traceback.walk_stack(None)
|
| 171 |
+
)
|
| 172 |
+
|
| 173 |
+
@staticmethod
|
| 174 |
+
def frame_file_is_setup(frame):
|
| 175 |
+
"""
|
| 176 |
+
Return True if the indicated frame suggests a setup.py file.
|
| 177 |
+
"""
|
| 178 |
+
# some frames may not have __file__ (#2940)
|
| 179 |
+
return frame.f_globals.get('__file__', '').endswith('setup.py')
|
| 180 |
+
|
| 181 |
+
def spec_for_sensitive_tests(self):
|
| 182 |
+
"""
|
| 183 |
+
Ensure stdlib distutils when running select tests under CPython.
|
| 184 |
+
|
| 185 |
+
python/cpython#91169
|
| 186 |
+
"""
|
| 187 |
+
clear_distutils()
|
| 188 |
+
self.spec_for_distutils = lambda: None
|
| 189 |
+
|
| 190 |
+
sensitive_tests = (
|
| 191 |
+
[
|
| 192 |
+
'test.test_distutils',
|
| 193 |
+
'test.test_peg_generator',
|
| 194 |
+
'test.test_importlib',
|
| 195 |
+
]
|
| 196 |
+
if sys.version_info < (3, 10)
|
| 197 |
+
else [
|
| 198 |
+
'test.test_distutils',
|
| 199 |
+
]
|
| 200 |
+
)
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
for name in DistutilsMetaFinder.sensitive_tests:
|
| 204 |
+
setattr(
|
| 205 |
+
DistutilsMetaFinder,
|
| 206 |
+
f'spec_for_{name}',
|
| 207 |
+
DistutilsMetaFinder.spec_for_sensitive_tests,
|
| 208 |
+
)
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
DISTUTILS_FINDER = DistutilsMetaFinder()
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
def add_shim():
|
| 215 |
+
DISTUTILS_FINDER in sys.meta_path or insert_shim()
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
class shim:
|
| 219 |
+
def __enter__(self) -> None:
|
| 220 |
+
insert_shim()
|
| 221 |
+
|
| 222 |
+
def __exit__(self, exc: object, value: object, tb: object) -> None:
|
| 223 |
+
_remove_shim()
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
def insert_shim():
|
| 227 |
+
sys.meta_path.insert(0, DISTUTILS_FINDER)
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
def _remove_shim():
|
| 231 |
+
try:
|
| 232 |
+
sys.meta_path.remove(DISTUTILS_FINDER)
|
| 233 |
+
except ValueError:
|
| 234 |
+
pass
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
if sys.version_info < (3, 12):
|
| 238 |
+
# DistutilsMetaFinder can only be disabled in Python < 3.12 (PEP 632)
|
| 239 |
+
remove_shim = _remove_shim
|
.venv_haddock/lib/python3.12/site-packages/_distutils_hack/override.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__import__('_distutils_hack').do_override()
|
.venv_haddock/lib/python3.12/site-packages/biopython-1.87.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
.venv_haddock/lib/python3.12/site-packages/biopython-1.87.dist-info/METADATA
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: biopython
|
| 3 |
+
Version: 1.87
|
| 4 |
+
Summary: Freely available tools for computational molecular biology.
|
| 5 |
+
Author-email: The Biopython Contributors <biopython@biopython.org>
|
| 6 |
+
License-Expression: LicenseRef-Biopython-License-Agreement
|
| 7 |
+
Project-URL: Homepage, https://biopython.org/
|
| 8 |
+
Project-URL: Documentation, https://biopython.org/wiki/Documentation
|
| 9 |
+
Project-URL: Source, https://github.com/biopython/biopython/
|
| 10 |
+
Project-URL: Tracker, https://github.com/biopython/biopython/issues
|
| 11 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 12 |
+
Classifier: Intended Audience :: Developers
|
| 13 |
+
Classifier: Intended Audience :: Science/Research
|
| 14 |
+
Classifier: Operating System :: OS Independent
|
| 15 |
+
Classifier: Programming Language :: Python
|
| 16 |
+
Classifier: Programming Language :: Python :: 3
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 22 |
+
Classifier: Topic :: Scientific/Engineering
|
| 23 |
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
| 24 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 25 |
+
Requires-Python: >=3.10
|
| 26 |
+
Description-Content-Type: text/x-rst
|
| 27 |
+
License-File: LICENSE.rst
|
| 28 |
+
Requires-Dist: numpy
|
| 29 |
+
Dynamic: license-file
|
| 30 |
+
|
| 31 |
+
.. image:: https://img.shields.io/pypi/v/biopython.svg?logo=pypi
|
| 32 |
+
:alt: Biopython on the Python Package Index (PyPI)
|
| 33 |
+
:target: https://pypi.python.org/pypi/biopython
|
| 34 |
+
.. image:: https://img.shields.io/conda/vn/conda-forge/biopython.svg?logo=conda-forge
|
| 35 |
+
:alt: Biopython on the Conda package conda-forge channel
|
| 36 |
+
:target: https://anaconda.org/conda-forge/biopython
|
| 37 |
+
.. image:: https://results.pre-commit.ci/badge/github/biopython/biopython/master.svg
|
| 38 |
+
:target: https://results.pre-commit.ci/latest/github/biopython/biopython/master
|
| 39 |
+
:alt: pre-commit.ci status
|
| 40 |
+
.. image:: https://img.shields.io/circleci/build/github/biopython/biopython.svg?logo=circleci
|
| 41 |
+
:alt: Linux testing with CircleCI
|
| 42 |
+
:target: https://app.circleci.com/pipelines/github/biopython/biopython
|
| 43 |
+
.. image:: https://img.shields.io/appveyor/ci/biopython/biopython/master.svg?logo=appveyor
|
| 44 |
+
:alt: Windows testing with AppVeyor
|
| 45 |
+
:target: https://ci.appveyor.com/project/biopython/biopython/history
|
| 46 |
+
.. image:: https://img.shields.io/github/actions/workflow/status/biopython/biopython/ci.yml?logo=github-actions
|
| 47 |
+
:alt: GitHub workflow status
|
| 48 |
+
:target: https://github.com/biopython/biopython/actions
|
| 49 |
+
.. image:: https://img.shields.io/codecov/c/github/biopython/biopython/master.svg?logo=codecov
|
| 50 |
+
:alt: Test coverage on CodeCov
|
| 51 |
+
:target: https://codecov.io/github/biopython/biopython/
|
| 52 |
+
.. image:: https://depsy.org/api/package/pypi/biopython/badge.svg
|
| 53 |
+
:alt: Research software impact on Depsy
|
| 54 |
+
:target: https://depsy.org/package/python/biopython
|
| 55 |
+
|
| 56 |
+
.. image:: https://github.com/biopython/biopython/raw/master/Doc/images/biopython_logo_m.png
|
| 57 |
+
:alt: The Biopython Project
|
| 58 |
+
:target: https://biopython.org
|
| 59 |
+
|
| 60 |
+
Biopython README file
|
| 61 |
+
=====================
|
| 62 |
+
|
| 63 |
+
The Biopython Project is an international association of developers of freely
|
| 64 |
+
available Python tools for computational molecular biology.
|
| 65 |
+
|
| 66 |
+
This README file is intended primarily for people interested in working
|
| 67 |
+
with the Biopython source code, either one of the releases from the
|
| 68 |
+
https://biopython.org website, or from our repository on GitHub
|
| 69 |
+
https://github.com/biopython/biopython
|
| 70 |
+
|
| 71 |
+
Our user-centric documentation, `The Biopython Tutorial and Cookbook, and API
|
| 72 |
+
documentation <https://biopython.org/docs/latest/>`_, is generated from our
|
| 73 |
+
repository using Sphinx.
|
| 74 |
+
|
| 75 |
+
The `NEWS <https://github.com/biopython/biopython/blob/master/NEWS.rst>`_
|
| 76 |
+
file summarises the changes in each release of Biopython, alongside the
|
| 77 |
+
`DEPRECATED
|
| 78 |
+
<https://github.com/biopython/biopython/blob/master/DEPRECATED.rst>`_
|
| 79 |
+
file which notes API breakages.
|
| 80 |
+
|
| 81 |
+
The Biopython package is open source software made available under generous
|
| 82 |
+
terms. Please see the `LICENSE
|
| 83 |
+
<https://github.com/biopython/biopython/blob/master/LICENSE.rst>`_ file for
|
| 84 |
+
further details.
|
| 85 |
+
|
| 86 |
+
If you use Biopython in work contributing to a scientific publication, we ask
|
| 87 |
+
that you cite our application note (below) or one of the module specific
|
| 88 |
+
publications (listed on our website):
|
| 89 |
+
|
| 90 |
+
Cock, P.J.A. et al. Biopython: freely available Python tools for computational
|
| 91 |
+
molecular biology and bioinformatics. Bioinformatics 2009 Jun 1; 25(11) 1422-3
|
| 92 |
+
https://doi.org/10.1093/bioinformatics/btp163 pmid:19304878
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
For the impatient
|
| 96 |
+
=================
|
| 97 |
+
|
| 98 |
+
Python includes the package management system "pip" which should allow you to
|
| 99 |
+
install Biopython (and its dependency NumPy if needed), upgrade or uninstall
|
| 100 |
+
with just one terminal command::
|
| 101 |
+
|
| 102 |
+
pip install biopython
|
| 103 |
+
pip install --upgrade biopython
|
| 104 |
+
pip uninstall biopython
|
| 105 |
+
|
| 106 |
+
Since Biopython 1.70 we have provided pre-compiled binary wheel packages on
|
| 107 |
+
PyPI for Linux, macOS and Windows. This means pip install should be quick,
|
| 108 |
+
and not require a compiler.
|
| 109 |
+
|
| 110 |
+
As a developer or potential contributor, you may wish to download, build and
|
| 111 |
+
install Biopython yourself. This is described below.
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
Python Requirements
|
| 115 |
+
===================
|
| 116 |
+
|
| 117 |
+
We currently recommend using Python 3.13 from https://www.python.org
|
| 118 |
+
|
| 119 |
+
Biopython is currently supported and tested on the following Python
|
| 120 |
+
implementations:
|
| 121 |
+
|
| 122 |
+
- Python 3.10, 3.11, 3.12, 3.13 and 3.14 -- see https://www.python.org
|
| 123 |
+
|
| 124 |
+
- PyPy3.10 v7.3.17 -- or later, see https://www.pypy.org
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
Optional Dependencies
|
| 128 |
+
=====================
|
| 129 |
+
|
| 130 |
+
Biopython requires NumPy (see https://www.numpy.org) which will be installed
|
| 131 |
+
automatically if you install Biopython with pip (see below for compiling
|
| 132 |
+
Biopython yourself).
|
| 133 |
+
|
| 134 |
+
Depending on which parts of Biopython you plan to use, there are a number of
|
| 135 |
+
other optional Python dependencies, which can be installed later if needed:
|
| 136 |
+
|
| 137 |
+
- ReportLab, see https://www.reportlab.com/opensource/ (optional)
|
| 138 |
+
This package is only used in ``Bio.Graphics``, so if you do not need this
|
| 139 |
+
functionality, you will not need to install this package.
|
| 140 |
+
|
| 141 |
+
- matplotlib, see https://matplotlib.org/ (optional)
|
| 142 |
+
``Bio.Phylo`` uses this package to plot phylogenetic trees.
|
| 143 |
+
|
| 144 |
+
- networkx, see https://networkx.github.io/ (optional) and
|
| 145 |
+
pygraphviz or pydot, see https://pygraphviz.github.io/ and
|
| 146 |
+
https://code.google.com/p/pydot/ (optional)
|
| 147 |
+
These packages are used for certain niche functions in ``Bio.Phylo``.
|
| 148 |
+
|
| 149 |
+
- rdflib, see https://github.com/RDFLib/rdflib (optional)
|
| 150 |
+
This package is used in the CDAO parser under ``Bio.Phylo``.
|
| 151 |
+
|
| 152 |
+
- psycopg2, see https://initd.org/psycopg/ (optional) or
|
| 153 |
+
PyGreSQL (pgdb), see https://www.pygresql.org/ (optional)
|
| 154 |
+
These packages are used by ``BioSQL`` to access a PostgreSQL database.
|
| 155 |
+
|
| 156 |
+
- MySQL Connector/Python, see https://dev.mysql.com/downloads/connector/python/
|
| 157 |
+
This package is used by ``BioSQL`` to access a MySQL database, and is
|
| 158 |
+
supported on PyPy too.
|
| 159 |
+
|
| 160 |
+
- mysqlclient, see https://github.com/PyMySQL/mysqlclient-python (optional)
|
| 161 |
+
This is a fork of the older MySQLdb and is used by ``BioSQL`` to access a
|
| 162 |
+
MySQL database. It is supported by PyPy.
|
| 163 |
+
|
| 164 |
+
In addition there are a number of useful third party tools you may wish to
|
| 165 |
+
install such as standalone NCBI BLAST, EMBOSS or ClustalW.
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
Installation From Source
|
| 169 |
+
========================
|
| 170 |
+
|
| 171 |
+
We recommend using the pre-compiled binary wheels available on PyPI using::
|
| 172 |
+
|
| 173 |
+
pip install biopython
|
| 174 |
+
|
| 175 |
+
However, if you need to compile Biopython yourself, the following are required
|
| 176 |
+
at compile time:
|
| 177 |
+
|
| 178 |
+
- Python including development header files like ``python.h``, which on Linux
|
| 179 |
+
are often not installed by default (trying looking for and installing a
|
| 180 |
+
package named ``python-dev`` or ``python-devel`` as well as the ``python``
|
| 181 |
+
package).
|
| 182 |
+
|
| 183 |
+
- Appropriate C compiler for your version of Python, for example GCC on Linux,
|
| 184 |
+
or MSVC on Windows. For Windows, you must install the 'Visual Studio Build Tools'
|
| 185 |
+
and select the 'Desktop development with C++' workload. For macOS, use Apple's
|
| 186 |
+
command line tools, which can be installed with the terminal command::
|
| 187 |
+
|
| 188 |
+
xcode-select --install
|
| 189 |
+
|
| 190 |
+
This will offer to install Apple's XCode development suite - you can, but it
|
| 191 |
+
is not needed and takes a lot of disk space.
|
| 192 |
+
|
| 193 |
+
Then either download and decompress our source code, or fetch it using git.
|
| 194 |
+
Now change directory to the Biopython source code folder and run::
|
| 195 |
+
|
| 196 |
+
pip install -e . --group dev
|
| 197 |
+
cd Tests
|
| 198 |
+
python run_tests.py
|
| 199 |
+
|
| 200 |
+
Substitute ``python`` with your specific version if required, for example
|
| 201 |
+
``python3``, or ``pypy3``.
|
| 202 |
+
|
| 203 |
+
To exclude tests that require an internet connection (and which may take a
|
| 204 |
+
long time), use the ``--offline`` option::
|
| 205 |
+
|
| 206 |
+
cd Tests
|
| 207 |
+
python run_tests.py --offline
|
| 208 |
+
|
| 209 |
+
Testing
|
| 210 |
+
=======
|
| 211 |
+
|
| 212 |
+
Biopython includes a suite of regression tests to check if everything is
|
| 213 |
+
running correctly. To run the tests, go to the biopython source code
|
| 214 |
+
directory and type::
|
| 215 |
+
|
| 216 |
+
pip install -e . --group dev
|
| 217 |
+
cd Tests
|
| 218 |
+
python run_tests.py
|
| 219 |
+
|
| 220 |
+
If you want to skip the online tests (which is recommended when doing repeated
|
| 221 |
+
testing), use::
|
| 222 |
+
|
| 223 |
+
cd Tests
|
| 224 |
+
python run_tests.py --offline
|
| 225 |
+
|
| 226 |
+
Do not panic if you see messages warning of skipped tests::
|
| 227 |
+
|
| 228 |
+
test_DocSQL ... skipping. Install MySQLdb if you want to use Bio.DocSQL.
|
| 229 |
+
|
| 230 |
+
This most likely means that a package is not installed. You can
|
| 231 |
+
ignore this if it occurs in the tests for a module that you were not
|
| 232 |
+
planning on using. If you did want to use that module, please install
|
| 233 |
+
the required dependency and re-run the tests.
|
| 234 |
+
|
| 235 |
+
Some of the tests may fail due to network issues, this is often down to
|
| 236 |
+
chance or a service outage. If the problem does not go away on
|
| 237 |
+
re-running the tests, you can use the ``--offline`` option.
|
| 238 |
+
|
| 239 |
+
There is more testing information in the Biopython Tutorial & Cookbook.
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
Experimental code
|
| 243 |
+
=================
|
| 244 |
+
|
| 245 |
+
Biopython 1.61 introduced a new warning, ``Bio.BiopythonExperimentalWarning``,
|
| 246 |
+
which is used to mark any experimental code included in the otherwise
|
| 247 |
+
stable Biopython releases. Such 'beta' level code is ready for wider
|
| 248 |
+
testing, but still likely to change, and should only be tried by early
|
| 249 |
+
adopters in order to give feedback via the biopython-dev mailing list.
|
| 250 |
+
|
| 251 |
+
We'd expect such experimental code to reach stable status within one or two
|
| 252 |
+
releases, at which point our normal policies about trying to preserve
|
| 253 |
+
backwards compatibility would apply.
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
Bugs
|
| 257 |
+
====
|
| 258 |
+
|
| 259 |
+
While we try to ship a robust package, bugs inevitably pop up. If you are
|
| 260 |
+
having problems that might be caused by a bug in Biopython, it is possible
|
| 261 |
+
that it has already been identified. Update to the latest release if you are
|
| 262 |
+
not using it already, and retry. If the problem persists, please search our
|
| 263 |
+
bug database and our mailing lists to see if it has already been reported
|
| 264 |
+
(and hopefully fixed), and if not please do report the bug. We can't fix
|
| 265 |
+
problems we don't know about ;)
|
| 266 |
+
|
| 267 |
+
Issue tracker: https://github.com/biopython/biopython/issues
|
| 268 |
+
|
| 269 |
+
If you suspect the problem lies within a parser, it is likely that the data
|
| 270 |
+
format has changed and broken the parsing code. (The text BLAST and GenBank
|
| 271 |
+
formats seem to be particularly fragile.) Thus, the parsing code in
|
| 272 |
+
Biopython is sometimes updated faster than we can build Biopython releases.
|
| 273 |
+
You can get the most recent parser by pulling the relevant files (e.g. the
|
| 274 |
+
ones in ``Bio.SeqIO`` or ``Bio.Blast``) from our git repository. However, be
|
| 275 |
+
careful when doing this, because the code in github is not as well-tested
|
| 276 |
+
as released code, and may contain new dependencies.
|
| 277 |
+
|
| 278 |
+
In any bug report, please let us know:
|
| 279 |
+
|
| 280 |
+
1. Which operating system and hardware (32 bit or 64 bit) you are using
|
| 281 |
+
2. Python version
|
| 282 |
+
3. Biopython version (or git commit/date)
|
| 283 |
+
4. Traceback that occurs (the full error message)
|
| 284 |
+
|
| 285 |
+
And also ideally:
|
| 286 |
+
|
| 287 |
+
5. Example code that breaks
|
| 288 |
+
6. A data file that causes the problem
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
Contributing, Bug Reports
|
| 292 |
+
=========================
|
| 293 |
+
|
| 294 |
+
Biopython is run by volunteers from all over the world, with many types of
|
| 295 |
+
backgrounds. We are always looking for people interested in helping with code
|
| 296 |
+
development, web-site management, documentation writing, technical
|
| 297 |
+
administration, and whatever else comes up.
|
| 298 |
+
|
| 299 |
+
If you wish to contribute, please first read `CONTRIBUTING.rst
|
| 300 |
+
<https://github.com/biopython/biopython/blob/master/CONTRIBUTING.rst>`_ here,
|
| 301 |
+
visit our web site https://biopython.org and join our mailing list:
|
| 302 |
+
https://biopython.org/wiki/Mailing_lists
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
Distribution Structure
|
| 306 |
+
======================
|
| 307 |
+
|
| 308 |
+
- ``README.rst`` -- This file.
|
| 309 |
+
- ``NEWS.rst`` -- Release notes and news.
|
| 310 |
+
- ``LICENSE.rst`` -- What you can do with the code.
|
| 311 |
+
- ``CONTRIB.rst`` -- An (incomplete) list of people who helped Biopython in
|
| 312 |
+
one way or another.
|
| 313 |
+
- ``CONTRIBUTING.rst`` -- An overview about how to contribute to Biopython.
|
| 314 |
+
- ``DEPRECATED.rst`` -- Contains information about modules in Biopython that
|
| 315 |
+
were removed or no longer recommended for use, and how to update code that
|
| 316 |
+
uses those modules.
|
| 317 |
+
- ``MANIFEST.in`` -- Configures which files to include in releases.
|
| 318 |
+
- ``pyproject.toml`` -- Project metadata and build configuration.
|
| 319 |
+
- ``Bio/`` -- The main code base code.
|
| 320 |
+
- ``BioSQL/`` -- Code for using Biopython with BioSQL databases.
|
| 321 |
+
- ``Doc/`` -- Documentation.
|
| 322 |
+
- ``Scripts/`` -- Miscellaneous, possibly useful, standalone scripts.
|
| 323 |
+
- ``Tests/`` -- Regression testing code including sample data files.
|
.venv_haddock/lib/python3.12/site-packages/biopython-1.87.dist-info/RECORD
ADDED
|
@@ -0,0 +1,958 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Bio/Affy/CelFile.py,sha256=-6lVGx7aOb7Re6fZUihtfoUSk0KGfdtTFvY7BvrIXS0,23598
|
| 2 |
+
Bio/Affy/__init__.py,sha256=uM4tj7wOTHWfkae1s65HLs_FVthj_s1HZGpE1dAIUIM,296
|
| 3 |
+
Bio/Affy/__pycache__/CelFile.cpython-312.pyc,,
|
| 4 |
+
Bio/Affy/__pycache__/__init__.cpython-312.pyc,,
|
| 5 |
+
Bio/Align/AlignInfo.py,sha256=z9F530E2KbSs6HAMtF2g-pE33Csor-eh3F2C6f3V3z4,1714
|
| 6 |
+
Bio/Align/__init__.py,sha256=cl5F7qDBgJngolxpWPGGNJ0rPLaHxSR4v9ZQz89rneQ,196531
|
| 7 |
+
Bio/Align/__pycache__/AlignInfo.cpython-312.pyc,,
|
| 8 |
+
Bio/Align/__pycache__/__init__.cpython-312.pyc,,
|
| 9 |
+
Bio/Align/__pycache__/a2m.cpython-312.pyc,,
|
| 10 |
+
Bio/Align/__pycache__/analysis.cpython-312.pyc,,
|
| 11 |
+
Bio/Align/__pycache__/bed.cpython-312.pyc,,
|
| 12 |
+
Bio/Align/__pycache__/bigbed.cpython-312.pyc,,
|
| 13 |
+
Bio/Align/__pycache__/bigmaf.cpython-312.pyc,,
|
| 14 |
+
Bio/Align/__pycache__/bigpsl.cpython-312.pyc,,
|
| 15 |
+
Bio/Align/__pycache__/chain.cpython-312.pyc,,
|
| 16 |
+
Bio/Align/__pycache__/clustal.cpython-312.pyc,,
|
| 17 |
+
Bio/Align/__pycache__/emboss.cpython-312.pyc,,
|
| 18 |
+
Bio/Align/__pycache__/exonerate.cpython-312.pyc,,
|
| 19 |
+
Bio/Align/__pycache__/fasta.cpython-312.pyc,,
|
| 20 |
+
Bio/Align/__pycache__/hhr.cpython-312.pyc,,
|
| 21 |
+
Bio/Align/__pycache__/interfaces.cpython-312.pyc,,
|
| 22 |
+
Bio/Align/__pycache__/maf.cpython-312.pyc,,
|
| 23 |
+
Bio/Align/__pycache__/mauve.cpython-312.pyc,,
|
| 24 |
+
Bio/Align/__pycache__/msf.cpython-312.pyc,,
|
| 25 |
+
Bio/Align/__pycache__/nexus.cpython-312.pyc,,
|
| 26 |
+
Bio/Align/__pycache__/phylip.cpython-312.pyc,,
|
| 27 |
+
Bio/Align/__pycache__/psl.cpython-312.pyc,,
|
| 28 |
+
Bio/Align/__pycache__/sam.cpython-312.pyc,,
|
| 29 |
+
Bio/Align/__pycache__/stockholm.cpython-312.pyc,,
|
| 30 |
+
Bio/Align/__pycache__/tabular.cpython-312.pyc,,
|
| 31 |
+
Bio/Align/_aligncore.c,sha256=XIFP1a7-IovM8IUSb2zFtqfvp1OISfK_lU4mAIS5huw,14084
|
| 32 |
+
Bio/Align/_aligncore.cpython-312-darwin.so,sha256=CqgWKJ0dmdMz9nLE4AW4AuPsa6ckryUbP9-B7cVBKHc,52592
|
| 33 |
+
Bio/Align/_alignmentcounts.c,sha256=OZzqyjbhB2f4wDYqJtBsGXl7HPEIDA7h2gr2kSRSufs,70159
|
| 34 |
+
Bio/Align/_alignmentcounts.cpython-312-darwin.so,sha256=ZAx4hIxKXrYtszxKXo8F_dVCgWAUQpYOx4C6vfzjecE,62216
|
| 35 |
+
Bio/Align/_codonaligner.c,sha256=Yq8HKUntswz7OI20b5sMKlW4YPI4c4nKLxS9TrzFRPc,33299
|
| 36 |
+
Bio/Align/_codonaligner.cpython-312-darwin.so,sha256=w5vQsGg0wZgnigiaZo69R0LlHTadteOdLkldaTq8HXA,57840
|
| 37 |
+
Bio/Align/_pairwisealigner.c,sha256=5kcA0dz-YI-pn_ZeJQDXxlSLTcaQOTkNMmyfuECTUU4,273667
|
| 38 |
+
Bio/Align/_pairwisealigner.cpython-312-darwin.so,sha256=NFkrWHKNxEYXShwmZR-uEo9ZDrPmgBvPky8pqCQgqVY,191432
|
| 39 |
+
Bio/Align/_pairwisealigner.h,sha256=b_VTM2cB46jSDCeEws70HvU2dP5XL7GV_VTILzyzXsw,1917
|
| 40 |
+
Bio/Align/a2m.py,sha256=LMR8M-hMLn42kGjTf6RJe9UHhzsDFsXGS6MODo016ag,4523
|
| 41 |
+
Bio/Align/analysis.py,sha256=HM0zy_rDcXD-zXtOe4SFTIpEGEE7Og2bg5S3rwOWHoA,46214
|
| 42 |
+
Bio/Align/bed.py,sha256=8DPKzBfnQkoDfkHi2y_pTraYUZNmEQAICshbVa6-M68,9932
|
| 43 |
+
Bio/Align/bigbed.py,sha256=cH5UxRqdM98LLjNy4cXLz8PaYOevxfJvzzWyFlpCrEc,81937
|
| 44 |
+
Bio/Align/bigmaf.py,sha256=NUgveu9XTH8_xNhH8bl4N4fNU0iiCkvTsYAaqeNv4Zc,13708
|
| 45 |
+
Bio/Align/bigpsl.py,sha256=bdPyWjvJo4zloR_aipbIENckQYw7zTbufgirKFCSX3g,23416
|
| 46 |
+
Bio/Align/chain.py,sha256=e5vhCM0bu_k6egGhIsqMNBQvAVC_onMfz60p6FDsvZs,9448
|
| 47 |
+
Bio/Align/clustal.py,sha256=MAbn8dfDqZblya_LGUsm0xxw5ycrVXnjU2ajN8zADks,9298
|
| 48 |
+
Bio/Align/emboss.py,sha256=KIURqXKSAmD5a4etWkLt0HKI7BTm5lzCN0ceDvPJRO8,10387
|
| 49 |
+
Bio/Align/exonerate.py,sha256=xJkeDnuVX-XbSn1fF6JnLXxx6_dAHnsHD35Gn_tpypo,26538
|
| 50 |
+
Bio/Align/fasta.py,sha256=zkJ7TpdQunqs8n83YZWMgGHgKpND6BE5UnUJykLnxrk,3141
|
| 51 |
+
Bio/Align/hhr.py,sha256=QySsXM_4Tu_2rrXNf0JGVomd5Ee9tY7t-ADib-I361A,9503
|
| 52 |
+
Bio/Align/interfaces.py,sha256=NmSP7FwXmC7_WTk9Rk98Ie3qhSYpSDymD8IbWmf9kMc,12461
|
| 53 |
+
Bio/Align/maf.py,sha256=qN51GXqk-7L38rsbgpdViNFRr2bP-jZC3NXPIJyJ774,18139
|
| 54 |
+
Bio/Align/mauve.py,sha256=1SH9HSCXqSoOEGUSiKZ6mxZ1hW-RQz55X_F_DU2UvLo,10056
|
| 55 |
+
Bio/Align/msf.py,sha256=UdoJ8cJlw0SWtP24oLi3NC2xZJ3YceqO50IJNzCuH6Y,9481
|
| 56 |
+
Bio/Align/nexus.py,sha256=VxWzBEa7jLnHB_UjyfFpswK3CEuzAbSAH3n6jXfPv2E,7330
|
| 57 |
+
Bio/Align/phylip.py,sha256=YoACjXqfB7aM_MJvhZM4UmLyoQGnzs5UniycGII6J9Y,6401
|
| 58 |
+
Bio/Align/psl.py,sha256=F3aBFmusMF4TqJaojQAOiOSCIM3jfyrOj9ryJvlcAxg,22119
|
| 59 |
+
Bio/Align/sam.py,sha256=0X6JI8-QxRs1QvWSefFyudBKWnDgB-eA-yvNMxUmj1Q,30565
|
| 60 |
+
Bio/Align/stockholm.py,sha256=hIZ5RFxiMip8xPLFGol2x7MTiLlqLfcKQCeflMj4IIg,26134
|
| 61 |
+
Bio/Align/substitution_matrices/__init__.py,sha256=jflADnCmma97h44cuazElfuYA19-LQm-yLxdCa_Oj4k,17563
|
| 62 |
+
Bio/Align/substitution_matrices/__pycache__/__init__.cpython-312.pyc,,
|
| 63 |
+
Bio/Align/substitution_matrices/_arraycore.c,sha256=wYyNgHpXhEB0Y3S1cud7rcot8ZEjbPPDvkWSOcRzmj0,7958
|
| 64 |
+
Bio/Align/substitution_matrices/_arraycore.cpython-312-darwin.so,sha256=qXYdfIFK0QdwQojfT1XPjVn_27SQ715X6qJs2TXvxQE,52224
|
| 65 |
+
Bio/Align/substitution_matrices/_arraycore.h,sha256=kHkxjHuShJGv6RUADE-KISnbenfO1c3jj5uldPAuPM0,102
|
| 66 |
+
Bio/Align/substitution_matrices/data/BENNER22,sha256=pLCoTJDekvb473IF0amcjRMUsl8UVZvg3TZ5mmfdwLw,2387
|
| 67 |
+
Bio/Align/substitution_matrices/data/BENNER6,sha256=80wckPQPTG6Tuxa-wn1uD8-PWj1gQB9HpZpzSiH-cjk,2387
|
| 68 |
+
Bio/Align/substitution_matrices/data/BENNER74,sha256=XhMG7539bm3wQ7ELNKxYBDxr8hB5GlA-MXrIQJKXjZw,2387
|
| 69 |
+
Bio/Align/substitution_matrices/data/BLASTN,sha256=Dbn4BDSPOvF09mpiAsnAquB6uAcmxNT8a24y8KnEHgA,1715
|
| 70 |
+
Bio/Align/substitution_matrices/data/BLASTP,sha256=Y3PzICgVynftfFWSw1ljW2zHozHX5CXQ86L6E2ywnRc,4009
|
| 71 |
+
Bio/Align/substitution_matrices/data/BLOSUM45,sha256=GaB31QYKlKYhKtYJ3zA6JARjhzppaU6fV2xXYvv_2wk,2122
|
| 72 |
+
Bio/Align/substitution_matrices/data/BLOSUM50,sha256=oVLjC4r8q0IoH_hgS8UTWL6YJTFV_eYq4gcHgFoNPWc,2122
|
| 73 |
+
Bio/Align/substitution_matrices/data/BLOSUM62,sha256=hVENOEbubV9HeOQlz42vbg27iJswby0TQ04SVHgO-0A,2122
|
| 74 |
+
Bio/Align/substitution_matrices/data/BLOSUM80,sha256=LllxdrgJKAi6GZz8nYDcjWV7Wj5QFd-4HVVyhYGc4Yc,2124
|
| 75 |
+
Bio/Align/substitution_matrices/data/BLOSUM90,sha256=TebOIl7Y7oTgQcT2PC2vL0Oqhs3RsSCGgHTchJXHIU8,2122
|
| 76 |
+
Bio/Align/substitution_matrices/data/DAYHOFF,sha256=f-YLd7bROKNeBoi9hRO-CP4mMUwxRXB9MWt6QyccTyM,2451
|
| 77 |
+
Bio/Align/substitution_matrices/data/FENG,sha256=G8s8SLX2aFQlUkZ7ZCjxSh4SToY3PSkcuiRK_HsF1m0,1120
|
| 78 |
+
Bio/Align/substitution_matrices/data/GENETIC,sha256=6gpGJV6X2xl6rmBBqiFKQDGOWsiNfXE-9bia767Ci7I,2380
|
| 79 |
+
Bio/Align/substitution_matrices/data/GONNET1992,sha256=JwpOMtw7Z9b4KSikBiuPzm_0ievvE4iJ-HRn7echzic,2351
|
| 80 |
+
Bio/Align/substitution_matrices/data/HOXD70,sha256=gRhfiXDqmcnwCUYEKC2oOCaDI9La-1MM1m9lBa_KVA0,275
|
| 81 |
+
Bio/Align/substitution_matrices/data/JOHNSON,sha256=PRZBltCi7f8QFWKFZvo4sMgTbzJ_VNA3aMa125BohME,2818
|
| 82 |
+
Bio/Align/substitution_matrices/data/JONES,sha256=uUzz4ilD3P85EYrgnReDgmKiH0Jb84_XG_Gmh6jQBEw,2413
|
| 83 |
+
Bio/Align/substitution_matrices/data/LEVIN,sha256=lHAFw0KjmBdDbvyy8_XUNWZ_pFdQ8MuAZ0y1--GlAsc,1542
|
| 84 |
+
Bio/Align/substitution_matrices/data/MCLACHLAN,sha256=OAHsc-AezSkvUgZlTv8ikxXGoi-ePAQQNdf1EIBKJ18,1092
|
| 85 |
+
Bio/Align/substitution_matrices/data/MDM78,sha256=tv145JMZpAo6wD0pUYd-bGMouv4gHqq6KEUKX3oqe-U,2859
|
| 86 |
+
Bio/Align/substitution_matrices/data/MEGABLAST,sha256=vxn1KrNl43MAP29eNuBhpXOm8hMmgIRjlE6gilxhgq4,1730
|
| 87 |
+
Bio/Align/substitution_matrices/data/NUC.4.4,sha256=xgPkb5oVn7RRYyzfn5xoe659qtsw-yZF9f0Jys5wdJA,1171
|
| 88 |
+
Bio/Align/substitution_matrices/data/PAM250,sha256=k2zF7yPgJixf2vdNXYH1iEjrdMyg1b7w85bSexaJcE4,2068
|
| 89 |
+
Bio/Align/substitution_matrices/data/PAM30,sha256=j8VojReY4jJuqzcZue6SmZUqIMlDTkxVKL9FMuRYbmM,2666
|
| 90 |
+
Bio/Align/substitution_matrices/data/PAM70,sha256=0YDiLYDyWtpBLW62MHD-cifJVHxmc3Jykf2bLUUpRuU,2666
|
| 91 |
+
Bio/Align/substitution_matrices/data/RAO,sha256=s3vlt4JrQenqxkgtEPYfKmZDxZpfMUGrQ279nLVe1l4,1581
|
| 92 |
+
Bio/Align/substitution_matrices/data/RISLER,sha256=RcTVfz3ex_pS8P-7vhOBXyk3HtqeTP8hJa3mi2lC1s0,2456
|
| 93 |
+
Bio/Align/substitution_matrices/data/SCHNEIDER,sha256=YCM7j6uEsY44G7VztWNWqRFbJ4GN92dlvYeHvewtfEk,25459
|
| 94 |
+
Bio/Align/substitution_matrices/data/STR,sha256=0Nn1oAYAgB1uNfZh--Zh3wgq71ksh0DbED-JBO22Nsk,1543
|
| 95 |
+
Bio/Align/substitution_matrices/data/TRANS,sha256=M2lqFdEQTolEvHho6h8yT_a79oN3Y_SKbs9eV12MTS0,402
|
| 96 |
+
Bio/Align/tabular.py,sha256=mGGJMxaGuHif_DkDNZF1VK9X_gLuFUzG8UrxhW5Zngg,16525
|
| 97 |
+
Bio/AlignIO/ClustalIO.py,sha256=B9VI8tsp9423ehMUQeyYH-0caAuX-wqG5O6PSJ-WQUc,12152
|
| 98 |
+
Bio/AlignIO/EmbossIO.py,sha256=ZmqRN385EVqpCPZd8Il_68pXVLTv3Wqjv_GjYv100X4,8749
|
| 99 |
+
Bio/AlignIO/FastaIO.py,sha256=NW_pTDRqLIpuj8Uqln-IwduoP278Lrl7msItgQTxfP4,13355
|
| 100 |
+
Bio/AlignIO/Interfaces.py,sha256=KgbcHY8FscYiHZzqCsC6kaRWZC21fXXhUzXK67DFKPQ,5598
|
| 101 |
+
Bio/AlignIO/MafIO.py,sha256=nWxfIWTNoApKks0kjqWwXFDhy6LBLbhX2ed1ChxYjAs,35258
|
| 102 |
+
Bio/AlignIO/MauveIO.py,sha256=EFDGlFzbG4rdjXEkqIGYIyOICxy2LtqChVgtFxoczX4,13300
|
| 103 |
+
Bio/AlignIO/MsfIO.py,sha256=nYDa0UogWSyHNRL9scivzipgttnigJkL9yhPq2RnR7s,14209
|
| 104 |
+
Bio/AlignIO/NexusIO.py,sha256=NXaVyjNuGC2RF6WBHis6P4ho2Xr4u4klem6c5rEDd7k,6226
|
| 105 |
+
Bio/AlignIO/PhylipIO.py,sha256=9dkxgR-Z6UjehL-QayqbUSEdMZq6yZUCu2zTsUYQbVw,17138
|
| 106 |
+
Bio/AlignIO/StockholmIO.py,sha256=PslgEcwyFLaXmk2gxgvleNS6Tw_rwWLs_VviQda717I,26397
|
| 107 |
+
Bio/AlignIO/__init__.py,sha256=H6m587Wlij96BjMY06G4x2Y2RgKoDkIbuojrlKFwKqk,18499
|
| 108 |
+
Bio/AlignIO/__pycache__/ClustalIO.cpython-312.pyc,,
|
| 109 |
+
Bio/AlignIO/__pycache__/EmbossIO.cpython-312.pyc,,
|
| 110 |
+
Bio/AlignIO/__pycache__/FastaIO.cpython-312.pyc,,
|
| 111 |
+
Bio/AlignIO/__pycache__/Interfaces.cpython-312.pyc,,
|
| 112 |
+
Bio/AlignIO/__pycache__/MafIO.cpython-312.pyc,,
|
| 113 |
+
Bio/AlignIO/__pycache__/MauveIO.cpython-312.pyc,,
|
| 114 |
+
Bio/AlignIO/__pycache__/MsfIO.cpython-312.pyc,,
|
| 115 |
+
Bio/AlignIO/__pycache__/NexusIO.cpython-312.pyc,,
|
| 116 |
+
Bio/AlignIO/__pycache__/PhylipIO.cpython-312.pyc,,
|
| 117 |
+
Bio/AlignIO/__pycache__/StockholmIO.cpython-312.pyc,,
|
| 118 |
+
Bio/AlignIO/__pycache__/__init__.cpython-312.pyc,,
|
| 119 |
+
Bio/Alphabet/__init__.py,sha256=dSLKJHXBnpVSwhn0CI4lngrjIbs40_dxTVkE5W4DnQg,1201
|
| 120 |
+
Bio/Alphabet/__pycache__/__init__.cpython-312.pyc,,
|
| 121 |
+
Bio/Blast/NCBIWWW.py,sha256=k8ObKV4kRbI2nAWEvYsAs_tZUA7kg7Q1lv_cNI7lPFI,14116
|
| 122 |
+
Bio/Blast/NCBIXML.py,sha256=L52ZDPr62nO90Sh9d9gzxL4qGbNX1cswwWTAE5reccI,49592
|
| 123 |
+
Bio/Blast/__init__.py,sha256=D-8BGE2SU2a2Os-HFnA133jn95Pgwuyfokt6pVi4Ukc,51446
|
| 124 |
+
Bio/Blast/__pycache__/NCBIWWW.cpython-312.pyc,,
|
| 125 |
+
Bio/Blast/__pycache__/NCBIXML.cpython-312.pyc,,
|
| 126 |
+
Bio/Blast/__pycache__/__init__.cpython-312.pyc,,
|
| 127 |
+
Bio/Blast/__pycache__/_parser.cpython-312.pyc,,
|
| 128 |
+
Bio/Blast/__pycache__/_writers.cpython-312.pyc,,
|
| 129 |
+
Bio/Blast/_parser.py,sha256=YYR-pSbWviWWVbIKcgtWdKlA42sYSruUn-6W2C5QRMQ,41609
|
| 130 |
+
Bio/Blast/_writers.py,sha256=0pwXM4JQdV88zb_sIthZbjPJ3sxre49jpnaV2GzFRqc,39674
|
| 131 |
+
Bio/CAPS/__init__.py,sha256=LyarDVqCzvIEsas4MsIVFyWWrbRDqf6K0bq7bUPWuss,4111
|
| 132 |
+
Bio/CAPS/__pycache__/__init__.cpython-312.pyc,,
|
| 133 |
+
Bio/Cluster/__init__.py,sha256=K9m6A-Yyh3UiA-VHNtGi66TXCu1KYe14hZvkyhjRDXg,50617
|
| 134 |
+
Bio/Cluster/__pycache__/__init__.cpython-312.pyc,,
|
| 135 |
+
Bio/Cluster/_cluster.cpython-312-darwin.so,sha256=bk_9F47SP0tJqR5odPEoBev1Au2QAKn-FTZd-gazOpA,145344
|
| 136 |
+
Bio/Cluster/cluster.c,sha256=rImdaSesCaORbsowXmNQhjpSfh9SRJYTrpCRAjfxsos,169419
|
| 137 |
+
Bio/Cluster/cluster.h,sha256=vjyDYtx1pHJzqM-Xz-kD7-h-nfaj3ncAhluusi6b6Nw,4135
|
| 138 |
+
Bio/Cluster/clustermodule.c,sha256=1g0TlzhRenMPYaHiawzGRbT8B2bx2ud_ubYfLE7pntM,78475
|
| 139 |
+
Bio/Compass/__init__.py,sha256=9erbso1s0178fUpE20wNxxRk4a6I3WkhvikNFima6ZE,6954
|
| 140 |
+
Bio/Compass/__pycache__/__init__.cpython-312.pyc,,
|
| 141 |
+
Bio/Data/CodonTable.py,sha256=gQKGwPyW3wqFPdEXiBRZXP8fOcsJYCn5VGRjdG8UkrQ,50509
|
| 142 |
+
Bio/Data/IUPACData.py,sha256=iX-0LxvW4_g3vmkYrmxU535hATsoTLq9Tn38AXI-GpE,9223
|
| 143 |
+
Bio/Data/PDBData.py,sha256=eg1XGcbzZKKzjYipAGg_Hu7Gf8ZBuVEcO2a5AKC-C4s,22894
|
| 144 |
+
Bio/Data/__init__.py,sha256=O1j0QX2yYPYShUh2AkuTlamT0-p0fLWN9UqxB0nI10U,353
|
| 145 |
+
Bio/Data/__pycache__/CodonTable.cpython-312.pyc,,
|
| 146 |
+
Bio/Data/__pycache__/IUPACData.cpython-312.pyc,,
|
| 147 |
+
Bio/Data/__pycache__/PDBData.cpython-312.pyc,,
|
| 148 |
+
Bio/Data/__pycache__/__init__.cpython-312.pyc,,
|
| 149 |
+
Bio/Emboss/Primer3.py,sha256=HSXIA9kRIBB3usGm3klOtKM--GmuuBMiYfmBvXX04UQ,5576
|
| 150 |
+
Bio/Emboss/PrimerSearch.py,sha256=06js3szg1IXXvH_1KjiKOvNLv02yAmzS31j9sRPwhVE,2521
|
| 151 |
+
Bio/Emboss/__init__.py,sha256=COuy4yEwiWplMnGIdXhrQlAIcxsnTA4NGQiHNf-sOH4,355
|
| 152 |
+
Bio/Emboss/__pycache__/Primer3.cpython-312.pyc,,
|
| 153 |
+
Bio/Emboss/__pycache__/PrimerSearch.cpython-312.pyc,,
|
| 154 |
+
Bio/Emboss/__pycache__/__init__.cpython-312.pyc,,
|
| 155 |
+
Bio/Entrez/DTDs/BITS-embedded-index2.ent,sha256=HdPxOSvsisukxE7_pma4EjFks-IyF7wIxM7w4PxMc3I,16498
|
| 156 |
+
Bio/Entrez/DTDs/BITS-question-answer2.ent,sha256=AijL9jgSolxyUWIjrolhKCJyRbxzlUe__iHEMpRfgP4,26770
|
| 157 |
+
Bio/Entrez/DTDs/Docsum_3_0.dtd,sha256=7ZGcRICWuGjRBLhEUfA3JLDyncXxzkM29-jFler0NSw,660
|
| 158 |
+
Bio/Entrez/DTDs/Docsum_3_0.mod.dtd,sha256=jTAG4Mgbc1UMwUfjHfWHm1HmpANnD7MBfQFbmT6Yps8,33675
|
| 159 |
+
Bio/Entrez/DTDs/Docsum_3_1.dtd,sha256=I8oC3ye63BK1LQHPF1tO_Hzf19lAjWYBpJr4ZnmYLvg,660
|
| 160 |
+
Bio/Entrez/DTDs/Docsum_3_1.mod.dtd,sha256=CW-GuJb2W_SKpeAISZRPN_JDrL54AGwVV5pHF78AV10,33691
|
| 161 |
+
Bio/Entrez/DTDs/Docsum_3_2.dtd,sha256=Y1Ar3m3bMggIlB1pAWi04mWSq7e9SeA9P2UBGbd68Sg,660
|
| 162 |
+
Bio/Entrez/DTDs/Docsum_3_2.mod.dtd,sha256=xCXs81yq14ssk6YYPAdf3da_xdmarTkMweNlyIYtFSo,36007
|
| 163 |
+
Bio/Entrez/DTDs/Docsum_3_3.dtd,sha256=7fpkqJthafb1WFmA84XzqGYURoblfd4x4AxyC9h8qOk,660
|
| 164 |
+
Bio/Entrez/DTDs/Docsum_3_3.mod.dtd,sha256=TWoPWXJq_opkfQCMhKMDLPyCzh2EYALKPu2L2-1c0cA,41304
|
| 165 |
+
Bio/Entrez/DTDs/Docsum_3_4.dtd,sha256=h2_g2ihfHHTZig0Uo7KX4hxLnxFPIexbtogTqfH_nwk,660
|
| 166 |
+
Bio/Entrez/DTDs/Docsum_3_4.mod.dtd,sha256=IS9RllcI91GHGDnSrLn3sMrltu-RdpIWgwiTzyTM9cA,41537
|
| 167 |
+
Bio/Entrez/DTDs/EMBL_General.dtd,sha256=Aq63w9Awp4caUK-H3ibEkX6L8_sNWNcyxTMQvPTqxC4,792
|
| 168 |
+
Bio/Entrez/DTDs/EMBL_General.mod.dtd,sha256=7qr0rLYAFronVM0Ty1GZXHkEK1rGDjAf_hFkrp0Er94,2871
|
| 169 |
+
Bio/Entrez/DTDs/GenBank_General.dtd,sha256=XhHIWzgaltizgo3j7DOvoF1h4phLjIZytcd0QTwOJq4,807
|
| 170 |
+
Bio/Entrez/DTDs/GenBank_General.mod.dtd,sha256=pNW5YNvmpP9yHP4WTE0YzwUzrubtxQBsp6jJm8mwyI8,1743
|
| 171 |
+
Bio/Entrez/DTDs/HomoloGene.dtd,sha256=B1d7yMAYc8rB37Rz2ZHKnDDbOiAoaIVwh3U-hAvpp5c,3500
|
| 172 |
+
Bio/Entrez/DTDs/HomoloGene.mod.dtd,sha256=j4UTVS0E063j9Ua6J6xDLKq51MtP8UwwC9EyKpvK0ro,6460
|
| 173 |
+
Bio/Entrez/DTDs/INSD_INSDSeq.dtd,sha256=bhpy5ifC60JR388lQzYuZ66SdQMEADaVCaxaoy-iJus,671
|
| 174 |
+
Bio/Entrez/DTDs/INSD_INSDSeq.mod.dtd,sha256=j74Wtsl0pIV6uyYoTMclFsybwkoi6KtNEQqb16NVSv4,14705
|
| 175 |
+
Bio/Entrez/DTDs/JATS-XHTMLtablesetup1-3.ent,sha256=mZdLRl62Vz55Lkw5SkaxR8QNk_ZQOJQGyxBG6v2iaVo,31246
|
| 176 |
+
Bio/Entrez/DTDs/JATS-ali-namespace1-3.ent,sha256=BA2fFqwQ32iY1Jh6p60iXnJVFBvj7B9YOH5npwIM8jU,15260
|
| 177 |
+
Bio/Entrez/DTDs/JATS-archivearticle1-3-mathml3.dtd,sha256=Og8oTSuf4-3NCCVTO_qsDVYL6QSIX7iWm9M5sPqX_SM,51353
|
| 178 |
+
Bio/Entrez/DTDs/JATS-archivecustom-classes1-3.ent,sha256=Ntq3zOsyHpsSvqSg4girNzoLCc0MhvnwKzHTLMRv1qQ,20885
|
| 179 |
+
Bio/Entrez/DTDs/JATS-archivecustom-mixes1-3.ent,sha256=tFeXpjQ6PcWo5AmvYY5L657LkEN0e6sd6QRUD_G0ADQ,31272
|
| 180 |
+
Bio/Entrez/DTDs/JATS-archivecustom-models1-3.ent,sha256=G0DPDpzfyPRSWm_1ETVkCr9d8ua1eFi8SlaLiHL_nGk,78956
|
| 181 |
+
Bio/Entrez/DTDs/JATS-archivecustom-modules1-3.ent,sha256=5WHlK7QhG0bFW-jSreT6ulwLaHgbVULjsy8Z1QtFZ5k,20899
|
| 182 |
+
Bio/Entrez/DTDs/JATS-articlemeta1-3.ent,sha256=givPeJeH4FEJMLqHfezdx-LJaSvwlx7CAynwnPFFySQ,128551
|
| 183 |
+
Bio/Entrez/DTDs/JATS-backmatter1-3.ent,sha256=6hXgTU5p9ZI9L5OTE3Twlt8HGdipwRlFXC0sBRSOkJQ,26909
|
| 184 |
+
Bio/Entrez/DTDs/JATS-chars1-3.ent,sha256=Hhc9-54mfOrjh0otYtnqchrPW6Wj3dMKFtTISWn6fdo,35219
|
| 185 |
+
Bio/Entrez/DTDs/JATS-common-atts1-3.ent,sha256=tfrDvJBBEWUdFrINXtfQ0F0mp75YDoMThy9D3biwQIw,18691
|
| 186 |
+
Bio/Entrez/DTDs/JATS-common1-3.ent,sha256=U_8xp3x7efQ5XjNZT2M8uNWwGrR4_SxTom8VbRN8AJ4,237581
|
| 187 |
+
Bio/Entrez/DTDs/JATS-default-classes1-3.ent,sha256=buWgECKx383aTQUjsEAzVFutSZRJ1BdexZcNmktIzf8,75822
|
| 188 |
+
Bio/Entrez/DTDs/JATS-default-mixes1-3.ent,sha256=GnaB1wLbUTfHotkzi8oYdJFVmtpZ0E0SJDVNDXyRnTU,32971
|
| 189 |
+
Bio/Entrez/DTDs/JATS-display1-3.ent,sha256=vrA3TnAcxKac18PJIWyygjD6v6vy5f5tmRTPW4Z-o88,65828
|
| 190 |
+
Bio/Entrez/DTDs/JATS-format1-3.ent,sha256=fA8xHFkQVIDdgSZiqlHMWQrAIgC54LyoZDdtyo2pgoU,50729
|
| 191 |
+
Bio/Entrez/DTDs/JATS-funding1-3.ent,sha256=9g9Oy82LEvU0VnDHAv8KvMr6oORqy5XgVWWDA5yNbfk,56436
|
| 192 |
+
Bio/Entrez/DTDs/JATS-journalmeta1-3.ent,sha256=5oy_UmO8kcfA7zsLtFzHodrgbo7f1aBjkVsGPRj1e7Q,29732
|
| 193 |
+
Bio/Entrez/DTDs/JATS-link1-3.ent,sha256=E4gdGlp828-WFUL0NXXtUExeljN295YDZVpls8tXnME,30254
|
| 194 |
+
Bio/Entrez/DTDs/JATS-list1-3.ent,sha256=1Uz0L45ztFPb3zhM_7lKYAJ47mzSu4c5ENUH3J0H5cU,32721
|
| 195 |
+
Bio/Entrez/DTDs/JATS-math1-3.ent,sha256=OwhtspWPZHD8m1vJfwlPMWDLY67nRIftGj6R4XenDSQ,27873
|
| 196 |
+
Bio/Entrez/DTDs/JATS-mathml3-mathmlsetup1-3.ent,sha256=KBCPgQhY765S2Y2b1UuiKf-qJ8U3Lb9UfyLuWYoOw-w,23901
|
| 197 |
+
Bio/Entrez/DTDs/JATS-mathml3-modules1-3.ent,sha256=cBkuhZJBL9lVM93WoDY_txtlBelpM7Zu4Yj3ufPiqvg,16430
|
| 198 |
+
Bio/Entrez/DTDs/JATS-modules1-3.ent,sha256=9fAQVjLO00yN8VVGz9KMUI5qaIhMTkUehAhfsFgITQg,37192
|
| 199 |
+
Bio/Entrez/DTDs/JATS-nlmcitation1-3.ent,sha256=vzO5DNSQHgKuMEaFWx9L3vgnjs3kRQTrabujXm-TFRI,21564
|
| 200 |
+
Bio/Entrez/DTDs/JATS-notat1-3.ent,sha256=YSjM8iWIZxMZnNZU2ESeEpttH4NIN2Pv5bBcqM6gJZ8,20223
|
| 201 |
+
Bio/Entrez/DTDs/JATS-para1-3.ent,sha256=zmfZO66wDCT0L3aEedWfGGE582YXcLtjEKLTCDaht0k,32349
|
| 202 |
+
Bio/Entrez/DTDs/JATS-phrase1-3.ent,sha256=uAnwHD4M_BWYI3nlm0wEvN4t80xRO765zvdZj163exY,33583
|
| 203 |
+
Bio/Entrez/DTDs/JATS-references1-3.ent,sha256=VOQLBPVFE-LBwIjQIqNvJHsDXDxWFq58qTBs3suQLJg,73018
|
| 204 |
+
Bio/Entrez/DTDs/JATS-related-object1-3.ent,sha256=qiW_ere8_UPZC5NO2X5GRWReh4w0MDq-Ji2foz65_BU,21380
|
| 205 |
+
Bio/Entrez/DTDs/JATS-section1-3.ent,sha256=uZFlQNek5V1HwkwQ2Pgz_hiOHza6pEK3afuL6HjBUIM,23664
|
| 206 |
+
Bio/Entrez/DTDs/JATS-xmlspecchars1-3.ent,sha256=NV_F_YdYiVWkq1duVwKlUG2AgcdOgSCllXUQDBjpTLc,24007
|
| 207 |
+
Bio/Entrez/DTDs/MMDB.dtd,sha256=8o_TklOQ25jAD9yjCIy6uDfstP8-XW9RoMPPRWQFlpk,3893
|
| 208 |
+
Bio/Entrez/DTDs/MMDB.mod.dtd,sha256=H4DSNhGf-qKWKXnf5xuEOCklfMxDslvPw9NyLiNHuhM,9382
|
| 209 |
+
Bio/Entrez/DTDs/MMDB_Chemical_graph.dtd,sha256=Yp9KueP5jPkYXwCSrp7vmJmwqfsA8fuVG78SkjTijxA,3908
|
| 210 |
+
Bio/Entrez/DTDs/MMDB_Chemical_graph.mod.dtd,sha256=Q-4oVDmtOIVQ9LmDxUM2-K3Sbqm0D8-ZqeJh6-ucr20,17213
|
| 211 |
+
Bio/Entrez/DTDs/MMDB_Features.dtd,sha256=ZnIklyKSjNpLBlva9FynGHTaTnzu2WtWq9ztwydkQUM,3902
|
| 212 |
+
Bio/Entrez/DTDs/MMDB_Features.mod.dtd,sha256=IE-HX9S9Y3Gyn60rlWC-fh7CtKPLqbSD6LV_Osbres0,28680
|
| 213 |
+
Bio/Entrez/DTDs/MMDB_Structural_model.dtd,sha256=wY_C4hHNch8U15uUdnkz-KfCAFVVmNicgAfcNRJi-RY,3910
|
| 214 |
+
Bio/Entrez/DTDs/MMDB_Structural_model.mod.dtd,sha256=dnc8V4-Sl8FvHwkWSogB5fi7pP7sRp1JFjDn91-l9wk,25075
|
| 215 |
+
Bio/Entrez/DTDs/NCBI_Access.dtd,sha256=aNyJgAUlVxBghaPmGYk7rCDIXVmq70ZP7gFRVLZtIyA,665
|
| 216 |
+
Bio/Entrez/DTDs/NCBI_Access.mod.dtd,sha256=qKGcufgqJMxBImW6GSOW_tTaT1mi1qZgUURhBPvDfj4,1221
|
| 217 |
+
Bio/Entrez/DTDs/NCBI_Biblio.dtd,sha256=4yEPk-cGVfNsPJenNS2pBAqSReVHM3AlNeS1linwaL4,785
|
| 218 |
+
Bio/Entrez/DTDs/NCBI_Biblio.mod.dtd,sha256=YYKdqksAsjrAlJ2yh3nbEMazrHqCASSmnGzjBugih2k,15918
|
| 219 |
+
Bio/Entrez/DTDs/NCBI_BioSource.dtd,sha256=cnHbtmIS-gasedMlLCGCeU3ZYtyCWqbvFbHEde0cdlY,925
|
| 220 |
+
Bio/Entrez/DTDs/NCBI_BioSource.mod.dtd,sha256=pkvjkUm6yzLzgeAqBNdN-q1Kw8OOlMWxfCj-B5CHGLA,4641
|
| 221 |
+
Bio/Entrez/DTDs/NCBI_BioTree.dtd,sha256=K1rYdVK9B6y5etOoIr7nMfTD8nkzL4SwshMBY9vgIiU,671
|
| 222 |
+
Bio/Entrez/DTDs/NCBI_BioTree.mod.dtd,sha256=fmRrhBNPfzAota7-8azgpmSWGVll0_LHE9Jt4tbva3c,2444
|
| 223 |
+
Bio/Entrez/DTDs/NCBI_Blast4.dtd,sha256=XE6zyvOLzcNIUxZRGqJNK3_U2irEHUB9pLYdTH2UtyY,3740
|
| 224 |
+
Bio/Entrez/DTDs/NCBI_Blast4.mod.dtd,sha256=rEsskJxU9R8uJ8Y4fnIWWT2mU6PvgBOrT87r0CxUXoU,39597
|
| 225 |
+
Bio/Entrez/DTDs/NCBI_BlastDL.dtd,sha256=C9GLe5fnXGyY_nikZvrPM56bDihl15k6NyynZxH-IrQ,3507
|
| 226 |
+
Bio/Entrez/DTDs/NCBI_BlastDL.mod.dtd,sha256=zi2_S-CDfO452KQI4VVdAeAD-XLnhlh3oCTlnLOs5_w,4281
|
| 227 |
+
Bio/Entrez/DTDs/NCBI_BlastOutput.dtd,sha256=cdvqJTUh_mkkbVosh_pNMlQtB7zAwhB5dheilvgc4RE,692
|
| 228 |
+
Bio/Entrez/DTDs/NCBI_BlastOutput.mod.dtd,sha256=RqhaX3g_hua-nUpJDFJg-BgSioGZv9sNw-O2zQ7Fqms,6579
|
| 229 |
+
Bio/Entrez/DTDs/NCBI_Cdd.dtd,sha256=CdiGbFqR-DV5tdc8wYh2uq7gXe2V-z9ZWHBsgQSkQRM,4347
|
| 230 |
+
Bio/Entrez/DTDs/NCBI_Cdd.mod.dtd,sha256=5y3dtlMKYPglaz0eyYG4R2Evc56Z1lG6fsKMbEllHZA,28292
|
| 231 |
+
Bio/Entrez/DTDs/NCBI_Cn3d.dtd,sha256=Gvmx4-FWSEv9Yuccw3wdAcQqLDN9kBv7qnlxJSpWwog,4005
|
| 232 |
+
Bio/Entrez/DTDs/NCBI_Cn3d.mod.dtd,sha256=3M65R1gc7Mpmw2sU7KjOXwdZtW06gbexLzLYAVzjy-I,16758
|
| 233 |
+
Bio/Entrez/DTDs/NCBI_Entity.mod.dtd,sha256=2xe54TA_By5tbMPPdFxcocMFUNiaoxK-MJFpfQiF3rY,410
|
| 234 |
+
Bio/Entrez/DTDs/NCBI_Entrez2.dtd,sha256=i3aMulqQN3f3sMQE4dGE9DgdOKyf7HicJFHrb8DU70E,671
|
| 235 |
+
Bio/Entrez/DTDs/NCBI_Entrez2.mod.dtd,sha256=4vIwr4XgQaZMDi_HErtpq2qQPSWRc_Wre4kHQ6nvXUo,21922
|
| 236 |
+
Bio/Entrez/DTDs/NCBI_Entrezgene.dtd,sha256=4dr19jpGDBjYASME3hB3nuNefr3b6-0Yu13NQGZjIrU,3525
|
| 237 |
+
Bio/Entrez/DTDs/NCBI_Entrezgene.mod.dtd,sha256=GO27Y6hhPHANlymRgNW9boI0Xc7Xt9602hG2oBFEVyc,10316
|
| 238 |
+
Bio/Entrez/DTDs/NCBI_FeatDef.dtd,sha256=STKp93xHN6S9hAENQp2knyrDCOt15bFYLwodC6711h4,671
|
| 239 |
+
Bio/Entrez/DTDs/NCBI_FeatDef.mod.dtd,sha256=BocJqizMjC-hxnfyiAUq45MCjHeeCFgUnIeABvyZ06g,2358
|
| 240 |
+
Bio/Entrez/DTDs/NCBI_GBSeq.dtd,sha256=Rt8os_PzMrx1h5pzp_JTau4_480vgjxpmFvBEWcoevI,659
|
| 241 |
+
Bio/Entrez/DTDs/NCBI_GBSeq.mod.dtd,sha256=8i-pBCxZbXUHT-FTRpznGQzXSFEBdjxDyThRFt78ipE,11502
|
| 242 |
+
Bio/Entrez/DTDs/NCBI_Gene.dtd,sha256=lJ8t650BA1NONodHzpqwCmB3o5kL9bgb-wi4WSaSGV8,776
|
| 243 |
+
Bio/Entrez/DTDs/NCBI_Gene.mod.dtd,sha256=H2T7ARAKtJrQEF9QzBXoiGB0pKT2CXAz0TDZ5YC23Vs,2381
|
| 244 |
+
Bio/Entrez/DTDs/NCBI_General.dtd,sha256=tpy7lJG6xQOMqa0T3BJe-6JFZMM697YCM4j4Pj9Ejuk,671
|
| 245 |
+
Bio/Entrez/DTDs/NCBI_General.mod.dtd,sha256=jLoXdJQ4E3nQ1TohN6yyeXuoWnUMruPLXX4md8Xi0gU,8215
|
| 246 |
+
Bio/Entrez/DTDs/NCBI_ID1Access.dtd,sha256=MsUZrJscC5vRHo7Yp1B3mmNg7RwEUW8ImarKYh_kl2c,3629
|
| 247 |
+
Bio/Entrez/DTDs/NCBI_ID1Access.mod.dtd,sha256=qieXojxAkci4Xb9DoODr8gDHJmzYqL3pNeY0rfn9Wa0,5733
|
| 248 |
+
Bio/Entrez/DTDs/NCBI_ID2Access.dtd,sha256=t4yTR8qVNiLvTYYKcSCz7BWnbdTYomz5masiqrXcvMs,3757
|
| 249 |
+
Bio/Entrez/DTDs/NCBI_ID2Access.mod.dtd,sha256=ROwJqyXoOX6vRvbEV2GgXQhMs99-dPVlL_OzzYqPEBc,23205
|
| 250 |
+
Bio/Entrez/DTDs/NCBI_MedArchive.dtd,sha256=NkTQHe7O85nrerhqwtwqWv86XQscMH0x-rnJTJMPoj0,1378
|
| 251 |
+
Bio/Entrez/DTDs/NCBI_MedArchive.mod.dtd,sha256=LocUWbGjILixCPx9R6ejdnkUqDf1mfN4U5S2sCDCAIw,6931
|
| 252 |
+
Bio/Entrez/DTDs/NCBI_Medlars.dtd,sha256=RQg93Tgoex1uX_N-h_6DuUSj52BhJC6mTb80rP62qzA,907
|
| 253 |
+
Bio/Entrez/DTDs/NCBI_Medlars.mod.dtd,sha256=kEb6kwItqxMaFX0EqqZiS5ZZ-00NsSbm2RsMYYysosw,1617
|
| 254 |
+
Bio/Entrez/DTDs/NCBI_Medline.dtd,sha256=uNxb4wBqbRKcfXJpIl4uGX9iGxSCbMl8H1X3fZWoDBA,907
|
| 255 |
+
Bio/Entrez/DTDs/NCBI_Medline.mod.dtd,sha256=8ig5vQcNkB-ewUBH87dL4eZ1jx7PfYBrD5Cu1I-khqc,5757
|
| 256 |
+
Bio/Entrez/DTDs/NCBI_Mim.dtd,sha256=uIMYWrK7Vkz4KybpYIisCcjQasikRgHDb3ejlBjoiJc,647
|
| 257 |
+
Bio/Entrez/DTDs/NCBI_Mim.mod.dtd,sha256=EKfBcoxMQslGMvtu-miMdKTXl4SbrTSt79kxeIUbp_c,8395
|
| 258 |
+
Bio/Entrez/DTDs/NCBI_Mime.dtd,sha256=g5TECscn4CAgkQGhnN2dMYCGWaGEeBxSAbXe6nIemoQ,4461
|
| 259 |
+
Bio/Entrez/DTDs/NCBI_Mime.mod.dtd,sha256=XNM01f8sKIvAjauudb_Sw5mvNuZiKV7LIh4-7sdK2yI,7270
|
| 260 |
+
Bio/Entrez/DTDs/NCBI_ObjPrt.dtd,sha256=7Gq9WPyaC40Z32jSFI1mUSjlhpa4_MoU2j4gk_xKMXk,665
|
| 261 |
+
Bio/Entrez/DTDs/NCBI_ObjPrt.mod.dtd,sha256=RnbU0oDsnOIGZF0BdztML0jQ1Q55wiK2r-8wRjZLmPQ,3131
|
| 262 |
+
Bio/Entrez/DTDs/NCBI_Organism.dtd,sha256=IuGRTHZm4KQkFOpyG403aGfMu6XOJUExHyoJd9iKAtg,796
|
| 263 |
+
Bio/Entrez/DTDs/NCBI_Organism.mod.dtd,sha256=80ahiOw_6ZGGx1Nid4bNeIaDF_Mi9xLkKBd_7MySIu4,5250
|
| 264 |
+
Bio/Entrez/DTDs/NCBI_PCAssay.dtd,sha256=FeKjeUP0QTeI1hZSXetaF3ZVrf5H7K2UaZdrRBW80EA,1519
|
| 265 |
+
Bio/Entrez/DTDs/NCBI_PCAssay.mod.dtd,sha256=y9liJr3Sn_e86C5Pj96wx30zhQbYZ16jUpRM58Ni0QE,31800
|
| 266 |
+
Bio/Entrez/DTDs/NCBI_PCSubstance.dtd,sha256=Fs3zuVllU7A01hMiVIszL0jU8Lbwbt6G9wJ-LvuaJMU,1155
|
| 267 |
+
Bio/Entrez/DTDs/NCBI_PCSubstance.mod.dtd,sha256=iTRVhiSo-ZUbvRRcJCATx61K6Zivll6JBsYEJA1Puhc,43623
|
| 268 |
+
Bio/Entrez/DTDs/NCBI_Project.dtd,sha256=VMcguPNeuLZ1owpGOQJdFSefv1l2jp6sTn4l5wbj63Y,3736
|
| 269 |
+
Bio/Entrez/DTDs/NCBI_Project.mod.dtd,sha256=641_UjWWjD7ZJplh3GeE-4mV0ckW3YvoKTDNgNadhA0,3769
|
| 270 |
+
Bio/Entrez/DTDs/NCBI_Protein.dtd,sha256=XoSIPrbCwWUlr5Na7ErJBZuAzTuCAAZ_XVDOerrK-lU,791
|
| 271 |
+
Bio/Entrez/DTDs/NCBI_Protein.mod.dtd,sha256=XJpQe9rFagTmn8rjm8s5m_pwItuQiHCJy0oO7fndYeo,1791
|
| 272 |
+
Bio/Entrez/DTDs/NCBI_Pub.dtd,sha256=ZzB3n3MApCzPgQYieV3ZH5uTs2bzSHCvq6CUo5Zs6dY,1003
|
| 273 |
+
Bio/Entrez/DTDs/NCBI_Pub.mod.dtd,sha256=pJ8PIYUpeCbYSfe21M2nokaDf8I9N1U3A1e-o6ANUqQ,2700
|
| 274 |
+
Bio/Entrez/DTDs/NCBI_PubMed.dtd,sha256=jfXKsD32O_oU9OkWJ9SfYII1oBXFztsBKZod_z_rZBM,1021
|
| 275 |
+
Bio/Entrez/DTDs/NCBI_PubMed.mod.dtd,sha256=hx45aYybW7oskwnK2glFb8utcYxMZ_TX2ABpNwEH694,1698
|
| 276 |
+
Bio/Entrez/DTDs/NCBI_RNA.dtd,sha256=r9OFvk7A659wRiWVRNoArDnEaaTdtPRHBHQpKROL4vg,3383
|
| 277 |
+
Bio/Entrez/DTDs/NCBI_RNA.mod.dtd,sha256=nmjKpennw3EMJjWoIwH2bmMB61omr6WxZ25RuqjD2Mw,3379
|
| 278 |
+
Bio/Entrez/DTDs/NCBI_Remap.dtd,sha256=BSNg9ciSemrUMYRbhFzEPqCykkH5atXm02SdVTuZOIU,3495
|
| 279 |
+
Bio/Entrez/DTDs/NCBI_Remap.mod.dtd,sha256=KGt0KiHjGCc1sUSD2-N5VpC5wHPrGEIy37p1SP7kLuI,4064
|
| 280 |
+
Bio/Entrez/DTDs/NCBI_Rsite.dtd,sha256=sBQz31SvF5nV5tALDmRfyZs4yrnnc8uTpNvFxqpSfi8,781
|
| 281 |
+
Bio/Entrez/DTDs/NCBI_Rsite.mod.dtd,sha256=5O2ab5claOg5Wf6JNcDaTuKXGIs5QViiymj0BkXwjZo,1044
|
| 282 |
+
Bio/Entrez/DTDs/NCBI_ScoreMat.dtd,sha256=NmgfAx8RaUNGHBaR7DOmEMt2AU0yc7WG9K3tyuOsJSM,3629
|
| 283 |
+
Bio/Entrez/DTDs/NCBI_ScoreMat.mod.dtd,sha256=9Gw8gKkTNFmGTi1584tZZBovlgBLGDWjHZd0a4k_aH4,19503
|
| 284 |
+
Bio/Entrez/DTDs/NCBI_SeqCode.dtd,sha256=wsElBnAymD7ZRSv3ZvnbKjSgk8iGUq9XXuyGxapmJ3k,671
|
| 285 |
+
Bio/Entrez/DTDs/NCBI_SeqCode.mod.dtd,sha256=uUxXZhHSTPAKKk0-4RptG-LRAeJafTscRoEhgBjLMIM,4231
|
| 286 |
+
Bio/Entrez/DTDs/NCBI_SeqTable.dtd,sha256=3KTsu1iq8OItYeHtZjWrae3pvUsP9aGdNf0bbFFr798,3389
|
| 287 |
+
Bio/Entrez/DTDs/NCBI_SeqTable.mod.dtd,sha256=RPllvGSZE0tO-2XEpCho53s9MD45WAnkyh3-JAWz6FE,9912
|
| 288 |
+
Bio/Entrez/DTDs/NCBI_Seq_split.dtd,sha256=X16El8p5HwFPJ4CxEcua2N4SEpKOelWU_JFe67AK628,3634
|
| 289 |
+
Bio/Entrez/DTDs/NCBI_Seq_split.mod.dtd,sha256=qUeN5WBuzbmu89QOz3F7JctUZyKtoPfRN_VGiqsKRUY,11475
|
| 290 |
+
Bio/Entrez/DTDs/NCBI_Seqalign.dtd,sha256=RhPcqjot4vmAR9jSBnGbtJSbA2YTo4_bxaDMR8Ib6Rc,3389
|
| 291 |
+
Bio/Entrez/DTDs/NCBI_Seqalign.mod.dtd,sha256=kT7uwFilHKjmrtXIKT-zrE5286yrYh6dPAoJL37dcVM,15026
|
| 292 |
+
Bio/Entrez/DTDs/NCBI_Seqfeat.dtd,sha256=8KYy27sT11PRnsNSWnF2PZgxacG6Cv8OMi7d86sarpQ,3387
|
| 293 |
+
Bio/Entrez/DTDs/NCBI_Seqfeat.mod.dtd,sha256=dCtWissG5XTffQFX-gthe5iPFDTnnqOGfT-InZYrqlM,19204
|
| 294 |
+
Bio/Entrez/DTDs/NCBI_Seqloc.dtd,sha256=MMew861PLYRaQEIfaRMM-H756AvcCvL0o9HkQpH7s6I,3385
|
| 295 |
+
Bio/Entrez/DTDs/NCBI_Seqloc.mod.dtd,sha256=IX528bn4S5ymU7j2hTz7Yx4jgQ6ElMcW9TX1OB1L-1c,7383
|
| 296 |
+
Bio/Entrez/DTDs/NCBI_Seqres.dtd,sha256=9oAqimMEHPsqKoURtjYNaxgAHLTZtmd7vYzi_CjD3JE,3385
|
| 297 |
+
Bio/Entrez/DTDs/NCBI_Seqres.mod.dtd,sha256=cQDPBXeSofBlWTCwu6uGyOW5G3YJevgaJOsQn9tGV-o,3149
|
| 298 |
+
Bio/Entrez/DTDs/NCBI_Seqset.dtd,sha256=vskX5qkvEHsabozo5iqezsFAQcGQU6xcNXZ3qeeTAFo,3501
|
| 299 |
+
Bio/Entrez/DTDs/NCBI_Seqset.mod.dtd,sha256=8xlQ9oG56eq2BYgKt1GCedpJCF4hWb-0aZEgTEnW8eY,3479
|
| 300 |
+
Bio/Entrez/DTDs/NCBI_Sequence.dtd,sha256=cEI03PDqxwzgDlkMvk-yufxXOkxbmiLBdHfFP3lpAso,3384
|
| 301 |
+
Bio/Entrez/DTDs/NCBI_Sequence.mod.dtd,sha256=ugzzX_6CJi9vDxu-rr-DS7TWRCD7P0nkogrO71SjhpY,26293
|
| 302 |
+
Bio/Entrez/DTDs/NCBI_Submit.dtd,sha256=2jzCuajZbqJvPoTF22NYAqGlvEwWUJrqCwwj9zJw6JE,3617
|
| 303 |
+
Bio/Entrez/DTDs/NCBI_Submit.mod.dtd,sha256=iunQK7Rdu_dJjAL57g9EtrVCeJgN6XBAs1YZBmhOcjc,4130
|
| 304 |
+
Bio/Entrez/DTDs/NCBI_Systems.dtd,sha256=saQQjxO3-Ks3cUNKRQcuH6ohDk7B3pqeLBzwUisEZOY,3379
|
| 305 |
+
Bio/Entrez/DTDs/NCBI_TSeq.dtd,sha256=LPbK2qwPbhLfzCXU7PPkmINBum2m4B4AlQ-eVoBI6Uc,656
|
| 306 |
+
Bio/Entrez/DTDs/NCBI_TSeq.mod.dtd,sha256=zLhRDIfejxx9RPh45qlPjqwDRW3GG4-fwHMSX3kxHgo,1660
|
| 307 |
+
Bio/Entrez/DTDs/NCBI_TxInit.dtd,sha256=vRmESYnpRfducIFeY0II8XETa9Ob7NI4TU2KTq6xVac,1138
|
| 308 |
+
Bio/Entrez/DTDs/NCBI_TxInit.mod.dtd,sha256=tav_Ms5Qjq0gpvoOchuOXWJ60klKNE5oVDs1nw5xIwc,4625
|
| 309 |
+
Bio/Entrez/DTDs/NCBI_Variation.dtd,sha256=eOKRTGIVa7CfavmYAUcIUTIATK22k-pv_VP9zU-ammY,3389
|
| 310 |
+
Bio/Entrez/DTDs/NCBI_Variation.mod.dtd,sha256=jOApQ49K2X-F535-yGDGe6AEXKHwbgI1Xw6o1zW0b_E,27155
|
| 311 |
+
Bio/Entrez/DTDs/NCBI_all.dtd,sha256=e7XeHIev6wThr8s_9uT6Sj7dF502nfGA4AgasRVLWaA,7893
|
| 312 |
+
Bio/Entrez/DTDs/NSE.dtd,sha256=L3mgGXxnzx01qvIBuZOTjsC728XRdSMsCCXmYrh3UX8,625
|
| 313 |
+
Bio/Entrez/DTDs/NSE.mod.dtd,sha256=a9BTqZurN6mGOvZlKNl8oitJrM6dQEugMmCR2-cUHGo,26853
|
| 314 |
+
Bio/Entrez/DTDs/OMSSA.dtd,sha256=elWNHN0VKqkg863NvGWFO4VJOTXI6AosZA1bwQhF7HE,3470
|
| 315 |
+
Bio/Entrez/DTDs/OMSSA.mod.dtd,sha256=zYCmIZ8CvtO1XstO-USMaLB3ncW-dc4Zw4XPYigMcFc,34917
|
| 316 |
+
Bio/Entrez/DTDs/PDB_General.dtd,sha256=2_8JUKHvYtGc5MbAbyHjyFHMInGYJV6AEBDlR_aHxjg,787
|
| 317 |
+
Bio/Entrez/DTDs/PDB_General.mod.dtd,sha256=1Xf6BTjyGHtvdyzp7XhkKzR7PbhjabjpCflNjeskbAw,1815
|
| 318 |
+
Bio/Entrez/DTDs/PIR_General.dtd,sha256=-ud6dN3XRycgCzGBmFSCnq_Ho9hWQQMRZU4EEhdUTWM,3387
|
| 319 |
+
Bio/Entrez/DTDs/PIR_General.mod.dtd,sha256=-6Jr11CVBrhoTEQNzFNNrdpvdNGxxr0HXI9Eu3am-DQ,2076
|
| 320 |
+
Bio/Entrez/DTDs/PRF_General.dtd,sha256=F2YTtdyaRdvDRJwzl7fjtOOjQhLu-uGn6orG0QO2or8,667
|
| 321 |
+
Bio/Entrez/DTDs/PRF_General.mod.dtd,sha256=o658lwkLDcTseWREFx4FNkYOw48KN2O4BMnwXSM2vAs,1535
|
| 322 |
+
Bio/Entrez/DTDs/SP_General.dtd,sha256=pLIfpaLpOVA8MpuwMafaPZIpyDLgufZ3sgH5ZQlE4OY,3386
|
| 323 |
+
Bio/Entrez/DTDs/SP_General.mod.dtd,sha256=DV5zmzP4a089dU9nmr9UoMN6vdsY4_E0zNKCKgus2Og,2375
|
| 324 |
+
Bio/Entrez/DTDs/XHTMLtablesetup.ent,sha256=pMSlJTftz5OwjyC-_grm-L9Lt5SykBZ4K2y75qamIUo,17329
|
| 325 |
+
Bio/Entrez/DTDs/archivearticle.dtd,sha256=MET5vcqH_9QEV5gRIurHth8T9TPNqzu4vJCm7nm5Lr8,51298
|
| 326 |
+
Bio/Entrez/DTDs/archivecustom-classes.ent,sha256=jkaxy1V46gWHJaAPv_cURSxpeZ5GsRjJRC90dT-L_MU,8304
|
| 327 |
+
Bio/Entrez/DTDs/archivecustom-mixes.ent,sha256=do9tIJzVSIakOmoPnqzpuh8Ff8n4SQtQ6MTQNrLM2_8,16646
|
| 328 |
+
Bio/Entrez/DTDs/archivecustom-models.ent,sha256=J6c2_-uusjX9lF3_1BXufKGpUjFs-uowm2UWGY16E4s,38921
|
| 329 |
+
Bio/Entrez/DTDs/archivecustom-modules.ent,sha256=eC_FFu2d1dccqSyqNlAsjC2QGquV5GltHbN7cq-qoeU,6412
|
| 330 |
+
Bio/Entrez/DTDs/articlemeta.ent,sha256=uFAN9ouF3yNmbrDhMpZKyWyCEK6_Vdp92OXh-vYDQHY,98004
|
| 331 |
+
Bio/Entrez/DTDs/backmatter.ent,sha256=9U5ZalynymL5Bnwn7BzEx2nf2A-I4rXn63C-WSRNXIs,15090
|
| 332 |
+
Bio/Entrez/DTDs/bookdoc_100301.dtd,sha256=vFcHye_i6RW6WL4y1md-TCiqVpzGKN9c_-nczdCprys,2645
|
| 333 |
+
Bio/Entrez/DTDs/bookdoc_110101.dtd,sha256=vFcHye_i6RW6WL4y1md-TCiqVpzGKN9c_-nczdCprys,2645
|
| 334 |
+
Bio/Entrez/DTDs/bookdoc_120101.dtd,sha256=vFcHye_i6RW6WL4y1md-TCiqVpzGKN9c_-nczdCprys,2645
|
| 335 |
+
Bio/Entrez/DTDs/bookdoc_130101.dtd,sha256=qPFrpOOa8kYltgzEfAgaQbbr8xQXP4pqPODUGYoDOJ0,2756
|
| 336 |
+
Bio/Entrez/DTDs/bookdoc_140101.dtd,sha256=qPFrpOOa8kYltgzEfAgaQbbr8xQXP4pqPODUGYoDOJ0,2756
|
| 337 |
+
Bio/Entrez/DTDs/bookdoc_150101.dtd,sha256=qPFrpOOa8kYltgzEfAgaQbbr8xQXP4pqPODUGYoDOJ0,2756
|
| 338 |
+
Bio/Entrez/DTDs/chars.ent,sha256=L9fpP6AGUsz2Wo5U6LUb5MdbnhW1sZiC6L7V6XawdiM,21412
|
| 339 |
+
Bio/Entrez/DTDs/common.ent,sha256=lYzWjlvFGDis2_4aZ5USQzbj82ke-0Eufkiq19rcyOI,152388
|
| 340 |
+
Bio/Entrez/DTDs/default-classes.ent,sha256=bKFYECnPymhiNfGAvMzXC23PtCh6JfVOXCs_6DY-O88,33182
|
| 341 |
+
Bio/Entrez/DTDs/default-mixes.ent,sha256=a4Jeda6RyIzAJocDYu8HIwmYGNjtPajAVROOzbNBKxg,19402
|
| 342 |
+
Bio/Entrez/DTDs/display.ent,sha256=-Q_ZSQ6I2h1hyqCY4l5b5fzu-ysJ_ioTrFebMlLAmbw,82067
|
| 343 |
+
Bio/Entrez/DTDs/eInfo_020511.dtd,sha256=aG7lBmF68KNsiNhllCUOq2xzmKPIMIaTDIIYqglQHu8,1655
|
| 344 |
+
Bio/Entrez/DTDs/eLink_090910.dtd,sha256=Xd4mnBGw0Ca8OjCt0PA9kYtJbHMf0HvinZ-0TGS0YVo,2299
|
| 345 |
+
Bio/Entrez/DTDs/eLink_101123.dtd,sha256=KZA8UxqTi-KrRbg7fG0oNYC6kTkP7ZEPl2mjR3GhdUo,2447
|
| 346 |
+
Bio/Entrez/DTDs/ePost_020511.dtd,sha256=VwukI9A1PW-pcy4LB5RRdVGo5mD5DSzHuyBJlahe58g,520
|
| 347 |
+
Bio/Entrez/DTDs/eSearch_020511.dtd,sha256=VsL7ZmztSk9zda9el2g1wyXmcAUycr0h05FIV5gS74c,2392
|
| 348 |
+
Bio/Entrez/DTDs/eSpell.dtd,sha256=_yDVizsLoKjolPHON7ML7gwxLmy3o7XX2ukYe_ith74,736
|
| 349 |
+
Bio/Entrez/DTDs/eSummary_041029.dtd,sha256=jug43errNhwuF6lbH-lN7MBveyaa-WyO1aoQc_z9lno,602
|
| 350 |
+
Bio/Entrez/DTDs/egquery.dtd,sha256=vtauwIAeqdzXhi8fJqy6uf5d_zdFOzZuZvRxeL2uxnE,851
|
| 351 |
+
Bio/Entrez/DTDs/einfo.dtd,sha256=flJk5s4yhvq2W46q0pD0IaUFxoWr2-tBnGdm9T992yg,1980
|
| 352 |
+
Bio/Entrez/DTDs/elink.dtd,sha256=KZA8UxqTi-KrRbg7fG0oNYC6kTkP7ZEPl2mjR3GhdUo,2447
|
| 353 |
+
Bio/Entrez/DTDs/elink_020122.dtd,sha256=rgPalXtmk1Rso0bdRQJ-BffTifYDIH8U4wrqMjV3ZHo,466
|
| 354 |
+
Bio/Entrez/DTDs/epost.dtd,sha256=VwukI9A1PW-pcy4LB5RRdVGo5mD5DSzHuyBJlahe58g,520
|
| 355 |
+
Bio/Entrez/DTDs/esearch.dtd,sha256=l70GlAyVx6cmllr64-CaHZ_hZarRHpjMgKlOfx-qLTg,3337
|
| 356 |
+
Bio/Entrez/DTDs/esummary-v1.dtd,sha256=jug43errNhwuF6lbH-lN7MBveyaa-WyO1aoQc_z9lno,602
|
| 357 |
+
Bio/Entrez/DTDs/esummary_clinvar.dtd,sha256=RP5QjEFbx2KWBmu416JXdLZY2AAmlzztsjoFnISfHUI,8040
|
| 358 |
+
Bio/Entrez/DTDs/esummary_gene.dtd,sha256=C8f6fxR15cYmfhlXoV6PBfxDvUeNdEjQtADLDCfCED8,4163
|
| 359 |
+
Bio/Entrez/DTDs/format.ent,sha256=mOa7_62TyBZK4MpJZg5uA1cf1Ct_npcIP_S-SdE038A,22746
|
| 360 |
+
Bio/Entrez/DTDs/htmltable.dtd,sha256=Wsju2DzjtiVma4L6uHLIsWjgo33tI66XuGHFqPAjUcw,9849
|
| 361 |
+
Bio/Entrez/DTDs/isoamsa.ent,sha256=GH1Jw-gM7KnbalbN-r9vURh8O5mUN6qXH2PNZP3XzXc,11589
|
| 362 |
+
Bio/Entrez/DTDs/isoamsb.ent,sha256=vkg9B1QqbTGdi_k172ht9dPYe2P1fxe0bn-A_FHhp7k,9556
|
| 363 |
+
Bio/Entrez/DTDs/isoamsc.ent,sha256=kkw1k-mOi7niKBtyXei8epMheTJFHDXtdp52KhuD3us,2254
|
| 364 |
+
Bio/Entrez/DTDs/isoamsn.ent,sha256=uaQalCFMcgho83l6Fmclp8pdIAFiIOuZgK3gQhMTCzw,7945
|
| 365 |
+
Bio/Entrez/DTDs/isoamso.ent,sha256=MUriBI5j9FfvAICPOj6-PNwIGnz8mP2UYamc4761b8U,4432
|
| 366 |
+
Bio/Entrez/DTDs/isoamsr.ent,sha256=2vpeKkPl2fr1zOpPpNm6ibxcDMnkTjONXZa5omE2iWU,14133
|
| 367 |
+
Bio/Entrez/DTDs/isobox.ent,sha256=OKYRXaEovQpTA_P3oQklQBQrximz9cAQmUgvjWx3Ug4,3507
|
| 368 |
+
Bio/Entrez/DTDs/isocyr1.ent,sha256=4RZ1xTRw5BypIRbMTUQVGwhF2sRPzFp4w_suYiYjIMI,5257
|
| 369 |
+
Bio/Entrez/DTDs/isocyr2.ent,sha256=o5qiJMRO3kMU-gtjp-k31-FNVn4rL31p0bKkpYYotB8,2457
|
| 370 |
+
Bio/Entrez/DTDs/isodia.ent,sha256=PagdFcNO-RUrdtmLv3jk_X5UpdZmYN_MI2FVOzNH7tY,1473
|
| 371 |
+
Bio/Entrez/DTDs/isogrk1.ent,sha256=2dnwGe2Lc0E8EWD350mZPMVA6oVxSOYouDmtpgrQ3g8,4102
|
| 372 |
+
Bio/Entrez/DTDs/isogrk2.ent,sha256=0KNMYv6j4IuuUXwICFmLCbRb2_D_R2JF5K5dmZm377U,2389
|
| 373 |
+
Bio/Entrez/DTDs/isogrk3.ent,sha256=IYAcnVbnWehXbNVEI6NX7dNB5xGV5_JUrNAGIvfJG5k,3699
|
| 374 |
+
Bio/Entrez/DTDs/isogrk4.ent,sha256=_8ljq43-ZfUbsweyM7r0YRf4Si_g4irr_oDvR3qyOOY,3591
|
| 375 |
+
Bio/Entrez/DTDs/isolat1.ent,sha256=W3kRUuV2drO4xQe8BNJYRGc8NMd1Hz9xtH8W-kJifoY,5199
|
| 376 |
+
Bio/Entrez/DTDs/isolat2.ent,sha256=24pU6kXFzYpHUBxydqiLYOp_pFFgdNR9AxAcES2qXWw,8865
|
| 377 |
+
Bio/Entrez/DTDs/isomfrk.ent,sha256=JimvrtuftcqxXJC5nK1YPHjG2mrwAM66u7U4mSqgHP8,4478
|
| 378 |
+
Bio/Entrez/DTDs/isomopf.ent,sha256=Hz2gfe7th4LvrmrpJIjbSyVQTGm5M5O94IJiCEvD15Q,2522
|
| 379 |
+
Bio/Entrez/DTDs/isomscr.ent,sha256=S8sjXp0WakDU1GV9iQurkUaUwci8_15v2Wn7a9s8ZQY,4557
|
| 380 |
+
Bio/Entrez/DTDs/isonum.ent,sha256=pNQC3pk9UhI7jdM-dpj2GgT47Thiw0pTwqjfcSMAEDY,5816
|
| 381 |
+
Bio/Entrez/DTDs/isopub.ent,sha256=Q3t5NQ4EXQafFMeUFIaslOIbIMo3Y_8OuqYRv74oj2g,6594
|
| 382 |
+
Bio/Entrez/DTDs/isotech.ent,sha256=X1MbZMTwss4Zsis4Tzp0hWtzXSozESNO-GwdqyHz64M,12399
|
| 383 |
+
Bio/Entrez/DTDs/journalmeta.ent,sha256=dzUy8aYJxnIhzOo-89FetC2SdNzw0voECvr4iURLabc,18988
|
| 384 |
+
Bio/Entrez/DTDs/link.ent,sha256=gaeJl3kpZ3_55PqVPDyfKDKDIqJP3DeHblgOpnbT23k,28360
|
| 385 |
+
Bio/Entrez/DTDs/list.ent,sha256=ke4CYbWhohcvZqPauNBIg5DHjgt14YHIC7I7qi21h9o,25663
|
| 386 |
+
Bio/Entrez/DTDs/math.ent,sha256=X-ID1KnAz2HTqrA8uvB2-2-HXRl2W8r8ihZndVVRlp8,18334
|
| 387 |
+
Bio/Entrez/DTDs/mathml-in-pubmed.mod,sha256=JEdFDllSTYme0pm9WjE1hVURKy0T3l1SF4qY_vl9Swo,6820
|
| 388 |
+
Bio/Entrez/DTDs/mathml2-qname-1.mod,sha256=2WYXCQgVtax_DMJE4Wz0nQYiWxt4-m_z4bXTCQVcC4M,12948
|
| 389 |
+
Bio/Entrez/DTDs/mathml2.dtd,sha256=LjOhvDtndW7BQF0QNX2kBSpQpFqlMJFco7vFzZt6cYM,50791
|
| 390 |
+
Bio/Entrez/DTDs/mathml3-qname1.mod,sha256=jQEYIgRVtqAiZb6x9XmOqw5Ewdq1OrqrTYXPvMKvR54,12255
|
| 391 |
+
Bio/Entrez/DTDs/mathml3.dtd,sha256=i8bDuihkXJJ6zm0wKRgN5q6hvEW3B6EMW8OKG-MDRbc,42407
|
| 392 |
+
Bio/Entrez/DTDs/mathmlsetup.ent,sha256=RzVijIpCuL4kHtnef50H_1a0-cBO3A7br72QDQmOrfA,10452
|
| 393 |
+
Bio/Entrez/DTDs/mmlalias.ent,sha256=UtxHlmtlUp5otOF_AU2fHD3go844XrpmAPpvLoD_MTc,37695
|
| 394 |
+
Bio/Entrez/DTDs/mmlextra.ent,sha256=FbyPdxTAfPqtooS9wi9uilpAfmgvPpixayMHxXdRNac,7776
|
| 395 |
+
Bio/Entrez/DTDs/modules.ent,sha256=5Bc42vE99Qe1AWFGxkg2gtTBo0QWEYCC606EcY_5eos,21579
|
| 396 |
+
Bio/Entrez/DTDs/nlm-articleset-2.0.dtd,sha256=jF_rBcGNoIoWfnub1luNiHXJBQqN9o8MFwYwA1FLrLw,35333
|
| 397 |
+
Bio/Entrez/DTDs/nlmcatalogrecordset_170601.dtd,sha256=zVBPd7C12RnewTsqOjHadIr0YvvGqtPJQOwF1mVgttc,12369
|
| 398 |
+
Bio/Entrez/DTDs/nlmcommon_011101.dtd,sha256=TFRRotd5JhjVeEinqvdicxEOs6ok9HHYfAhRH_QF5cs,5839
|
| 399 |
+
Bio/Entrez/DTDs/nlmcommon_080101.dtd,sha256=xWMdAKnEPC6kc8T6xB0paFhED9dLEOtF-TthiyYfmrc,7946
|
| 400 |
+
Bio/Entrez/DTDs/nlmcommon_090101.dtd,sha256=4fnrqF1p_yKMHENZcBrbSLeVnsEPwbHle2OurokOr9c,8638
|
| 401 |
+
Bio/Entrez/DTDs/nlmmedline_011101.dtd,sha256=cUX6PfwkxEPqxuwPNSKk8Vfk9I_JKvabXgPce78eCEM,2053
|
| 402 |
+
Bio/Entrez/DTDs/nlmmedline_080101.dtd,sha256=77exsUHPLwoKRzo0pVgxI8SjJzcFrvdXZyrVldF7Jis,3017
|
| 403 |
+
Bio/Entrez/DTDs/nlmmedline_090101.dtd,sha256=8TtPnfW4afjOcJBoAxtbyalsrSwSmcqEHRnpM46Vj2A,3195
|
| 404 |
+
Bio/Entrez/DTDs/nlmmedlinecitation_011101.dtd,sha256=z4M-4ZKpYAozJH9Z9g3wF-GCrh75ETskz41QAfCnF6Y,6760
|
| 405 |
+
Bio/Entrez/DTDs/nlmmedlinecitation_080101.dtd,sha256=QscN6yGVx51XAiy8erXcDUYif-sf82_P0es35iP6sHc,5001
|
| 406 |
+
Bio/Entrez/DTDs/nlmmedlinecitation_090101.dtd,sha256=0btDyH1pypO0U0lfalZ6QoYpzQ4roOenTc0VF6_2nYA,5262
|
| 407 |
+
Bio/Entrez/DTDs/nlmmedlinecitationset_100101.dtd,sha256=IifD6QlOXTx350NGYvXOJzhjDJX520dgprFpVH9IGWM,9322
|
| 408 |
+
Bio/Entrez/DTDs/nlmmedlinecitationset_100301.dtd,sha256=DPVPngtaWtRLr1q2NyocXA07NemyB38MEZpMPBZYgEc,9618
|
| 409 |
+
Bio/Entrez/DTDs/nlmmedlinecitationset_110101.dtd,sha256=9yPia1GT1mpWB3OBxHzfZG2Xl3c2sv_mazO-KseOZdo,9308
|
| 410 |
+
Bio/Entrez/DTDs/nlmmedlinecitationset_120101.dtd,sha256=jC6j_N1lYmVncbfyIOK-OneNvKaOqufeYoN58SYKKAk,8829
|
| 411 |
+
Bio/Entrez/DTDs/nlmmedlinecitationset_130101.dtd,sha256=L9mUro3WB95nv_yu1ANnzW1tySHbTSzLhX6fur-PgoY,8995
|
| 412 |
+
Bio/Entrez/DTDs/nlmmedlinecitationset_130501.dtd,sha256=WzNSa95vM2mHY2EqINOpTgT7wFU5lcSqEbF_Mc-UBXc,9033
|
| 413 |
+
Bio/Entrez/DTDs/nlmmedlinecitationset_140101.dtd,sha256=bfpnLgztqwGHpayi8B1BOnW4L_ZMGIignFitoyGwuzU,9112
|
| 414 |
+
Bio/Entrez/DTDs/nlmmedlinecitationset_150101.dtd,sha256=HW9VKNWFMq8rkzeS8HeaWjwrh2fkKJNzpmwcpJR4cZQ,8947
|
| 415 |
+
Bio/Entrez/DTDs/nlmserials_080101.dtd,sha256=Bqg_xRNPDFzaZRKSCPyoW5vRHnJHyrS2fOeKFl_4aJI,5672
|
| 416 |
+
Bio/Entrez/DTDs/nlmserials_100101.dtd,sha256=odmX_CV_rHEq0IOsX1psIdJ2ShqvDHlYjPUdSv3SO7o,6703
|
| 417 |
+
Bio/Entrez/DTDs/nlmsharedcatcit_080101.dtd,sha256=1ze4V86srXps-XNepcgKeWMOK1mte0MT0KkgJ98ylBc,3185
|
| 418 |
+
Bio/Entrez/DTDs/nlmsharedcatcit_090101.dtd,sha256=7cUZKV1Pysy5q64byPx9OsOQ3lDmlbDRXnJwRxIC828,3317
|
| 419 |
+
Bio/Entrez/DTDs/notat.ent,sha256=8T3TF0GSFDrlpY_l4ekQlxOUDlijaIoUxi9-H7ahkrs,9656
|
| 420 |
+
Bio/Entrez/DTDs/para.ent,sha256=dL0ilkXsSkhRk9qXS2jesdvNqvBYTHpG7lPckDLB5jg,23807
|
| 421 |
+
Bio/Entrez/DTDs/phrase.ent,sha256=DAkQer5pKPRhDJ9x-ymZyJlvHkYexH8X8V2yjaboG2s,15750
|
| 422 |
+
Bio/Entrez/DTDs/pmc-1.dtd,sha256=XqrPQO-uHRN3spjNGBM3lsqHtczbZmL9RPTGZYGvxTc,25142
|
| 423 |
+
Bio/Entrez/DTDs/pubmed_020114.dtd,sha256=IAGfdULpjjPODM-484qKyuXuXB2TwZbLuIqLUmOseNE,2714
|
| 424 |
+
Bio/Entrez/DTDs/pubmed_080101.dtd,sha256=CkV3XF9NEkA_lYaFwWaRbvPH26mOQi5RMfmOaaSd2-U,3045
|
| 425 |
+
Bio/Entrez/DTDs/pubmed_090101.dtd,sha256=zHzlgy2wCVoj0tq43VBKgQaWn-7ng1c5HtMgSM8ejiU,3059
|
| 426 |
+
Bio/Entrez/DTDs/pubmed_100101.dtd,sha256=ELG9N5PSni2xixzYk3wIGog-2BW6Sv7nq3npxuShg7Q,3126
|
| 427 |
+
Bio/Entrez/DTDs/pubmed_100301.dtd,sha256=LGYfgB3eC_Xp-bVRnufJT6AunEPNmnIH1PZgSll-dss,3434
|
| 428 |
+
Bio/Entrez/DTDs/pubmed_110101.dtd,sha256=v3RFxJfGLCmYYS5XO4FZcIFmoGe0BlfY2I8PtAZmLgI,3434
|
| 429 |
+
Bio/Entrez/DTDs/pubmed_120101.dtd,sha256=Ldmtv03z9o_IGFjjntrCcNMvYlEhr4qNje6ZDyVxF_M,3434
|
| 430 |
+
Bio/Entrez/DTDs/pubmed_130101.dtd,sha256=tCV7OTohcjx4BotvD1YuFeoxXuAcEuRVlYu7qNuCsoM,3434
|
| 431 |
+
Bio/Entrez/DTDs/pubmed_130501.dtd,sha256=gse-pDXqfgfBWrXq5YUSlbI3-Uo2I_kWcxAYvDIOABk,3445
|
| 432 |
+
Bio/Entrez/DTDs/pubmed_140101.dtd,sha256=MGQK_6agHEmmwLIsKzzuPmbdJ88ZngdX-tmgqDQ3AGM,3445
|
| 433 |
+
Bio/Entrez/DTDs/pubmed_150101.dtd,sha256=4FsJ1veegs8frYmQV7BBdqY2q8-bDV8I4r_7CBM4P_Y,3445
|
| 434 |
+
Bio/Entrez/DTDs/pubmed_180101.dtd,sha256=ZeC8wT6YZTNGD5LaTx1c9nhXpXGFsjqdu8rHB5sVEkc,13062
|
| 435 |
+
Bio/Entrez/DTDs/pubmed_180601.dtd,sha256=ok38f9usTiSV-0_iQcOetobtQS5cHonNWQOgM_Pbb6U,13869
|
| 436 |
+
Bio/Entrez/DTDs/pubmed_190101.dtd,sha256=84BRtNsD6GjVDS7WKSNl1lC2d5PmmwN4BwDwI1LanCM,14576
|
| 437 |
+
Bio/Entrez/DTDs/pubmed_230101.dtd,sha256=TkZv5Njde4wzImi4_aQ9-MOtYqVCRLqjySutwazQaCw,14297
|
| 438 |
+
Bio/Entrez/DTDs/pubmed_240101.dtd,sha256=P520LjqcFh41LY5zAmNxiB4Kjc-Bh-70zPJk_MJLiuM,14624
|
| 439 |
+
Bio/Entrez/DTDs/pubmed_250101.dtd,sha256=jJo8UgJZu3nKh8BAIWcetH_TAGRqoYE72ITEGCF9FXM,14430
|
| 440 |
+
Bio/Entrez/DTDs/references.ent,sha256=VpAcxvqPMQxXGCd0znOX8xAZTKF3nLxcx_0oChQLa3A,40015
|
| 441 |
+
Bio/Entrez/DTDs/section.ent,sha256=DV-jbZDiKokNZNVmCwgeqwYwYjA4Ljsvqei9MUOfjRk,13173
|
| 442 |
+
Bio/Entrez/DTDs/taxon.dtd,sha256=fecg7a0W5zvdn3E2YLbucD6jVV5M1Z2iecyuRfYZ5ZM,4003
|
| 443 |
+
Bio/Entrez/DTDs/xhtml-inlstyle-1.mod,sha256=gbwS95pApcQVeLn9MTH9csLQK11OyNGBkcZDUAbc3V4,1141
|
| 444 |
+
Bio/Entrez/DTDs/xhtml-table-1.mod,sha256=Oetem0tGJ9dBbfi7A5TxAHEd0lL7fPehMW-AzNeQewk,9503
|
| 445 |
+
Bio/Entrez/DTDs/xmlspecchars.ent,sha256=6hVOLeK0wKOtEy7qJqh1-b_z0a_GBRZL7PBKIn8eQpw,13595
|
| 446 |
+
Bio/Entrez/Parser.py,sha256=24E47QFOlNBiNyoBJxldXc0raSta7nMhlbvRQz085uo,46942
|
| 447 |
+
Bio/Entrez/XSDs/IPGReportSet.xsd,sha256=N71qfT3YknPSaTnHdx8VSAPzrDkcuAqQpILeQLJ3bTk,3536
|
| 448 |
+
Bio/Entrez/XSDs/NCBI_BlastOutput2.mod.xsd,sha256=AAMj-wM5qk6ye-LMlTb-DQN60l5Ka1_gJ12_E_U1BPk,12059
|
| 449 |
+
Bio/Entrez/XSDs/NCBI_BlastOutput2.xsd,sha256=yox6a4NST2jKr4hsq6E1NQSKy9m3i_MIbt6ipu3qlnQ,774
|
| 450 |
+
Bio/Entrez/__init__.py,sha256=8e7KjzCrun1wJKtcmhmOfgXvre3eAocdcCRCBeUXkeY,29644
|
| 451 |
+
Bio/Entrez/__pycache__/Parser.cpython-312.pyc,,
|
| 452 |
+
Bio/Entrez/__pycache__/__init__.cpython-312.pyc,,
|
| 453 |
+
Bio/ExPASy/Enzyme.py,sha256=sdjDF6_Da2YnELLRaiQNTltVpUZBHnthHSecDtenyIk,4570
|
| 454 |
+
Bio/ExPASy/Prodoc.py,sha256=Ql5Esgo0rmOiYXvscuznFCdErITLndWFAQdggDnYp88,5009
|
| 455 |
+
Bio/ExPASy/Prosite.py,sha256=X3iA6M2uZNKaGDAEQQiqBpYdyOD11P091fZII6ARYB0,11495
|
| 456 |
+
Bio/ExPASy/ScanProsite.py,sha256=4EgmQTq4YTfilavG1aYUBHK3wZw3B0Vx7fMEhUUaGBY,5284
|
| 457 |
+
Bio/ExPASy/__init__.py,sha256=3Y5zdyliQ21IRxVbKvl6mBPaIKhIK3yoi5MsQ8k7X-E,4357
|
| 458 |
+
Bio/ExPASy/__pycache__/Enzyme.cpython-312.pyc,,
|
| 459 |
+
Bio/ExPASy/__pycache__/Prodoc.cpython-312.pyc,,
|
| 460 |
+
Bio/ExPASy/__pycache__/Prosite.cpython-312.pyc,,
|
| 461 |
+
Bio/ExPASy/__pycache__/ScanProsite.cpython-312.pyc,,
|
| 462 |
+
Bio/ExPASy/__pycache__/__init__.cpython-312.pyc,,
|
| 463 |
+
Bio/ExPASy/__pycache__/cellosaurus.cpython-312.pyc,,
|
| 464 |
+
Bio/ExPASy/cellosaurus.py,sha256=Uqy0t9crZIhJDRMPZn7g-rtnDESvubhhjE9mZ1Y0-1U,6670
|
| 465 |
+
Bio/File.py,sha256=fUMuPiu1Ga6lA2t9uUuKNYUjbxhWFue83L55rOmW9aY,24702
|
| 466 |
+
Bio/GenBank/Record.py,sha256=SFyMTwtna69VKJJYtXT_7G6Bjb7vhMvSmq2vR0cd7fk,23278
|
| 467 |
+
Bio/GenBank/Scanner.py,sha256=5QcncBnSs5DaY6zGrUPbyVjRoEJHNr4ZROadxzONj2g,87392
|
| 468 |
+
Bio/GenBank/__init__.py,sha256=P0kTRl-KHM3Jap2lY3fwxdU9WjE2MMqDqeol7s-V_uE,43718
|
| 469 |
+
Bio/GenBank/__pycache__/Record.cpython-312.pyc,,
|
| 470 |
+
Bio/GenBank/__pycache__/Scanner.cpython-312.pyc,,
|
| 471 |
+
Bio/GenBank/__pycache__/__init__.cpython-312.pyc,,
|
| 472 |
+
Bio/GenBank/__pycache__/utils.cpython-312.pyc,,
|
| 473 |
+
Bio/GenBank/utils.py,sha256=_c9Po0p-Ay1xqcMmC5yaY2KwokMdZqivB-kME5-SqE4,2229
|
| 474 |
+
Bio/Geo/Record.py,sha256=EX7prbB4ZpXvE8gCu7vg7GDTt8IfTW8CrgjyIpUn650,2972
|
| 475 |
+
Bio/Geo/__init__.py,sha256=gfdjcBv6lQ5sab212l-jCzPuK4KTHeZQJDeV8pAq-sg,2176
|
| 476 |
+
Bio/Geo/__pycache__/Record.cpython-312.pyc,,
|
| 477 |
+
Bio/Geo/__pycache__/__init__.cpython-312.pyc,,
|
| 478 |
+
Bio/Graphics/BasicChromosome.py,sha256=gvnILx6mhsH_XYbM8D3el5dXJ8UodLLtBSCSTcIyvNs,31526
|
| 479 |
+
Bio/Graphics/ColorSpiral.py,sha256=1RllyUiU0f_WZ1J229NYqFo_aYp2VDaB_qcDacgGVkE,7349
|
| 480 |
+
Bio/Graphics/Comparative.py,sha256=63R_JmAdrcR0p-PL8nNBnNcT_QOM2KGQu--dNv1Yn2o,6632
|
| 481 |
+
Bio/Graphics/DisplayRepresentation.py,sha256=Tjn1fPHS0FOcooQ4M0h0EiAF6V6eePGfUZdm_tZqA7k,6749
|
| 482 |
+
Bio/Graphics/Distribution.py,sha256=Mg4hS50WbYc3CDmXySdYZE_gz02JSvvica9Zn05ZD2g,9301
|
| 483 |
+
Bio/Graphics/GenomeDiagram/_AbstractDrawer.py,sha256=i4FWKAszkBMAdLLWhYKZiHA5NyGF7QBwPEUL1sXl9gE,18539
|
| 484 |
+
Bio/Graphics/GenomeDiagram/_CircularDrawer.py,sha256=h8o1OIpHkBPElCtyBtfwq1urghXFsLJOiqti2p0WhJE,68783
|
| 485 |
+
Bio/Graphics/GenomeDiagram/_Colors.py,sha256=nw6Eswcq6OwVQZ32WkvQAp7ng7n0RhHclBoV1eBYvPU,9678
|
| 486 |
+
Bio/Graphics/GenomeDiagram/_CrossLink.py,sha256=dwUCIZYVTt1dFepzY4qWP86GEPJ5zrIFXGiJEjM_JuA,3309
|
| 487 |
+
Bio/Graphics/GenomeDiagram/_Diagram.py,sha256=30SLEWndoRgs657YERQB6EQnF3FvTjMqrrA2zA3Xf1o,15633
|
| 488 |
+
Bio/Graphics/GenomeDiagram/_Feature.py,sha256=oW6LPMPIrDtwjhMaeYk7mPyjDC-2MeZLx1nXxzTwHMk,8064
|
| 489 |
+
Bio/Graphics/GenomeDiagram/_FeatureSet.py,sha256=I3N2nIo3LWUmHhY2X5kDNeZDFcvKIg-rtSFTAtgBkZ4,7774
|
| 490 |
+
Bio/Graphics/GenomeDiagram/_Graph.py,sha256=LpzVWx9XUgn2A6_77uG-nuGcSWhgUYGUXjxaRyPWO1s,6838
|
| 491 |
+
Bio/Graphics/GenomeDiagram/_GraphSet.py,sha256=evDWezSVo_9MXt2W1fSp9k7QxonRURG5PBgWorLKKlY,5634
|
| 492 |
+
Bio/Graphics/GenomeDiagram/_LinearDrawer.py,sha256=TeSFV9lD7xHqp4y1C305BDK_U3TG1EGZAe9TNl5hSO8,63449
|
| 493 |
+
Bio/Graphics/GenomeDiagram/_Track.py,sha256=qshNMFoxMFHKh2HHLaoqZP7kZ_RXmVcvxhWFppOQUh0,11662
|
| 494 |
+
Bio/Graphics/GenomeDiagram/__init__.py,sha256=KtXssbsNzeG4tYwgwPua5f9ydF0kp2UX_c2K_qypHiU,1172
|
| 495 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_AbstractDrawer.cpython-312.pyc,,
|
| 496 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_CircularDrawer.cpython-312.pyc,,
|
| 497 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_Colors.cpython-312.pyc,,
|
| 498 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_CrossLink.cpython-312.pyc,,
|
| 499 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_Diagram.cpython-312.pyc,,
|
| 500 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_Feature.cpython-312.pyc,,
|
| 501 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_FeatureSet.cpython-312.pyc,,
|
| 502 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_Graph.cpython-312.pyc,,
|
| 503 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_GraphSet.cpython-312.pyc,,
|
| 504 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_LinearDrawer.cpython-312.pyc,,
|
| 505 |
+
Bio/Graphics/GenomeDiagram/__pycache__/_Track.cpython-312.pyc,,
|
| 506 |
+
Bio/Graphics/GenomeDiagram/__pycache__/__init__.cpython-312.pyc,,
|
| 507 |
+
Bio/Graphics/KGML_vis.py,sha256=OkI6oIkzQeVsxXk-RyzmIZM5BVij5APKcODE_YKPkeQ,17637
|
| 508 |
+
Bio/Graphics/__init__.py,sha256=43mq7-w22n_AGlQkOqqrr6o--DoETbevHRwgHHDQNLA,3300
|
| 509 |
+
Bio/Graphics/__pycache__/BasicChromosome.cpython-312.pyc,,
|
| 510 |
+
Bio/Graphics/__pycache__/ColorSpiral.cpython-312.pyc,,
|
| 511 |
+
Bio/Graphics/__pycache__/Comparative.cpython-312.pyc,,
|
| 512 |
+
Bio/Graphics/__pycache__/DisplayRepresentation.cpython-312.pyc,,
|
| 513 |
+
Bio/Graphics/__pycache__/Distribution.cpython-312.pyc,,
|
| 514 |
+
Bio/Graphics/__pycache__/KGML_vis.cpython-312.pyc,,
|
| 515 |
+
Bio/Graphics/__pycache__/__init__.cpython-312.pyc,,
|
| 516 |
+
Bio/HMM/__init__.py,sha256=okwrOJ6vAlLIJrAUERUWS31R8rN1EUQvcXlUr0T1FQo,283
|
| 517 |
+
Bio/HMM/__pycache__/__init__.cpython-312.pyc,,
|
| 518 |
+
Bio/KEGG/Compound/__init__.py,sha256=Ezkr17o6MC_3SrziqWzvjhTgAH3-ZxuRbSNh-fQFrqU,5470
|
| 519 |
+
Bio/KEGG/Compound/__pycache__/__init__.cpython-312.pyc,,
|
| 520 |
+
Bio/KEGG/Enzyme/__init__.py,sha256=2vdcLAeM3tnuUH6rH_musgToOm14hScEtrBSy4MA8f8,11185
|
| 521 |
+
Bio/KEGG/Enzyme/__pycache__/__init__.cpython-312.pyc,,
|
| 522 |
+
Bio/KEGG/Gene/__init__.py,sha256=bRw6lqK2qgU1-oSoJgmmM_crsG4qfbQFoIuJJorTdno,4288
|
| 523 |
+
Bio/KEGG/Gene/__pycache__/__init__.cpython-312.pyc,,
|
| 524 |
+
Bio/KEGG/KGML/KGML_parser.py,sha256=CFuPIqGfoUdzbyyO7AYjq1dOboKuEfxmJPukiClNp5E,6347
|
| 525 |
+
Bio/KEGG/KGML/KGML_pathway.py,sha256=yNohdxjYB3aByjc5ncrfpeCU3jtb5J98SXeEszOU300,27600
|
| 526 |
+
Bio/KEGG/KGML/__init__.py,sha256=ukRQD0nvdi63W3GSkea6JBvESgr-glQK-_0If6CdDro,516
|
| 527 |
+
Bio/KEGG/KGML/__pycache__/KGML_parser.cpython-312.pyc,,
|
| 528 |
+
Bio/KEGG/KGML/__pycache__/KGML_pathway.cpython-312.pyc,,
|
| 529 |
+
Bio/KEGG/KGML/__pycache__/__init__.cpython-312.pyc,,
|
| 530 |
+
Bio/KEGG/Map/__init__.py,sha256=1fC5kUk2y3gBg8U0amU03LBQzk0n5-i9WRAnAizSOM0,1642
|
| 531 |
+
Bio/KEGG/Map/__pycache__/__init__.cpython-312.pyc,,
|
| 532 |
+
Bio/KEGG/REST.py,sha256=Var39F7iAs4w6EchIIjteksdnCgNjAxMeUXG6J8d2TE,11302
|
| 533 |
+
Bio/KEGG/__init__.py,sha256=R9b11HHpx7j_5R1Zh3RcqYVn18Ge0fQn5ecdXNP681g,3038
|
| 534 |
+
Bio/KEGG/__pycache__/REST.cpython-312.pyc,,
|
| 535 |
+
Bio/KEGG/__pycache__/__init__.cpython-312.pyc,,
|
| 536 |
+
Bio/Medline/__init__.py,sha256=v8wuyY_BI2HS_XPrR_wiZdTgQG-kmTUYIKtZamVV058,6272
|
| 537 |
+
Bio/Medline/__pycache__/__init__.cpython-312.pyc,,
|
| 538 |
+
Bio/NMR/NOEtools.py,sha256=ivb_vEtACYGL3rmTsUL-gQEwbMuV_vfFV-pcSd-2EdA,3353
|
| 539 |
+
Bio/NMR/__init__.py,sha256=Nh9dRG4raRrtUIZt1NA_7hQ0IylsA8Wt7iPlOfHiZqc,332
|
| 540 |
+
Bio/NMR/__pycache__/NOEtools.cpython-312.pyc,,
|
| 541 |
+
Bio/NMR/__pycache__/__init__.cpython-312.pyc,,
|
| 542 |
+
Bio/NMR/__pycache__/xpktools.cpython-312.pyc,,
|
| 543 |
+
Bio/NMR/xpktools.py,sha256=x0pZrA8aE2Ux9b3WLooMMypy2y1yYMVA8w1K1oOK-SM,9274
|
| 544 |
+
Bio/Nexus/Nexus.py,sha256=bAcaX1GtllyPnYXPRS9XfPInbEX5HevpYROxkncGCWI,83879
|
| 545 |
+
Bio/Nexus/Nodes.py,sha256=_4ISSokpZzxsl8ttvC6TKsufDRKkzqCtvm7R5rp3IFc,5828
|
| 546 |
+
Bio/Nexus/StandardData.py,sha256=Oa3cGxQ7a4tbNHUny9s6f4rY-4R1PjnwIX9az6B-MWA,3996
|
| 547 |
+
Bio/Nexus/Trees.py,sha256=U4AWSE1Quj-xHDyzp2SXFN_0uHKP-tj9ui7HZrh-Los,40311
|
| 548 |
+
Bio/Nexus/__init__.py,sha256=ngZ2q80ta5PB-RTcmHVpf3HMlpIKN3uLBB3f_z2648g,388
|
| 549 |
+
Bio/Nexus/__pycache__/Nexus.cpython-312.pyc,,
|
| 550 |
+
Bio/Nexus/__pycache__/Nodes.cpython-312.pyc,,
|
| 551 |
+
Bio/Nexus/__pycache__/StandardData.cpython-312.pyc,,
|
| 552 |
+
Bio/Nexus/__pycache__/Trees.cpython-312.pyc,,
|
| 553 |
+
Bio/Nexus/__pycache__/__init__.cpython-312.pyc,,
|
| 554 |
+
Bio/Nexus/cnexus.c,sha256=LWFHaUPHuaH44gx6m2u3oY0tp7KL1HciHhWjxPa5ojY,3741
|
| 555 |
+
Bio/Nexus/cnexus.cpython-312-darwin.so,sha256=nAm_WSg7yWo1Fu_EOuF15vcBaOw8RDKYdOTQlS6KMhg,50880
|
| 556 |
+
Bio/PDB/AbstractPropertyMap.py,sha256=4xW0sC-UUBFfqtcUsMYcA7XmMGfkkKPhvw_U6EDlw6g,4080
|
| 557 |
+
Bio/PDB/Atom.py,sha256=rE26TKAU-fNkjgEtaIhfmJkOksw1Cdrv7T1xi-hgfzs,20424
|
| 558 |
+
Bio/PDB/Chain.py,sha256=l1EZNpHNERvbqnUN2pfYX6f2Ho1Zyz_Y0cQjvvG_wzM,7101
|
| 559 |
+
Bio/PDB/DSSP.py,sha256=V-dZoMQXlgr5XJ4GD7QnU_XI9ZzjjOsx-1C7qDlwUMI,20210
|
| 560 |
+
Bio/PDB/Dice.py,sha256=6i-rMhTr1GCzosccoOnrimApJN28N20lLW8A9t_CKFQ,2315
|
| 561 |
+
Bio/PDB/Entity.py,sha256=SH0PEO3oS0wLkSpyEIvoKDDIZ_NE28CC_gsZfrHdR2I,18506
|
| 562 |
+
Bio/PDB/FragmentMapper.py,sha256=2bM9vuNvbHnjmZcuDIGTYePIneOggsK_2zdh9AfXrzw,9621
|
| 563 |
+
Bio/PDB/HSExposure.py,sha256=uNC36Byn5tW-fMttn7DTqLxtXBpYS2aNIh6q1omTR2c,11337
|
| 564 |
+
Bio/PDB/MMCIF2Dict.py,sha256=C0GGBvX-qQpIQfVLlBXr1zUWd_CmcMVenE7EqvcqPYo,5063
|
| 565 |
+
Bio/PDB/MMCIFParser.py,sha256=0NFbbSDi3jCt3Nl9VAJcMBAdHvciZCXif1iKHjwDe7M,25471
|
| 566 |
+
Bio/PDB/Model.py,sha256=9jlTAdzmpdAm10BGCratNJCnsEklaRcqOGIpkxUdscY,2358
|
| 567 |
+
Bio/PDB/NACCESS.py,sha256=uoevihcnPjdi-KAoncAS2reDQBXrUcNUQPULqOuUCqQ,7219
|
| 568 |
+
Bio/PDB/NeighborSearch.py,sha256=3HKwxAuvcznxflAImQzAeREtNbfKKV7aqXUPHNalOsk,4490
|
| 569 |
+
Bio/PDB/PDBExceptions.py,sha256=Zg5aQWKFIDFHOd5Ynh65auHJXp967PWSIbqaEzL10Iw,934
|
| 570 |
+
Bio/PDB/PDBIO.py,sha256=cb5hVhWLaVGAVXquZosDTJCAXZGzyN1u7hfgoHWYSAo,16445
|
| 571 |
+
Bio/PDB/PDBList.py,sha256=rj315ZxYZXMiqJo12K0r2dItSf0754Ff0-K8-ezcKlc,31347
|
| 572 |
+
Bio/PDB/PDBMLParser.py,sha256=3hOtdAOSXPZf9x21sIr6CmBPK4YXZsqFHBDooRF_mts,6858
|
| 573 |
+
Bio/PDB/PDBParser.py,sha256=u0D-TlIrjyMy0rLpRFyl5lf4eTFnh6VPl5tgM7T5brc,17185
|
| 574 |
+
Bio/PDB/PICIO.py,sha256=T2ULeIhoq9VA3GqnKGKUlWGmGiAhXMlDSRpNa8OZE6Y,41280
|
| 575 |
+
Bio/PDB/PSEA.py,sha256=lnLfeYNItavkJzE8YNwp5M9JrPCbnentURk4yuCw7ZQ,3141
|
| 576 |
+
Bio/PDB/Polypeptide.py,sha256=iD3f4MG6y5h1UfbtMZrwEBpWRQCiGe6FpycaFJCBreA,14220
|
| 577 |
+
Bio/PDB/Residue.py,sha256=586-gp0Psi1wkciYpUW4yZBu8R2WEJNedv59iBfz3Ag,6395
|
| 578 |
+
Bio/PDB/ResidueDepth.py,sha256=5_59-WIdwTnulnVlm33JLIe7sBi8Um97BvtYhViLAu4,22252
|
| 579 |
+
Bio/PDB/SASA.py,sha256=8IPAOSc_4Uhghpwwr_n0hkKkxZMfQ8sLCJ9OxkTJT08,8505
|
| 580 |
+
Bio/PDB/SCADIO.py,sha256=o9hReAxg3xhQlZbDPWIa0npjxCKnDzcV58fKsXenCLs,35847
|
| 581 |
+
Bio/PDB/Selection.py,sha256=EnmaQGGPyIbz4rOnnUlAxeMmuHSOxsZzRIOW020wRgI,2589
|
| 582 |
+
Bio/PDB/Structure.py,sha256=-9aSoKFlx9p7sGw9hAz2P_bGFOX1Q86Acolty8ljvds,2147
|
| 583 |
+
Bio/PDB/StructureAlignment.py,sha256=CLyJT66r-zMyRaAZ4OJb42YmfBjimCW9mwYwzQScWU4,7021
|
| 584 |
+
Bio/PDB/StructureBuilder.py,sha256=zTPwI3_S_a8SMvlXpnDxNmCp01J0hKsNSvrZcsICidA,12137
|
| 585 |
+
Bio/PDB/Superimposer.py,sha256=GDH3mSgA3P6v7RNdiOtwHRrCJpCIdHhKv1eN24T-9tY,1943
|
| 586 |
+
Bio/PDB/__init__.py,sha256=KIynAABv3lQBZRnOje4YlOyUgK6I8QT9xCbUS-2_bLw,3092
|
| 587 |
+
Bio/PDB/__pycache__/AbstractPropertyMap.cpython-312.pyc,,
|
| 588 |
+
Bio/PDB/__pycache__/Atom.cpython-312.pyc,,
|
| 589 |
+
Bio/PDB/__pycache__/Chain.cpython-312.pyc,,
|
| 590 |
+
Bio/PDB/__pycache__/DSSP.cpython-312.pyc,,
|
| 591 |
+
Bio/PDB/__pycache__/Dice.cpython-312.pyc,,
|
| 592 |
+
Bio/PDB/__pycache__/Entity.cpython-312.pyc,,
|
| 593 |
+
Bio/PDB/__pycache__/FragmentMapper.cpython-312.pyc,,
|
| 594 |
+
Bio/PDB/__pycache__/HSExposure.cpython-312.pyc,,
|
| 595 |
+
Bio/PDB/__pycache__/MMCIF2Dict.cpython-312.pyc,,
|
| 596 |
+
Bio/PDB/__pycache__/MMCIFParser.cpython-312.pyc,,
|
| 597 |
+
Bio/PDB/__pycache__/Model.cpython-312.pyc,,
|
| 598 |
+
Bio/PDB/__pycache__/NACCESS.cpython-312.pyc,,
|
| 599 |
+
Bio/PDB/__pycache__/NeighborSearch.cpython-312.pyc,,
|
| 600 |
+
Bio/PDB/__pycache__/PDBExceptions.cpython-312.pyc,,
|
| 601 |
+
Bio/PDB/__pycache__/PDBIO.cpython-312.pyc,,
|
| 602 |
+
Bio/PDB/__pycache__/PDBList.cpython-312.pyc,,
|
| 603 |
+
Bio/PDB/__pycache__/PDBMLParser.cpython-312.pyc,,
|
| 604 |
+
Bio/PDB/__pycache__/PDBParser.cpython-312.pyc,,
|
| 605 |
+
Bio/PDB/__pycache__/PICIO.cpython-312.pyc,,
|
| 606 |
+
Bio/PDB/__pycache__/PSEA.cpython-312.pyc,,
|
| 607 |
+
Bio/PDB/__pycache__/Polypeptide.cpython-312.pyc,,
|
| 608 |
+
Bio/PDB/__pycache__/Residue.cpython-312.pyc,,
|
| 609 |
+
Bio/PDB/__pycache__/ResidueDepth.cpython-312.pyc,,
|
| 610 |
+
Bio/PDB/__pycache__/SASA.cpython-312.pyc,,
|
| 611 |
+
Bio/PDB/__pycache__/SCADIO.cpython-312.pyc,,
|
| 612 |
+
Bio/PDB/__pycache__/Selection.cpython-312.pyc,,
|
| 613 |
+
Bio/PDB/__pycache__/Structure.cpython-312.pyc,,
|
| 614 |
+
Bio/PDB/__pycache__/StructureAlignment.cpython-312.pyc,,
|
| 615 |
+
Bio/PDB/__pycache__/StructureBuilder.cpython-312.pyc,,
|
| 616 |
+
Bio/PDB/__pycache__/Superimposer.cpython-312.pyc,,
|
| 617 |
+
Bio/PDB/__pycache__/__init__.cpython-312.pyc,,
|
| 618 |
+
Bio/PDB/__pycache__/alphafold_db.cpython-312.pyc,,
|
| 619 |
+
Bio/PDB/__pycache__/binary_cif.cpython-312.pyc,,
|
| 620 |
+
Bio/PDB/__pycache__/cealign.cpython-312.pyc,,
|
| 621 |
+
Bio/PDB/__pycache__/ic_data.cpython-312.pyc,,
|
| 622 |
+
Bio/PDB/__pycache__/ic_rebuild.cpython-312.pyc,,
|
| 623 |
+
Bio/PDB/__pycache__/internal_coords.cpython-312.pyc,,
|
| 624 |
+
Bio/PDB/__pycache__/mmcifio.cpython-312.pyc,,
|
| 625 |
+
Bio/PDB/__pycache__/parse_pdb_header.cpython-312.pyc,,
|
| 626 |
+
Bio/PDB/__pycache__/qcprot.cpython-312.pyc,,
|
| 627 |
+
Bio/PDB/__pycache__/vectors.cpython-312.pyc,,
|
| 628 |
+
Bio/PDB/_bcif_helper.cpython-312-darwin.so,sha256=PrhXEfJIruVwQHe2X1vbgzw99txH3-zVFRJUB5Y4u8E,51424
|
| 629 |
+
Bio/PDB/alphafold_db.py,sha256=Iv0Iy0v3CWpSwLO98uESFmw2lkdYtj5GsLf78gBZ1oo,3991
|
| 630 |
+
Bio/PDB/bcifhelpermodule.c,sha256=CDYshdZg_5X-lZDtkeexoNiH1V2JDacV-qT9kmqVYds,4816
|
| 631 |
+
Bio/PDB/binary_cif.py,sha256=iuGPZvTHZY4P2GlcR_E9_gWl6z49jXcSubNcfrKFxu4,10229
|
| 632 |
+
Bio/PDB/ccealign.cpython-312-darwin.so,sha256=lJXFpAUDHO7Q38malC0EXHdk6xmpa8bvlovQDqTTR6I,52256
|
| 633 |
+
Bio/PDB/ccealignmodule.c,sha256=T1n8HK0IGORAElHC0OUsUzmgLjcjB5g8ZjTrkTD8NOs,26731
|
| 634 |
+
Bio/PDB/cealign.py,sha256=DJsfZ6tcSbY79xKE0m-rVjhOysQqIU_zOFQ1rOvVQV0,7535
|
| 635 |
+
Bio/PDB/ic_data.py,sha256=_yXXal4_LU4DVr61WBLgU2JN6qwcm51p7Akn5pi5aHQ,59270
|
| 636 |
+
Bio/PDB/ic_rebuild.py,sha256=8HvehhUTm36TdaN_KWLbGggBUfG3Yi3K43nhEFklIoo,18341
|
| 637 |
+
Bio/PDB/internal_coords.py,sha256=Yw928UOvsTB6RaK6luknG20KbkgYpfUcBS01GbyrK74,188712
|
| 638 |
+
Bio/PDB/kdtrees.c,sha256=RZP17Wur4pOmhFvArz8G9RmAcSQHZPSK6gZuGoCgPNQ,38489
|
| 639 |
+
Bio/PDB/kdtrees.cpython-312-darwin.so,sha256=dBSfbK0vVYhlN1SELqPJHbXwTKYStmXaqzTo2rsLefE,55056
|
| 640 |
+
Bio/PDB/mmcifio.py,sha256=VLG9DjpF-LMMPnc8z_vpBpXuI7vEqbcPo7D9hlFhEO8,15454
|
| 641 |
+
Bio/PDB/mmtf/DefaultParser.py,sha256=9AFF9xVj0ruenFJy-qFU19R6P4NoNQ7idJa8oMGU26Y,8888
|
| 642 |
+
Bio/PDB/mmtf/__init__.py,sha256=J24rQXRAxb43roQx7RZvitT85abXUKIfOO1BmPPcWTE,1568
|
| 643 |
+
Bio/PDB/mmtf/__pycache__/DefaultParser.cpython-312.pyc,,
|
| 644 |
+
Bio/PDB/mmtf/__pycache__/__init__.cpython-312.pyc,,
|
| 645 |
+
Bio/PDB/mmtf/__pycache__/mmtfio.cpython-312.pyc,,
|
| 646 |
+
Bio/PDB/mmtf/mmtfio.py,sha256=40X-U24c1KtZYDMTaLPWBFjK97ZveV-_9I4Ck5Mqeik,11174
|
| 647 |
+
Bio/PDB/parse_pdb_header.py,sha256=wjUBgHLnqAojAMCftFofJGNTU9gAJerD6i-VWAZwYb0,13618
|
| 648 |
+
Bio/PDB/qcprot.py,sha256=6TiN_JayaSeRfhEAAoXHLpwbZt5pBalIYUj4ctKx_uM,12295
|
| 649 |
+
Bio/PDB/vectors.py,sha256=u57Y4V6Ppkz11kTggWLOB10TqaKqx23h-uKK4GI-LWc,20145
|
| 650 |
+
Bio/Pathway/Rep/Graph.py,sha256=nrtXU1tSCBYSzQLC72-JADXtgn3GaLGE8PGJSBOvbo0,5865
|
| 651 |
+
Bio/Pathway/Rep/MultiGraph.py,sha256=wvjmawcQoAqOYJHJwXgok8OGSM1EDXGweitvuF5PPkU,6779
|
| 652 |
+
Bio/Pathway/Rep/__init__.py,sha256=at4OJza1C4g5QTYe0DWPYHyH_PjXNKRWapNINfVB4ig,575
|
| 653 |
+
Bio/Pathway/Rep/__pycache__/Graph.cpython-312.pyc,,
|
| 654 |
+
Bio/Pathway/Rep/__pycache__/MultiGraph.cpython-312.pyc,,
|
| 655 |
+
Bio/Pathway/Rep/__pycache__/__init__.cpython-312.pyc,,
|
| 656 |
+
Bio/Pathway/__init__.py,sha256=bPdJG_Wxz2ygj4rq2mjom0YVkmADB5ydseudrj45Z3U,10763
|
| 657 |
+
Bio/Pathway/__pycache__/__init__.cpython-312.pyc,,
|
| 658 |
+
Bio/Phylo/BaseTree.py,sha256=N69rc175o0NwoxfsWUl0__bJYHKHud2SYYDiT59_o94,44799
|
| 659 |
+
Bio/Phylo/CDAO.py,sha256=zJfBYZBdA4LhMW9JSQ_phD_cgIxXQfWUfKLtdgtTbSY,1662
|
| 660 |
+
Bio/Phylo/CDAOIO.py,sha256=w0DsTBMLm2egoLZ9EhMnqv5yE-SxK5pB97T0Zyj1Z2I,16066
|
| 661 |
+
Bio/Phylo/Consensus.py,sha256=XDwwRs68NC5KsTGl51R2k248sAyoCecrMwmi-pjTMjQ,24305
|
| 662 |
+
Bio/Phylo/NeXML.py,sha256=boHxjwQjFtTi60P7tbqvjiqgJ8YvlJAlrzW7vTZFriE,1404
|
| 663 |
+
Bio/Phylo/NeXMLIO.py,sha256=TClB94T1wsvSqdZ9CNG0AoeijSrkeIb-ZMwXV5cGTjE,10974
|
| 664 |
+
Bio/Phylo/Newick.py,sha256=Z3dOQM0GdqD3Vtlonn5vGLIGxs0fOYogrMOEK4_0bj4,1298
|
| 665 |
+
Bio/Phylo/NewickIO.py,sha256=KUtLtvtxd86t2JfCvUAsvIomA8h8Xx06fSXqVsZ9Jyg,12911
|
| 666 |
+
Bio/Phylo/NexusIO.py,sha256=6W3MIGuRDNixAkqQ-HfB3tiDIkK6m6ng-d5ncYmAC2s,2672
|
| 667 |
+
Bio/Phylo/PAML/__init__.py,sha256=Wlo4XIDffJhmHZm1zpQ3l1PT-STCKQIE0JERLVcBCaY,325
|
| 668 |
+
Bio/Phylo/PAML/__pycache__/__init__.cpython-312.pyc,,
|
| 669 |
+
Bio/Phylo/PAML/__pycache__/_paml.cpython-312.pyc,,
|
| 670 |
+
Bio/Phylo/PAML/__pycache__/_parse_baseml.cpython-312.pyc,,
|
| 671 |
+
Bio/Phylo/PAML/__pycache__/_parse_codeml.cpython-312.pyc,,
|
| 672 |
+
Bio/Phylo/PAML/__pycache__/_parse_yn00.cpython-312.pyc,,
|
| 673 |
+
Bio/Phylo/PAML/__pycache__/baseml.cpython-312.pyc,,
|
| 674 |
+
Bio/Phylo/PAML/__pycache__/chi2.cpython-312.pyc,,
|
| 675 |
+
Bio/Phylo/PAML/__pycache__/codeml.cpython-312.pyc,,
|
| 676 |
+
Bio/Phylo/PAML/__pycache__/yn00.cpython-312.pyc,,
|
| 677 |
+
Bio/Phylo/PAML/_paml.py,sha256=AxKMp6BmzEiz9cS7N9OhcJNLKUza_4AUE-cpC0GX5QM,5118
|
| 678 |
+
Bio/Phylo/PAML/_parse_baseml.py,sha256=icHahwSmYnWVd8xCpoWxf1oVRIG_7Kq6RC8awXSCiSs,11408
|
| 679 |
+
Bio/Phylo/PAML/_parse_codeml.py,sha256=lDHO5sx7LJFsq_vUlsgBxz2wbK_64fDGOZhhEVzk6XY,21149
|
| 680 |
+
Bio/Phylo/PAML/_parse_yn00.py,sha256=_3X3fMZKAOrGWI2h7nnBU3YS2WhHz3dZncEtPdoXbn8,6820
|
| 681 |
+
Bio/Phylo/PAML/baseml.py,sha256=WOXc-nBPwzrKRT74Y_iak-9n54nBBdjNzXZRqM4W8bo,8719
|
| 682 |
+
Bio/Phylo/PAML/chi2.py,sha256=rOGetcZeZ_GW-YlTy_GKli_4dYEsHH5NQYxJNlFfPws,3743
|
| 683 |
+
Bio/Phylo/PAML/codeml.py,sha256=z7MMMNDCjVJvTjzAMHJ0tdg59584xvdCLyKESRYSr1s,9371
|
| 684 |
+
Bio/Phylo/PAML/yn00.py,sha256=dY_Z7I2DyhYYd4O6OP__cQDZCt6PRekjOGNcUsOao24,6168
|
| 685 |
+
Bio/Phylo/PhyloXML.py,sha256=ckZGwnOgidFcHEIkS-SWIT1Xkeyl5S8i3o7OV6XoUyg,46829
|
| 686 |
+
Bio/Phylo/PhyloXMLIO.py,sha256=hKesIc4S5xNob3cMQgthf8qF8i9RFqAHr-HEqm_Bh0E,32340
|
| 687 |
+
Bio/Phylo/TreeConstruction.py,sha256=iFBHLPWgpzxeTpGv6fI7jgXOoHc_idLPKyfvdn6fFRY,48988
|
| 688 |
+
Bio/Phylo/__init__.py,sha256=I9sH2KCL5_Q2WwbLm-r9Fs20eSdQemAWmQO2Y0-pUOI,683
|
| 689 |
+
Bio/Phylo/__pycache__/BaseTree.cpython-312.pyc,,
|
| 690 |
+
Bio/Phylo/__pycache__/CDAO.cpython-312.pyc,,
|
| 691 |
+
Bio/Phylo/__pycache__/CDAOIO.cpython-312.pyc,,
|
| 692 |
+
Bio/Phylo/__pycache__/Consensus.cpython-312.pyc,,
|
| 693 |
+
Bio/Phylo/__pycache__/NeXML.cpython-312.pyc,,
|
| 694 |
+
Bio/Phylo/__pycache__/NeXMLIO.cpython-312.pyc,,
|
| 695 |
+
Bio/Phylo/__pycache__/Newick.cpython-312.pyc,,
|
| 696 |
+
Bio/Phylo/__pycache__/NewickIO.cpython-312.pyc,,
|
| 697 |
+
Bio/Phylo/__pycache__/NexusIO.cpython-312.pyc,,
|
| 698 |
+
Bio/Phylo/__pycache__/PhyloXML.cpython-312.pyc,,
|
| 699 |
+
Bio/Phylo/__pycache__/PhyloXMLIO.cpython-312.pyc,,
|
| 700 |
+
Bio/Phylo/__pycache__/TreeConstruction.cpython-312.pyc,,
|
| 701 |
+
Bio/Phylo/__pycache__/__init__.cpython-312.pyc,,
|
| 702 |
+
Bio/Phylo/__pycache__/_cdao_owl.cpython-312.pyc,,
|
| 703 |
+
Bio/Phylo/__pycache__/_io.cpython-312.pyc,,
|
| 704 |
+
Bio/Phylo/__pycache__/_utils.cpython-312.pyc,,
|
| 705 |
+
Bio/Phylo/_cdao_owl.py,sha256=iC54sav9Hr0GAvnvR6SCGGJtbzFz93t4iJ98i7UVsGs,109367
|
| 706 |
+
Bio/Phylo/_io.py,sha256=gu3_melHtwVGHVe0pcLfBxKkiQW0h2xkcEd2sF2w-YI,2678
|
| 707 |
+
Bio/Phylo/_utils.py,sha256=ydw3YO4xWdTPVWQ0rWiJA9_9Grh6Z3a0-1q6mCFAhew,22303
|
| 708 |
+
Bio/PopGen/GenePop/FileParser.py,sha256=XOuLzb19tYC2l9kfEClh1DFN7WukxRkRAqaJ-gS3sBk,11861
|
| 709 |
+
Bio/PopGen/GenePop/LargeFileParser.py,sha256=IOH8yfg02lB-wUZheXDXPE1L3dAnUAQJ-UWql25oLBg,3919
|
| 710 |
+
Bio/PopGen/GenePop/__init__.py,sha256=_zZsbbWImQpUY4SfTR_UZ9j1M96-iqNMQcI8pnyuT30,7462
|
| 711 |
+
Bio/PopGen/GenePop/__pycache__/FileParser.cpython-312.pyc,,
|
| 712 |
+
Bio/PopGen/GenePop/__pycache__/LargeFileParser.cpython-312.pyc,,
|
| 713 |
+
Bio/PopGen/GenePop/__pycache__/__init__.cpython-312.pyc,,
|
| 714 |
+
Bio/PopGen/__init__.py,sha256=SWc6kj2QqJnhoB6P7AzcfiSj9HIBXt65aHSZLMdLsCU,359
|
| 715 |
+
Bio/PopGen/__pycache__/__init__.cpython-312.pyc,,
|
| 716 |
+
Bio/Restriction/PrintFormat.py,sha256=vmHyuQG2r6URF9-N_N8_LURWYdeRm-PKv4EMJRg98i0,16232
|
| 717 |
+
Bio/Restriction/Restriction.py,sha256=JMLrSJR80C0nmzjSyKkt9W3vpG7KOoAaImdKYDrQTSs,83609
|
| 718 |
+
Bio/Restriction/Restriction_Dictionary.py,sha256=KnkJkpXbrWBh6mehHgU3h8WR_LLrEPyMD4nq2QjfoCs,562312
|
| 719 |
+
Bio/Restriction/__init__.py,sha256=PWWjOJk8zs9wFk43IRplNMKtBE0wa40QGpf93SZkvcQ,7846
|
| 720 |
+
Bio/Restriction/__pycache__/PrintFormat.cpython-312.pyc,,
|
| 721 |
+
Bio/Restriction/__pycache__/Restriction.cpython-312.pyc,,
|
| 722 |
+
Bio/Restriction/__pycache__/Restriction_Dictionary.cpython-312.pyc,,
|
| 723 |
+
Bio/Restriction/__pycache__/__init__.cpython-312.pyc,,
|
| 724 |
+
Bio/SCOP/Cla.py,sha256=QQaaTRm8MhgkIc9kmWjzSBJzDZ8yPflzqGPahGPOkYE,3922
|
| 725 |
+
Bio/SCOP/Des.py,sha256=E01r8L7xyH4u_pE_BdQWfgLZQzjxxy9yNQlK_wMms8E,3004
|
| 726 |
+
Bio/SCOP/Dom.py,sha256=n2Vz4JCwgp1KYPCdWIHqnz3ox5zVapFKiikAmMtRBHU,2466
|
| 727 |
+
Bio/SCOP/Hie.py,sha256=V89zuR10IszC0g1ElG9kJ4l18AmX7k8IiPuld5TbXPM,2963
|
| 728 |
+
Bio/SCOP/Raf.py,sha256=5alSIWZ8cChAcbLJ-WdiJ78OJq4UOXKWD6pu0QTvEK4,10317
|
| 729 |
+
Bio/SCOP/Residues.py,sha256=B6uF848LZAhqP_arxU6y20Wf5vghMPtX2t_6YRBP88k,3083
|
| 730 |
+
Bio/SCOP/__init__.py,sha256=c3hBShiNDaIyiFMkAyvPHWDVgdLWkKMz3cD8UPaQER0,31276
|
| 731 |
+
Bio/SCOP/__pycache__/Cla.cpython-312.pyc,,
|
| 732 |
+
Bio/SCOP/__pycache__/Des.cpython-312.pyc,,
|
| 733 |
+
Bio/SCOP/__pycache__/Dom.cpython-312.pyc,,
|
| 734 |
+
Bio/SCOP/__pycache__/Hie.cpython-312.pyc,,
|
| 735 |
+
Bio/SCOP/__pycache__/Raf.cpython-312.pyc,,
|
| 736 |
+
Bio/SCOP/__pycache__/Residues.cpython-312.pyc,,
|
| 737 |
+
Bio/SCOP/__pycache__/__init__.cpython-312.pyc,,
|
| 738 |
+
Bio/SVDSuperimposer/__init__.py,sha256=tx50Pd3Ze2JlwzJElQLx0tvKadmtyBOa3Fgkll8JQrE,6256
|
| 739 |
+
Bio/SVDSuperimposer/__pycache__/__init__.cpython-312.pyc,,
|
| 740 |
+
Bio/SearchIO/BlastIO/__init__.py,sha256=ucZ_p5ltygjjeP4_BNzCyMF-nF-t_yT3qTWde58xKjE,17923
|
| 741 |
+
Bio/SearchIO/BlastIO/__pycache__/__init__.cpython-312.pyc,,
|
| 742 |
+
Bio/SearchIO/BlastIO/__pycache__/blast_tab.cpython-312.pyc,,
|
| 743 |
+
Bio/SearchIO/BlastIO/__pycache__/blast_xml.cpython-312.pyc,,
|
| 744 |
+
Bio/SearchIO/BlastIO/blast_tab.py,sha256=Xh_B0zTNnFmCukINkyx2ZfuCnOp2oeEnO4kUkJpK91Q,33824
|
| 745 |
+
Bio/SearchIO/BlastIO/blast_xml.py,sha256=236zeNwhlmVIb0c5xrCh2pQS0kgamoGCB72B-iGgu60,37031
|
| 746 |
+
Bio/SearchIO/BlatIO.py,sha256=bKLnyCRGVnIp592mGUhAt2BApPY0uyC6h-coz97kUf8,31398
|
| 747 |
+
Bio/SearchIO/ExonerateIO/__init__.py,sha256=R4mdx-hmQ-GY_RSnZRrF2PiOcJYeaBr4ehvhwUl9V5E,13047
|
| 748 |
+
Bio/SearchIO/ExonerateIO/__pycache__/__init__.cpython-312.pyc,,
|
| 749 |
+
Bio/SearchIO/ExonerateIO/__pycache__/_base.cpython-312.pyc,,
|
| 750 |
+
Bio/SearchIO/ExonerateIO/__pycache__/exonerate_cigar.cpython-312.pyc,,
|
| 751 |
+
Bio/SearchIO/ExonerateIO/__pycache__/exonerate_text.cpython-312.pyc,,
|
| 752 |
+
Bio/SearchIO/ExonerateIO/__pycache__/exonerate_vulgar.cpython-312.pyc,,
|
| 753 |
+
Bio/SearchIO/ExonerateIO/_base.py,sha256=j7nW9rqQ3TlGr_ZLJXJIFz7PKjtwkMVNwvKHSSP65Bw,21071
|
| 754 |
+
Bio/SearchIO/ExonerateIO/exonerate_cigar.py,sha256=C7qLNaMMeeWpt7jIDFMTTw2BVLUjNn2O4mTeg1gGCeM,4106
|
| 755 |
+
Bio/SearchIO/ExonerateIO/exonerate_text.py,sha256=2iZbeVHy6iFhJNTa4khDzag7vLql8g__1nOpEmJV1ZE,20463
|
| 756 |
+
Bio/SearchIO/ExonerateIO/exonerate_vulgar.py,sha256=OymbeXbgHFyEgvbB2_E9bwQQbqq7TxAy-sBxONVMFvE,8307
|
| 757 |
+
Bio/SearchIO/FastaIO.py,sha256=9-TItA1-b5cpp1cFmbMZzdZsYtAXwWZrL_U3DFSxLEU,25993
|
| 758 |
+
Bio/SearchIO/HHsuiteIO/__init__.py,sha256=Uwu-QC0n7JZwEEFqbCoXsmAjiColuhLRZlWHJjx0_O0,639
|
| 759 |
+
Bio/SearchIO/HHsuiteIO/__pycache__/__init__.cpython-312.pyc,,
|
| 760 |
+
Bio/SearchIO/HHsuiteIO/__pycache__/hhsuite2_text.cpython-312.pyc,,
|
| 761 |
+
Bio/SearchIO/HHsuiteIO/hhsuite2_text.py,sha256=OmDl977VgdlewVKAfr-pcwCm6kNQA9DPFZ6b_3Shap8,9354
|
| 762 |
+
Bio/SearchIO/HmmerIO/__init__.py,sha256=RpjGWuRZOqb_z93d_xEwEAGgrxEB8lQCOSKvYMALIIw,20466
|
| 763 |
+
Bio/SearchIO/HmmerIO/__pycache__/__init__.cpython-312.pyc,,
|
| 764 |
+
Bio/SearchIO/HmmerIO/__pycache__/_base.cpython-312.pyc,,
|
| 765 |
+
Bio/SearchIO/HmmerIO/__pycache__/hmmer2_text.cpython-312.pyc,,
|
| 766 |
+
Bio/SearchIO/HmmerIO/__pycache__/hmmer3_domtab.cpython-312.pyc,,
|
| 767 |
+
Bio/SearchIO/HmmerIO/__pycache__/hmmer3_tab.cpython-312.pyc,,
|
| 768 |
+
Bio/SearchIO/HmmerIO/__pycache__/hmmer3_text.cpython-312.pyc,,
|
| 769 |
+
Bio/SearchIO/HmmerIO/_base.py,sha256=qSiP2JbGjWPOXuWsvN2F7gSPOZTbyAzHj5CvRFtmWoo,1482
|
| 770 |
+
Bio/SearchIO/HmmerIO/hmmer2_text.py,sha256=A5_YMdp-ugLORE4AY5kk8MCmFDBjxXoaO15OJeENBbc,12932
|
| 771 |
+
Bio/SearchIO/HmmerIO/hmmer3_domtab.py,sha256=magDmjA-r3S2_dfWq93TBP2aFQ9ezZQCJdSVaN_4vIY,14071
|
| 772 |
+
Bio/SearchIO/HmmerIO/hmmer3_tab.py,sha256=ElBtEi4dtO56Ne_BnahnLxzHJl8p9091MChy3XX09U4,12910
|
| 773 |
+
Bio/SearchIO/HmmerIO/hmmer3_text.py,sha256=M7VcbL42350ZwwL2kX5noxUousAIIgbOLCU_eTKb1qY,20043
|
| 774 |
+
Bio/SearchIO/InfernalIO/__init__.py,sha256=xF4wQKNLbfTMiKFL6NmU-sgSphriy_0aXlN9ngzPoyY,15555
|
| 775 |
+
Bio/SearchIO/InfernalIO/__pycache__/__init__.cpython-312.pyc,,
|
| 776 |
+
Bio/SearchIO/InfernalIO/__pycache__/_base.cpython-312.pyc,,
|
| 777 |
+
Bio/SearchIO/InfernalIO/__pycache__/infernal_tab.cpython-312.pyc,,
|
| 778 |
+
Bio/SearchIO/InfernalIO/__pycache__/infernal_text.cpython-312.pyc,,
|
| 779 |
+
Bio/SearchIO/InfernalIO/_base.py,sha256=w_itxTD5azRfaA3PCZ13UYRq6t4TEg2BzA-WjnST5Fc,1415
|
| 780 |
+
Bio/SearchIO/InfernalIO/infernal_tab.py,sha256=tlJZ7DQ672DfHlL7AJI3E9qiJG61T8dhsOU5ngeaJ0o,14947
|
| 781 |
+
Bio/SearchIO/InfernalIO/infernal_text.py,sha256=jchZqcR-pep7NzWycllszemlQX0sr1UcKeFQSFYeCCY,21628
|
| 782 |
+
Bio/SearchIO/InterproscanIO/__init__.py,sha256=bnQbZAEmthvBubnQn6tu0nCovgYmCS1eVdxs7cC83Kw,5155
|
| 783 |
+
Bio/SearchIO/InterproscanIO/__pycache__/__init__.cpython-312.pyc,,
|
| 784 |
+
Bio/SearchIO/InterproscanIO/__pycache__/interproscan_xml.cpython-312.pyc,,
|
| 785 |
+
Bio/SearchIO/InterproscanIO/interproscan_xml.py,sha256=sDeP_ssPvhifYzZ2sta4ils2DzqB4WunEUQw9D2Shuk,7547
|
| 786 |
+
Bio/SearchIO/__init__.py,sha256=rvNn0BsWNe_PrQ_fhnvwCVBupcWDi_tcYf8uQDOsohg,29177
|
| 787 |
+
Bio/SearchIO/__pycache__/BlatIO.cpython-312.pyc,,
|
| 788 |
+
Bio/SearchIO/__pycache__/FastaIO.cpython-312.pyc,,
|
| 789 |
+
Bio/SearchIO/__pycache__/__init__.cpython-312.pyc,,
|
| 790 |
+
Bio/SearchIO/__pycache__/_index.cpython-312.pyc,,
|
| 791 |
+
Bio/SearchIO/__pycache__/_utils.cpython-312.pyc,,
|
| 792 |
+
Bio/SearchIO/_index.py,sha256=KGWJfTcPTWPyv7HxVjebifl_jsFqIKxJNUdz327rLgw,1233
|
| 793 |
+
Bio/SearchIO/_model/__init__.py,sha256=sE-9oUiX0HdKUC_Z0njFA7giJrlDUUAfczNvnDfJh3s,2479
|
| 794 |
+
Bio/SearchIO/_model/__pycache__/__init__.cpython-312.pyc,,
|
| 795 |
+
Bio/SearchIO/_model/__pycache__/_base.cpython-312.pyc,,
|
| 796 |
+
Bio/SearchIO/_model/__pycache__/hit.cpython-312.pyc,,
|
| 797 |
+
Bio/SearchIO/_model/__pycache__/hsp.cpython-312.pyc,,
|
| 798 |
+
Bio/SearchIO/_model/__pycache__/query.cpython-312.pyc,,
|
| 799 |
+
Bio/SearchIO/_model/_base.py,sha256=NEVzhcvyY79M-ByUjdz9WmDtRu1xMMC8Pf_a1na1aHo,2671
|
| 800 |
+
Bio/SearchIO/_model/hit.py,sha256=gXAkhuGNv7eSrlTA18nf7eqaGdCCmBxkc3Dc4fyTGIs,17396
|
| 801 |
+
Bio/SearchIO/_model/hsp.py,sha256=XDuwCr30WxKv1nbUt1Ii6Ywlj-c7-s7ql3j8ZFqW0CU,48308
|
| 802 |
+
Bio/SearchIO/_model/query.py,sha256=xKg8NCsJ1Q37KKXAfjMdV_479ocNz_FyB4Op5H_txeM,30199
|
| 803 |
+
Bio/SearchIO/_utils.py,sha256=Od-zvdwFUZzhjVHNX0pmayza0bZZs93hfOLaMCnBYUM,5596
|
| 804 |
+
Bio/Seq.py,sha256=rSosheRMdEVtyd1vRXy9TnsPCyxNwPa8KKcahny-FWs,114972
|
| 805 |
+
Bio/SeqFeature.py,sha256=o8vTou8W9C6CBBCwuEM5ZCmNOuKMATecYNQ1cBws334,80760
|
| 806 |
+
Bio/SeqIO/AbiIO.py,sha256=V_Xo_WI9uOTAVAl_zQtXaItb-uHE1VjXfzdiZK8PUyk,26249
|
| 807 |
+
Bio/SeqIO/AceIO.py,sha256=jCS6DUiK-p0GbXMT697yy26IVbCn5s23ioLdqmtpfaE,4769
|
| 808 |
+
Bio/SeqIO/FastaIO.py,sha256=g-aGuutrm-r34JwqI_j5TY_ORSRn99UAcdA4EBsE-nU,22100
|
| 809 |
+
Bio/SeqIO/GckIO.py,sha256=-QoNJdwRbGbyB1IOiSB5kslShMg91BRdBhMlB5nNWzw,8994
|
| 810 |
+
Bio/SeqIO/GfaIO.py,sha256=VSxljdd4Roa3n1pOkwkleA2WWy9cEUa514aTKJTehfM,7091
|
| 811 |
+
Bio/SeqIO/IgIO.py,sha256=tkSa-vuU81cyjxX4FMU2n-Q_8St6evLQQTb0iqdwKf8,4068
|
| 812 |
+
Bio/SeqIO/InsdcIO.py,sha256=1RQD7Mucudr3wyh5Xesgb5zK5D9ciaAl7g2XZ7A8T80,58571
|
| 813 |
+
Bio/SeqIO/Interfaces.py,sha256=7IQvUADcSKI77Mha-MAMzJFc7g-cErjK11mMvL673sk,8325
|
| 814 |
+
Bio/SeqIO/NibIO.py,sha256=Ocrhdhjgaqzje4mvNblzOjZGyd4jFx8WXTqLJ6hp0HM,5857
|
| 815 |
+
Bio/SeqIO/PdbIO.py,sha256=hJDdg5z4ScgyRrV-NzP9ycK6qQPMaeCVRROgdRntido,22748
|
| 816 |
+
Bio/SeqIO/PhdIO.py,sha256=7ifjaPVED1o3MKv432rvGG42LiIEvlRzADvhOhexYMg,6330
|
| 817 |
+
Bio/SeqIO/PirIO.py,sha256=Iu6PhBKNs8aOCFdcwfN3XJL-BCZs7jft69WZQfvWYV0,10021
|
| 818 |
+
Bio/SeqIO/QualityIO.py,sha256=Uxb7_DI_kVmYzVMSES5pOkUxrRC_JOlaggd435rvv8U,95985
|
| 819 |
+
Bio/SeqIO/SeqXmlIO.py,sha256=OTO_RnjmwihhNlEkzxmMFSFfjO6WRENtOD4gbq6377M,30529
|
| 820 |
+
Bio/SeqIO/SffIO.py,sha256=hhKYmSxTzR0YW4JETeipZHX-YE8VLIYhcDRMFg7Wdao,55380
|
| 821 |
+
Bio/SeqIO/SnapGeneIO.py,sha256=G5WNqTsF3qw9qCATgPiFLoH9UtITo86hyh3tsNgVKg0,12385
|
| 822 |
+
Bio/SeqIO/SwissIO.py,sha256=qRTDePuE-EQGRkraWtpegtmTK6Yur2L6Sd0eaEnvVdI,5251
|
| 823 |
+
Bio/SeqIO/TabIO.py,sha256=6mbOO5fpUk8iY7X4q0wqozXvwUAR4ra7wH2HCyjGO8I,5125
|
| 824 |
+
Bio/SeqIO/TwoBitIO.py,sha256=PDXnfMeDfVi6ez2YiNmZn5LG2BsISu1V4lj_3piOn_A,11165
|
| 825 |
+
Bio/SeqIO/UniprotIO.py,sha256=SaBS6NUanEyySnGkiXQARtmsRQ2NONwBAslpi7j69iA,24645
|
| 826 |
+
Bio/SeqIO/XdnaIO.py,sha256=ixODv7NjTXyPr7Pj05eMkLFEhPxCArRJKo3Xk31uBhE,12342
|
| 827 |
+
Bio/SeqIO/__init__.py,sha256=orRUs-vmBmrysNZTQjslwDyELAgb7082Q9NPClcLsR8,45723
|
| 828 |
+
Bio/SeqIO/__pycache__/AbiIO.cpython-312.pyc,,
|
| 829 |
+
Bio/SeqIO/__pycache__/AceIO.cpython-312.pyc,,
|
| 830 |
+
Bio/SeqIO/__pycache__/FastaIO.cpython-312.pyc,,
|
| 831 |
+
Bio/SeqIO/__pycache__/GckIO.cpython-312.pyc,,
|
| 832 |
+
Bio/SeqIO/__pycache__/GfaIO.cpython-312.pyc,,
|
| 833 |
+
Bio/SeqIO/__pycache__/IgIO.cpython-312.pyc,,
|
| 834 |
+
Bio/SeqIO/__pycache__/InsdcIO.cpython-312.pyc,,
|
| 835 |
+
Bio/SeqIO/__pycache__/Interfaces.cpython-312.pyc,,
|
| 836 |
+
Bio/SeqIO/__pycache__/NibIO.cpython-312.pyc,,
|
| 837 |
+
Bio/SeqIO/__pycache__/PdbIO.cpython-312.pyc,,
|
| 838 |
+
Bio/SeqIO/__pycache__/PhdIO.cpython-312.pyc,,
|
| 839 |
+
Bio/SeqIO/__pycache__/PirIO.cpython-312.pyc,,
|
| 840 |
+
Bio/SeqIO/__pycache__/QualityIO.cpython-312.pyc,,
|
| 841 |
+
Bio/SeqIO/__pycache__/SeqXmlIO.cpython-312.pyc,,
|
| 842 |
+
Bio/SeqIO/__pycache__/SffIO.cpython-312.pyc,,
|
| 843 |
+
Bio/SeqIO/__pycache__/SnapGeneIO.cpython-312.pyc,,
|
| 844 |
+
Bio/SeqIO/__pycache__/SwissIO.cpython-312.pyc,,
|
| 845 |
+
Bio/SeqIO/__pycache__/TabIO.cpython-312.pyc,,
|
| 846 |
+
Bio/SeqIO/__pycache__/TwoBitIO.cpython-312.pyc,,
|
| 847 |
+
Bio/SeqIO/__pycache__/UniprotIO.cpython-312.pyc,,
|
| 848 |
+
Bio/SeqIO/__pycache__/XdnaIO.cpython-312.pyc,,
|
| 849 |
+
Bio/SeqIO/__pycache__/__init__.cpython-312.pyc,,
|
| 850 |
+
Bio/SeqIO/__pycache__/_index.cpython-312.pyc,,
|
| 851 |
+
Bio/SeqIO/_index.py,sha256=wkH3rAsSV68s481L68TAQ2YWkZW-qDKOeZOuNXGXqdE,27642
|
| 852 |
+
Bio/SeqIO/_twoBitIO.c,sha256=vgig9JSepUZMZCLr9TM55Zil_mtKqdKiDPHvN_Efn7Y,22033
|
| 853 |
+
Bio/SeqIO/_twoBitIO.cpython-312-darwin.so,sha256=eafrc5Ajj_aGhv1MF2YqY2bWj8EHJ8RNy1HxvHTAQqc,51680
|
| 854 |
+
Bio/SeqRecord.py,sha256=eLyYfA2ERI9WreLwxNAO3nsgoB3pJDoTtdz-1eEQYfI,61621
|
| 855 |
+
Bio/SeqUtils/CheckSum.py,sha256=unmsn9dSkJqmuHjuSMnJydlbyMlWotm6CsHxMbFIOpk,3510
|
| 856 |
+
Bio/SeqUtils/IsoelectricPoint.py,sha256=k6DTKbpjee3QfFP16o7LOcloTZIYqz_LRzbhMk4srtI,6557
|
| 857 |
+
Bio/SeqUtils/MeltingTemp.py,sha256=Tzy8WF_9aNVDhtQPXtsROnwurkqkOIxrSWvO7N7AZQA,43151
|
| 858 |
+
Bio/SeqUtils/ProtParam.py,sha256=0KU-ykP3-nkfptAApXwmMKdpQwTCmhz1vjlzYATyAE8,13174
|
| 859 |
+
Bio/SeqUtils/ProtParamData.py,sha256=SIpMM2VWxeaqQekgjNSpOQ16KdPYPiyL4fDLUYxxiUc,18172
|
| 860 |
+
Bio/SeqUtils/__init__.py,sha256=vW42dv28AciOGTE_G6v2XJZpcBlGDx5z4dE2OS3PfWo,25604
|
| 861 |
+
Bio/SeqUtils/__pycache__/CheckSum.cpython-312.pyc,,
|
| 862 |
+
Bio/SeqUtils/__pycache__/IsoelectricPoint.cpython-312.pyc,,
|
| 863 |
+
Bio/SeqUtils/__pycache__/MeltingTemp.cpython-312.pyc,,
|
| 864 |
+
Bio/SeqUtils/__pycache__/ProtParam.cpython-312.pyc,,
|
| 865 |
+
Bio/SeqUtils/__pycache__/ProtParamData.cpython-312.pyc,,
|
| 866 |
+
Bio/SeqUtils/__pycache__/__init__.cpython-312.pyc,,
|
| 867 |
+
Bio/SeqUtils/__pycache__/lcc.cpython-312.pyc,,
|
| 868 |
+
Bio/SeqUtils/lcc.py,sha256=XBY4ZRGoRiUEqmz55dhnLpPLi9ebKhIUa7VEJhHtMd8,5502
|
| 869 |
+
Bio/Sequencing/Ace.py,sha256=_Su6gu-odBELWvCtZmz3y6CnXBMJEji1q1h1CHSnpYg,20432
|
| 870 |
+
Bio/Sequencing/Phd.py,sha256=qMigC5HmXLowegKMXobMa6QppCKAPjvDcsqflle9URg,5684
|
| 871 |
+
Bio/Sequencing/__init__.py,sha256=r9llSVj9cqJveTCKxDHw-pDPdvL4KBYil12zby9QpMg,530
|
| 872 |
+
Bio/Sequencing/__pycache__/Ace.cpython-312.pyc,,
|
| 873 |
+
Bio/Sequencing/__pycache__/Phd.cpython-312.pyc,,
|
| 874 |
+
Bio/Sequencing/__pycache__/__init__.cpython-312.pyc,,
|
| 875 |
+
Bio/SwissProt/KeyWList.py,sha256=DiMiwlFCWMPtyvoly2fkkmgTPG75tJUXQ1S6EPGnUA0,3468
|
| 876 |
+
Bio/SwissProt/__init__.py,sha256=5nmAYalbLowU1VFcN_UAtyH4PkYQ_7vCHnTG0Fbw0zw,32910
|
| 877 |
+
Bio/SwissProt/__pycache__/KeyWList.cpython-312.pyc,,
|
| 878 |
+
Bio/SwissProt/__pycache__/__init__.cpython-312.pyc,,
|
| 879 |
+
Bio/TogoWS/__init__.py,sha256=Vsw0IMrIQ52k-Gu4WH6Yd-i_-D1RgqhPhqa7_gwJTL8,13966
|
| 880 |
+
Bio/TogoWS/__pycache__/__init__.cpython-312.pyc,,
|
| 881 |
+
Bio/UniGene/__init__.py,sha256=EjnkeKTzkJhq2ghSOeMC3E_eZ4U89LFGCS1n6-s9otw,12738
|
| 882 |
+
Bio/UniGene/__pycache__/__init__.cpython-312.pyc,,
|
| 883 |
+
Bio/UniProt/GOA.py,sha256=nXzgZAiC1P4HsuLfM7z0ca4h5cH8auBNISEB9-hve6w,15791
|
| 884 |
+
Bio/UniProt/__init__.py,sha256=eQwo82zOz4o9hqJMSle0K9brewdx5a_NcHp3fRXDsA8,5376
|
| 885 |
+
Bio/UniProt/__pycache__/GOA.cpython-312.pyc,,
|
| 886 |
+
Bio/UniProt/__pycache__/__init__.cpython-312.pyc,,
|
| 887 |
+
Bio/__init__.py,sha256=WQPbWoi90aKnzAgfzTFcra9pO0jG8JPpDukzxllOn3o,5411
|
| 888 |
+
Bio/__pycache__/File.cpython-312.pyc,,
|
| 889 |
+
Bio/__pycache__/Seq.cpython-312.pyc,,
|
| 890 |
+
Bio/__pycache__/SeqFeature.cpython-312.pyc,,
|
| 891 |
+
Bio/__pycache__/SeqRecord.cpython-312.pyc,,
|
| 892 |
+
Bio/__pycache__/__init__.cpython-312.pyc,,
|
| 893 |
+
Bio/__pycache__/_utils.cpython-312.pyc,,
|
| 894 |
+
Bio/__pycache__/bgzf.cpython-312.pyc,,
|
| 895 |
+
Bio/__pycache__/pairwise2.cpython-312.pyc,,
|
| 896 |
+
Bio/_utils.py,sha256=_WcE3XdMiyta5aTDdZVRnFTdou8D0REGZkhLlOMCgqs,2918
|
| 897 |
+
Bio/bgzf.py,sha256=Eun1RXey_n9mSttJrH15wIEZrFRaOyjREP5Rasc2KIo,39777
|
| 898 |
+
Bio/codonalign/__init__.py,sha256=umcOampgYmjCJAIl5qzKktYZbKKMDaMp5OXlFvD-_j0,30114
|
| 899 |
+
Bio/codonalign/__pycache__/__init__.cpython-312.pyc,,
|
| 900 |
+
Bio/codonalign/__pycache__/codonalignment.cpython-312.pyc,,
|
| 901 |
+
Bio/codonalign/__pycache__/codonseq.cpython-312.pyc,,
|
| 902 |
+
Bio/codonalign/codonalignment.py,sha256=EZGYrxbqWHbH7lUsoGXYK0ziAwH3Iginpb7sHajH_Ws,18231
|
| 903 |
+
Bio/codonalign/codonseq.py,sha256=FwHAAfwhK_VvQs-uyhK15phwPG92_0WiVnFXcwOsWrA,47934
|
| 904 |
+
Bio/cpairwise2.cpython-312-darwin.so,sha256=2YBuX1Y_xzlCxaQlPl4MOlturMuuxAJRdmv4Itl52Ow,52304
|
| 905 |
+
Bio/cpairwise2module.c,sha256=rCEMYaN3LJnust0hpjlojfGh_YAXM6fi6hXaMAudayU,16868
|
| 906 |
+
Bio/motifs/__init__.py,sha256=I7OyH7iRI3-UovgMYufgBbhP1FolNHS1-08KqvYYjIU,22158
|
| 907 |
+
Bio/motifs/__pycache__/__init__.cpython-312.pyc,,
|
| 908 |
+
Bio/motifs/__pycache__/alignace.cpython-312.pyc,,
|
| 909 |
+
Bio/motifs/__pycache__/clusterbuster.cpython-312.pyc,,
|
| 910 |
+
Bio/motifs/__pycache__/mast.cpython-312.pyc,,
|
| 911 |
+
Bio/motifs/__pycache__/matrix.cpython-312.pyc,,
|
| 912 |
+
Bio/motifs/__pycache__/meme.cpython-312.pyc,,
|
| 913 |
+
Bio/motifs/__pycache__/minimal.cpython-312.pyc,,
|
| 914 |
+
Bio/motifs/__pycache__/pfm.cpython-312.pyc,,
|
| 915 |
+
Bio/motifs/__pycache__/thresholds.cpython-312.pyc,,
|
| 916 |
+
Bio/motifs/__pycache__/transfac.cpython-312.pyc,,
|
| 917 |
+
Bio/motifs/__pycache__/xms.cpython-312.pyc,,
|
| 918 |
+
Bio/motifs/_pwm.c,sha256=1vOzUu0th-NZdHXc50b4IhZyRM0hQH4itjMvIBTnx4g,5793
|
| 919 |
+
Bio/motifs/_pwm.cpython-312-darwin.so,sha256=zldhaoVwzNuB9eHgv4Hu5vpYWykYGstQ4MYNdj5nLWA,51384
|
| 920 |
+
Bio/motifs/alignace.py,sha256=-Fqz1ka9VKwPpB8PPZTuMm5GGu29UQhHqR52IFBrBb4,2118
|
| 921 |
+
Bio/motifs/clusterbuster.py,sha256=VXUM9fCXJv2HIdkhSInlKuSaxWn3wpAfd_Yt1q_p8EI,3852
|
| 922 |
+
Bio/motifs/jaspar/__init__.py,sha256=BM-AozLo_6eKvpwnfjpSIGoMQx-dX6BogdNCYIJX53Y,11388
|
| 923 |
+
Bio/motifs/jaspar/__pycache__/__init__.cpython-312.pyc,,
|
| 924 |
+
Bio/motifs/jaspar/__pycache__/db.cpython-312.pyc,,
|
| 925 |
+
Bio/motifs/jaspar/db.py,sha256=Nl1fmXPhRWxdo-5EhP-5NhrSCO8KC69IEq-FnQh_pw0,27980
|
| 926 |
+
Bio/motifs/mast.py,sha256=WKoDkBRSJ9IvpmolXrS3otOBPDYDR1lFt7uJHrzUSoo,4915
|
| 927 |
+
Bio/motifs/matrix.py,sha256=sVzzwoIEREiuWwpcPsSoeJzg1DliBgq5OuoiRS7WJh4,24049
|
| 928 |
+
Bio/motifs/meme.py,sha256=_wQt896H1uky4K2Tc2bO-PVsvSoZh6ntss1eeW7qMp8,6397
|
| 929 |
+
Bio/motifs/minimal.py,sha256=SK1OHuxU3RdubK82hzUH-cBOGIYYAfoMq9kmkKw9HjM,7161
|
| 930 |
+
Bio/motifs/pfm.py,sha256=4KvB9j7fnGQKBQs-_SCGYqG5qnlCmQcREe9gEkvG9vo,17229
|
| 931 |
+
Bio/motifs/thresholds.py,sha256=o0K4bKPNYpVsribsDmOhIsV10lY31NNL1_HbT3sRwM4,4530
|
| 932 |
+
Bio/motifs/transfac.py,sha256=fDi-ExuWX5_74iIo9Id7lT-8jPB_iMN9OLbDJHla_zw,12127
|
| 933 |
+
Bio/motifs/xms.py,sha256=NNRXpG5JZC5Twy5CHB4GjpYhWjiJTLlVabRRUxJ32Hc,3942
|
| 934 |
+
Bio/pairwise2.py,sha256=6TqFmPrI58IMlevMDgLowi1bEshJfKERp-wVvnt4sWQ,53156
|
| 935 |
+
Bio/phenotype/__init__.py,sha256=ygNXhDYIMSb8C3woqkvCOOyefr98MUssE6KqRokIL8Q,8353
|
| 936 |
+
Bio/phenotype/__pycache__/__init__.cpython-312.pyc,,
|
| 937 |
+
Bio/phenotype/__pycache__/phen_micro.cpython-312.pyc,,
|
| 938 |
+
Bio/phenotype/__pycache__/pm_fitting.cpython-312.pyc,,
|
| 939 |
+
Bio/phenotype/phen_micro.py,sha256=Bep81ibmizySAfbLVcyffqGeqWvRt8Te-2v4WDeqF0w,37710
|
| 940 |
+
Bio/phenotype/pm_fitting.py,sha256=W6zMBSSDPYdGrLRH6p9sL38z7HGNArEVBj7Xt7_KCEw,4208
|
| 941 |
+
Bio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 942 |
+
BioSQL/BioSeq.py,sha256=IodmnonVHMfl3BRXgYMo3DQq08IbRKW81eYEjgVDTjE,21795
|
| 943 |
+
BioSQL/BioSeqDatabase.py,sha256=F3L8O1Csm8HWhNdDoAWykVXdjUJRN5JbuCLV1_uoJ7M,31312
|
| 944 |
+
BioSQL/DBUtils.py,sha256=D8a89mQyIpo54_Nc2ZG376rhqLrFFdvtquoXX9MSFiU,4657
|
| 945 |
+
BioSQL/Loader.py,sha256=VXvVd9CM7im8_b89uFlF44YC4R0ACVeHKUOYrFKbpN4,51599
|
| 946 |
+
BioSQL/__init__.py,sha256=D4hw16z-KuugA_YcEa83q2zz2CNLDopcRHrPvFeSVKM,617
|
| 947 |
+
BioSQL/__pycache__/BioSeq.cpython-312.pyc,,
|
| 948 |
+
BioSQL/__pycache__/BioSeqDatabase.cpython-312.pyc,,
|
| 949 |
+
BioSQL/__pycache__/DBUtils.cpython-312.pyc,,
|
| 950 |
+
BioSQL/__pycache__/Loader.cpython-312.pyc,,
|
| 951 |
+
BioSQL/__pycache__/__init__.cpython-312.pyc,,
|
| 952 |
+
BioSQL/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 953 |
+
biopython-1.87.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 954 |
+
biopython-1.87.dist-info/METADATA,sha256=fzwcehh1yVgVs5euzF5bkLETW6DHsctEeonCOGYsjxA,13290
|
| 955 |
+
biopython-1.87.dist-info/RECORD,,
|
| 956 |
+
biopython-1.87.dist-info/WHEEL,sha256=cMbdUR4MuJwKTk_cclTNco-OW6sDrQbwZ6MlSMtlrI4,136
|
| 957 |
+
biopython-1.87.dist-info/licenses/LICENSE.rst,sha256=EdHryq0uufDwmj3x3rSsqZpNo2aumucPgox0R6JN5FM,3267
|
| 958 |
+
biopython-1.87.dist-info/top_level.txt,sha256=jN-JQ-4c2AzNqKFp3H5s0o2dIfGhg0SAVilkXmnLl_M,11
|
.venv_haddock/lib/python3.12/site-packages/biopython-1.87.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (82.0.1)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp312-cp312-macosx_11_0_arm64
|
| 5 |
+
Generator: delocate 0.13.0
|
| 6 |
+
|
.venv_haddock/lib/python3.12/site-packages/biopython-1.87.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Bio
|
| 2 |
+
BioSQL
|
.venv_haddock/lib/python3.12/site-packages/freesasa-2.2.1.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
.venv_haddock/lib/python3.12/site-packages/freesasa-2.2.1.dist-info/METADATA
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: freesasa
|
| 3 |
+
Version: 2.2.1
|
| 4 |
+
Summary: Calculate solvent accessible surface areas of proteins
|
| 5 |
+
Home-page: http://freesasa.github.io/
|
| 6 |
+
Author: Simon Mitternacht
|
| 7 |
+
License: MIT
|
| 8 |
+
Keywords: structural biology,proteins,bioinformatics
|
| 9 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 10 |
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
| 11 |
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
| 12 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 13 |
+
Classifier: Programming Language :: Python :: 3.7
|
| 14 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 15 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 16 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 18 |
+
License-File: LICENSE.txt
|
| 19 |
+
Dynamic: author
|
| 20 |
+
Dynamic: classifier
|
| 21 |
+
Dynamic: description
|
| 22 |
+
Dynamic: home-page
|
| 23 |
+
Dynamic: keywords
|
| 24 |
+
Dynamic: license
|
| 25 |
+
Dynamic: license-file
|
| 26 |
+
Dynamic: summary
|
| 27 |
+
|
| 28 |
+
This module provides bindings for the FreeSASA C library. See http://freesasa.github.io/python/ for documentation.
|
.venv_haddock/lib/python3.12/site-packages/freesasa-2.2.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../../include/site/python3.12/freesasa/classifier.c,sha256=QuOypS0HeJsvfC00uJQRIfy3B9ESyL5xiZxr2nwQzkc,35591
|
| 2 |
+
../../../include/site/python3.12/freesasa/classifier.h,sha256=sOKgAMIOXDWWbqsCCVzvsaRPuryifufjbtZUc2HQQ3E,3892
|
| 3 |
+
../../../include/site/python3.12/freesasa/classifier_naccess.c,sha256=zvtxtks_MLjXjOibwJEO9avBL2Kxb1Wdnfm6Rtud5Fg,21027
|
| 4 |
+
../../../include/site/python3.12/freesasa/classifier_oons.c,sha256=TCq2jX6JRDUSDj6XPGsRZ5bWNgeSmsNrJntrNG58StA,15528
|
| 5 |
+
../../../include/site/python3.12/freesasa/classifier_protor.c,sha256=smnSPFn73TDSeKkhOKdywELYbUnRcC-vYdMX0ds0Fog,32827
|
| 6 |
+
../../../include/site/python3.12/freesasa/coord.c,sha256=4Z7x-9uBdMt4QXrrX6YJuFMXi0vIeWdJEmMTktzjVwQ,6745
|
| 7 |
+
../../../include/site/python3.12/freesasa/coord.h,sha256=X2wcRh-4p5ohI1snT4wKIO68VVwL4LfLhsZxOJnM9Ps,9655
|
| 8 |
+
../../../include/site/python3.12/freesasa/freesasa.c,sha256=HdK4t5ziSaFFb87MPjBfuTA1fX3Lugt9LwXlIRaewFY,6264
|
| 9 |
+
../../../include/site/python3.12/freesasa/freesasa.h,sha256=HzQtufMN6g_XJyBFXIetrgjgEQljx6DoNRaZyi8VU88,49886
|
| 10 |
+
../../../include/site/python3.12/freesasa/freesasa_internal.h,sha256=_xQzC0bVomyLhRw-2RrOX3dq22StxL8f4Qi61CWndmQ,14465
|
| 11 |
+
../../../include/site/python3.12/freesasa/lexer.c,sha256=W5aUyYV6Gw0bseRnPGP6FI8Z32chj9e460dstgB-m98,61622
|
| 12 |
+
../../../include/site/python3.12/freesasa/lexer.h,sha256=sXp5aWS_NgsRXYPmplaE1GhTTTkUW42L8jrjIgXXgVA,8630
|
| 13 |
+
../../../include/site/python3.12/freesasa/log.c,sha256=vW5bCZYHcP4IARFlDP7z853KkEdlR5nn9q0G4UxeOv0,7861
|
| 14 |
+
../../../include/site/python3.12/freesasa/nb.c,sha256=6_h6oq1lyBAd4XwDil2oTrxtEpFM7eGAuQeM9QOy6_4,15541
|
| 15 |
+
../../../include/site/python3.12/freesasa/nb.h,sha256=jaKOzW6-YVQzNLFeypvt7SouCxMoYv2liqBIGtEE4WU,2041
|
| 16 |
+
../../../include/site/python3.12/freesasa/node.c,sha256=0BWahd-TV0QXKFAJgVsHa7SExsrsEGxVoMJnv3PYRT8,19924
|
| 17 |
+
../../../include/site/python3.12/freesasa/parser.c,sha256=MBsZ8NX8TgbDPkVEGXjoYPNIwLN5pXL36-953vd76ms,51255
|
| 18 |
+
../../../include/site/python3.12/freesasa/parser.h,sha256=nO9gF0kztlJE1nnabh-msSv-PABZN6lQepL-6_hFclA,2723
|
| 19 |
+
../../../include/site/python3.12/freesasa/pdb.c,sha256=sabnoL63I_3k9aeiSZEeRPVwKFrd920XMvowxMUc_e8,12746
|
| 20 |
+
../../../include/site/python3.12/freesasa/pdb.h,sha256=DZDM0KcSkjvwfC9YFRYyUsxG6OMeAnokl9coQs6nBEA,6761
|
| 21 |
+
../../../include/site/python3.12/freesasa/rsa.c,sha256=OiNoqehuFGHtZBc-hEUcp7_Vo480YwO5mQwwdoPdKq0,6056
|
| 22 |
+
../../../include/site/python3.12/freesasa/sasa_lr.c,sha256=W7meigB7HWeafmYcToLkFOw06NI3PFEkJjXQjOyUo7A,13910
|
| 23 |
+
../../../include/site/python3.12/freesasa/sasa_sr.c,sha256=bJg7HZpSAABD10H5Fx9_YdFzmoJVB4wIGflnaHkCmho,9542
|
| 24 |
+
../../../include/site/python3.12/freesasa/selection.c,sha256=2E7hqhHawETKspw2eoK7w_s2drTuuZgfeI31GMEJWXo,27380
|
| 25 |
+
../../../include/site/python3.12/freesasa/selection.h,sha256=4hN-ryHR6g-Lu2cqwE23cb5_HOKSg1riOtQtAJGj4_A,1345
|
| 26 |
+
../../../include/site/python3.12/freesasa/structure.c,sha256=qc97rrNNYv-WqkqgskSOZcvCgWr84lRVeJcKf87fa_Q,35165
|
| 27 |
+
../../../include/site/python3.12/freesasa/util.c,sha256=RffIRstokC0qsiiwZKMx5pKMSW8EWWvwXRoZWIZ61X0,2786
|
| 28 |
+
freesasa-2.2.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 29 |
+
freesasa-2.2.1.dist-info/METADATA,sha256=HlSBCXpnLYfB9COp1efDUjYPhx1mb1CYEnWUGjatpQA,1017
|
| 30 |
+
freesasa-2.2.1.dist-info/RECORD,,
|
| 31 |
+
freesasa-2.2.1.dist-info/WHEEL,sha256=CltXN3lQvXbHxKDtiDwW0RNzF8s2WyBuPbOAX_ZeQlA,109
|
| 32 |
+
freesasa-2.2.1.dist-info/licenses/LICENSE.txt,sha256=wszU7NQ3S0N_vNRFEQF27pIPlZtcknvqIxqRbJOfp0U,1085
|
| 33 |
+
freesasa-2.2.1.dist-info/top_level.txt,sha256=lrUU06PGnY5L5fM8Sm8XZBESUDWcf0rlRoEIHREIAS0,9
|
| 34 |
+
freesasa.cpython-312-darwin.so,sha256=_PFdHl19_V5VKB6kQyIodQwkA5hXnH32t6pxcQxA2wM,455360
|
.venv_haddock/lib/python3.12/site-packages/freesasa-2.2.1.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (80.9.0)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp312-cp312-macosx_11_0_arm64
|
| 5 |
+
|
.venv_haddock/lib/python3.12/site-packages/freesasa-2.2.1.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
freesasa
|
.venv_haddock/lib/python3.12/site-packages/numpy-2.4.4.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
.venv_haddock/lib/python3.12/site-packages/numpy-2.4.4.dist-info/METADATA
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: numpy
|
| 3 |
+
Version: 2.4.4
|
| 4 |
+
Summary: Fundamental package for array computing in Python
|
| 5 |
+
Author: Travis E. Oliphant et al.
|
| 6 |
+
Maintainer-Email: NumPy Developers <numpy-discussion@python.org>
|
| 7 |
+
License-Expression: BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0
|
| 8 |
+
License-File: LICENSE.txt
|
| 9 |
+
License-File: numpy/_core/include/numpy/libdivide/LICENSE.txt
|
| 10 |
+
License-File: numpy/_core/src/common/pythoncapi-compat/COPYING
|
| 11 |
+
License-File: numpy/_core/src/highway/LICENSE
|
| 12 |
+
License-File: numpy/_core/src/multiarray/dragon4_LICENSE.txt
|
| 13 |
+
License-File: numpy/_core/src/npysort/x86-simd-sort/LICENSE.md
|
| 14 |
+
License-File: numpy/_core/src/umath/svml/LICENSE
|
| 15 |
+
License-File: numpy/fft/pocketfft/LICENSE.md
|
| 16 |
+
License-File: numpy/linalg/lapack_lite/LICENSE.txt
|
| 17 |
+
License-File: numpy/ma/LICENSE
|
| 18 |
+
License-File: numpy/random/LICENSE.md
|
| 19 |
+
License-File: numpy/random/src/distributions/LICENSE.md
|
| 20 |
+
License-File: numpy/random/src/mt19937/LICENSE.md
|
| 21 |
+
License-File: numpy/random/src/pcg64/LICENSE.md
|
| 22 |
+
License-File: numpy/random/src/philox/LICENSE.md
|
| 23 |
+
License-File: numpy/random/src/sfc64/LICENSE.md
|
| 24 |
+
License-File: numpy/random/src/splitmix64/LICENSE.md
|
| 25 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 26 |
+
Classifier: Intended Audience :: Science/Research
|
| 27 |
+
Classifier: Intended Audience :: Developers
|
| 28 |
+
Classifier: Programming Language :: C
|
| 29 |
+
Classifier: Programming Language :: Python
|
| 30 |
+
Classifier: Programming Language :: Python :: 3
|
| 31 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 32 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 33 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 34 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 35 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 36 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 37 |
+
Classifier: Topic :: Software Development
|
| 38 |
+
Classifier: Topic :: Scientific/Engineering
|
| 39 |
+
Classifier: Typing :: Typed
|
| 40 |
+
Classifier: Operating System :: Microsoft :: Windows
|
| 41 |
+
Classifier: Operating System :: POSIX
|
| 42 |
+
Classifier: Operating System :: Unix
|
| 43 |
+
Classifier: Operating System :: MacOS
|
| 44 |
+
Project-URL: homepage, https://numpy.org
|
| 45 |
+
Project-URL: documentation, https://numpy.org/doc/
|
| 46 |
+
Project-URL: source, https://github.com/numpy/numpy
|
| 47 |
+
Project-URL: download, https://pypi.org/project/numpy/#files
|
| 48 |
+
Project-URL: tracker, https://github.com/numpy/numpy/issues
|
| 49 |
+
Project-URL: release notes, https://numpy.org/doc/stable/release
|
| 50 |
+
Requires-Python: >=3.11
|
| 51 |
+
Description-Content-Type: text/markdown
|
| 52 |
+
|
| 53 |
+
<h1 align="center">
|
| 54 |
+
<img src="https://raw.githubusercontent.com/numpy/numpy/main/branding/logo/primary/numpylogo.svg" width="300">
|
| 55 |
+
</h1><br>
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
[](
|
| 59 |
+
https://numfocus.org)
|
| 60 |
+
[](
|
| 61 |
+
https://pypi.org/project/numpy/)
|
| 62 |
+
[](
|
| 63 |
+
https://anaconda.org/conda-forge/numpy)
|
| 64 |
+
[](
|
| 65 |
+
https://stackoverflow.com/questions/tagged/numpy)
|
| 66 |
+
[](
|
| 67 |
+
https://doi.org/10.1038/s41586-020-2649-2)
|
| 68 |
+
[](https://insights.linuxfoundation.org/project/numpy)
|
| 69 |
+
[](https://securityscorecards.dev/viewer/?uri=github.com/numpy/numpy)
|
| 70 |
+
[](https://pypi.org/project/numpy/)
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
NumPy is the fundamental package for scientific computing with Python.
|
| 74 |
+
|
| 75 |
+
- **Website:** https://numpy.org
|
| 76 |
+
- **Documentation:** https://numpy.org/doc
|
| 77 |
+
- **Mailing list:** https://mail.python.org/mailman/listinfo/numpy-discussion
|
| 78 |
+
- **Source code:** https://github.com/numpy/numpy
|
| 79 |
+
- **Contributing:** https://numpy.org/devdocs/dev/index.html
|
| 80 |
+
- **Bug reports:** https://github.com/numpy/numpy/issues
|
| 81 |
+
- **Report a security vulnerability:** https://tidelift.com/docs/security
|
| 82 |
+
|
| 83 |
+
It provides:
|
| 84 |
+
|
| 85 |
+
- a powerful N-dimensional array object
|
| 86 |
+
- sophisticated (broadcasting) functions
|
| 87 |
+
- tools for integrating C/C++ and Fortran code
|
| 88 |
+
- useful linear algebra, Fourier transform, and random number capabilities
|
| 89 |
+
|
| 90 |
+
Testing:
|
| 91 |
+
|
| 92 |
+
NumPy requires `pytest` and `hypothesis`. Tests can then be run after installation with:
|
| 93 |
+
|
| 94 |
+
python -c "import numpy, sys; sys.exit(numpy.test() is False)"
|
| 95 |
+
|
| 96 |
+
Code of Conduct
|
| 97 |
+
----------------------
|
| 98 |
+
|
| 99 |
+
NumPy is a community-driven open source project developed by a diverse group of
|
| 100 |
+
[contributors](https://numpy.org/teams/). The NumPy leadership has made a strong
|
| 101 |
+
commitment to creating an open, inclusive, and positive community. Please read the
|
| 102 |
+
[NumPy Code of Conduct](https://numpy.org/code-of-conduct/) for guidance on how to interact
|
| 103 |
+
with others in a way that makes our community thrive.
|
| 104 |
+
|
| 105 |
+
Call for Contributions
|
| 106 |
+
----------------------
|
| 107 |
+
|
| 108 |
+
The NumPy project welcomes your expertise and enthusiasm!
|
| 109 |
+
|
| 110 |
+
Small improvements or fixes are always appreciated. If you are considering larger contributions
|
| 111 |
+
to the source code, please contact us through the [mailing
|
| 112 |
+
list](https://mail.python.org/mailman/listinfo/numpy-discussion) first.
|
| 113 |
+
|
| 114 |
+
Writing code isn’t the only way to contribute to NumPy. You can also:
|
| 115 |
+
- review pull requests
|
| 116 |
+
- help us stay on top of new and old issues
|
| 117 |
+
- develop tutorials, presentations, and other educational materials
|
| 118 |
+
- maintain and improve [our website](https://github.com/numpy/numpy.org)
|
| 119 |
+
- develop graphic design for our brand assets and promotional materials
|
| 120 |
+
- translate website content
|
| 121 |
+
- help with outreach and onboard new contributors
|
| 122 |
+
- write grant proposals and help with other fundraising efforts
|
| 123 |
+
|
| 124 |
+
For more information about the ways you can contribute to NumPy, visit [our website](https://numpy.org/contribute/).
|
| 125 |
+
If you’re unsure where to start or how your skills fit in, reach out! You can
|
| 126 |
+
ask on the mailing list or here, on GitHub, by opening a new issue or leaving a
|
| 127 |
+
comment on a relevant issue that is already open.
|
| 128 |
+
|
| 129 |
+
Our preferred channels of communication are all public, but if you’d like to
|
| 130 |
+
speak to us in private first, contact our community coordinators at
|
| 131 |
+
numpy-team@googlegroups.com or on Slack (write numpy-team@googlegroups.com for
|
| 132 |
+
an invitation).
|
| 133 |
+
|
| 134 |
+
We also have a biweekly community call, details of which are announced on the
|
| 135 |
+
mailing list. You are very welcome to join.
|
| 136 |
+
|
| 137 |
+
If you are new to contributing to open source, [this
|
| 138 |
+
guide](https://opensource.guide/how-to-contribute/) helps explain why, what,
|
| 139 |
+
and how to successfully get involved.
|
.venv_haddock/lib/python3.12/site-packages/numpy-2.4.4.dist-info/RECORD
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
.venv_haddock/lib/python3.12/site-packages/numpy-2.4.4.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: meson
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp312-cp312-macosx_14_0_arm64
|
| 5 |
+
Generator: delocate 0.13.0
|
| 6 |
+
|
.venv_haddock/lib/python3.12/site-packages/numpy-2.4.4.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[pkg_config]
|
| 2 |
+
numpy = numpy._core.lib.pkgconfig
|
| 3 |
+
|
| 4 |
+
[array_api]
|
| 5 |
+
numpy = numpy
|
| 6 |
+
|
| 7 |
+
[pyinstaller40]
|
| 8 |
+
hook-dirs = numpy:_pyinstaller_hooks_dir
|
| 9 |
+
|
| 10 |
+
[console_scripts]
|
| 11 |
+
f2py = numpy.f2py.f2py2e:main
|
| 12 |
+
numpy-config = numpy._configtool:main
|
| 13 |
+
|
.venv_haddock/lib/python3.12/site-packages/pandas/_config/__init__.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pandas._config is considered explicitly upstream of everything else in pandas,
|
| 3 |
+
should have no intra-pandas dependencies.
|
| 4 |
+
|
| 5 |
+
importing `dates` and `display` ensures that keys needed by _libs
|
| 6 |
+
are initialized.
|
| 7 |
+
"""
|
| 8 |
+
__all__ = [
|
| 9 |
+
"config",
|
| 10 |
+
"detect_console_encoding",
|
| 11 |
+
"get_option",
|
| 12 |
+
"set_option",
|
| 13 |
+
"reset_option",
|
| 14 |
+
"describe_option",
|
| 15 |
+
"option_context",
|
| 16 |
+
"options",
|
| 17 |
+
"using_copy_on_write",
|
| 18 |
+
"warn_copy_on_write",
|
| 19 |
+
]
|
| 20 |
+
from pandas._config import config
|
| 21 |
+
from pandas._config import dates # pyright: ignore[reportUnusedImport] # noqa: F401
|
| 22 |
+
from pandas._config.config import (
|
| 23 |
+
_global_config,
|
| 24 |
+
describe_option,
|
| 25 |
+
get_option,
|
| 26 |
+
option_context,
|
| 27 |
+
options,
|
| 28 |
+
reset_option,
|
| 29 |
+
set_option,
|
| 30 |
+
)
|
| 31 |
+
from pandas._config.display import detect_console_encoding
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def using_copy_on_write() -> bool:
|
| 35 |
+
_mode_options = _global_config["mode"]
|
| 36 |
+
return (
|
| 37 |
+
_mode_options["copy_on_write"] is True
|
| 38 |
+
and _mode_options["data_manager"] == "block"
|
| 39 |
+
)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def warn_copy_on_write() -> bool:
|
| 43 |
+
_mode_options = _global_config["mode"]
|
| 44 |
+
return (
|
| 45 |
+
_mode_options["copy_on_write"] == "warn"
|
| 46 |
+
and _mode_options["data_manager"] == "block"
|
| 47 |
+
)
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def using_nullable_dtypes() -> bool:
|
| 51 |
+
_mode_options = _global_config["mode"]
|
| 52 |
+
return _mode_options["nullable_dtypes"]
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def using_string_dtype() -> bool:
|
| 56 |
+
_mode_options = _global_config["future"]
|
| 57 |
+
return _mode_options["infer_string"]
|
.venv_haddock/lib/python3.12/site-packages/pandas/_config/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (1.8 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/pandas/_config/__pycache__/config.cpython-312.pyc
ADDED
|
Binary file (32.5 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/pandas/_config/__pycache__/dates.cpython-312.pyc
ADDED
|
Binary file (1.01 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/pandas/_config/__pycache__/display.cpython-312.pyc
ADDED
|
Binary file (2.08 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/pandas/_config/__pycache__/localization.cpython-312.pyc
ADDED
|
Binary file (6.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/pandas/_config/config.py
ADDED
|
@@ -0,0 +1,948 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
The config module holds package-wide configurables and provides
|
| 3 |
+
a uniform API for working with them.
|
| 4 |
+
|
| 5 |
+
Overview
|
| 6 |
+
========
|
| 7 |
+
|
| 8 |
+
This module supports the following requirements:
|
| 9 |
+
- options are referenced using keys in dot.notation, e.g. "x.y.option - z".
|
| 10 |
+
- keys are case-insensitive.
|
| 11 |
+
- functions should accept partial/regex keys, when unambiguous.
|
| 12 |
+
- options can be registered by modules at import time.
|
| 13 |
+
- options can be registered at init-time (via core.config_init)
|
| 14 |
+
- options have a default value, and (optionally) a description and
|
| 15 |
+
validation function associated with them.
|
| 16 |
+
- options can be deprecated, in which case referencing them
|
| 17 |
+
should produce a warning.
|
| 18 |
+
- deprecated options can optionally be rerouted to a replacement
|
| 19 |
+
so that accessing a deprecated option reroutes to a differently
|
| 20 |
+
named option.
|
| 21 |
+
- options can be reset to their default value.
|
| 22 |
+
- all option can be reset to their default value at once.
|
| 23 |
+
- all options in a certain sub - namespace can be reset at once.
|
| 24 |
+
- the user can set / get / reset or ask for the description of an option.
|
| 25 |
+
- a developer can register and mark an option as deprecated.
|
| 26 |
+
- you can register a callback to be invoked when the option value
|
| 27 |
+
is set or reset. Changing the stored value is considered misuse, but
|
| 28 |
+
is not verboten.
|
| 29 |
+
|
| 30 |
+
Implementation
|
| 31 |
+
==============
|
| 32 |
+
|
| 33 |
+
- Data is stored using nested dictionaries, and should be accessed
|
| 34 |
+
through the provided API.
|
| 35 |
+
|
| 36 |
+
- "Registered options" and "Deprecated options" have metadata associated
|
| 37 |
+
with them, which are stored in auxiliary dictionaries keyed on the
|
| 38 |
+
fully-qualified key, e.g. "x.y.z.option".
|
| 39 |
+
|
| 40 |
+
- the config_init module is imported by the package's __init__.py file.
|
| 41 |
+
placing any register_option() calls there will ensure those options
|
| 42 |
+
are available as soon as pandas is loaded. If you use register_option
|
| 43 |
+
in a module, it will only be available after that module is imported,
|
| 44 |
+
which you should be aware of.
|
| 45 |
+
|
| 46 |
+
- `config_prefix` is a context_manager (for use with the `with` keyword)
|
| 47 |
+
which can save developers some typing, see the docstring.
|
| 48 |
+
|
| 49 |
+
"""
|
| 50 |
+
|
| 51 |
+
from __future__ import annotations
|
| 52 |
+
|
| 53 |
+
from contextlib import (
|
| 54 |
+
ContextDecorator,
|
| 55 |
+
contextmanager,
|
| 56 |
+
)
|
| 57 |
+
import re
|
| 58 |
+
from typing import (
|
| 59 |
+
TYPE_CHECKING,
|
| 60 |
+
Any,
|
| 61 |
+
Callable,
|
| 62 |
+
Generic,
|
| 63 |
+
NamedTuple,
|
| 64 |
+
cast,
|
| 65 |
+
)
|
| 66 |
+
import warnings
|
| 67 |
+
|
| 68 |
+
from pandas._typing import (
|
| 69 |
+
F,
|
| 70 |
+
T,
|
| 71 |
+
)
|
| 72 |
+
from pandas.util._exceptions import find_stack_level
|
| 73 |
+
|
| 74 |
+
if TYPE_CHECKING:
|
| 75 |
+
from collections.abc import (
|
| 76 |
+
Generator,
|
| 77 |
+
Iterable,
|
| 78 |
+
)
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
class DeprecatedOption(NamedTuple):
|
| 82 |
+
key: str
|
| 83 |
+
msg: str | None
|
| 84 |
+
rkey: str | None
|
| 85 |
+
removal_ver: str | None
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
class RegisteredOption(NamedTuple):
|
| 89 |
+
key: str
|
| 90 |
+
defval: object
|
| 91 |
+
doc: str
|
| 92 |
+
validator: Callable[[object], Any] | None
|
| 93 |
+
cb: Callable[[str], Any] | None
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
# holds deprecated option metadata
|
| 97 |
+
_deprecated_options: dict[str, DeprecatedOption] = {}
|
| 98 |
+
|
| 99 |
+
# holds registered option metadata
|
| 100 |
+
_registered_options: dict[str, RegisteredOption] = {}
|
| 101 |
+
|
| 102 |
+
# holds the current values for registered options
|
| 103 |
+
_global_config: dict[str, Any] = {}
|
| 104 |
+
|
| 105 |
+
# keys which have a special meaning
|
| 106 |
+
_reserved_keys: list[str] = ["all"]
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
class OptionError(AttributeError, KeyError):
|
| 110 |
+
"""
|
| 111 |
+
Exception raised for pandas.options.
|
| 112 |
+
|
| 113 |
+
Backwards compatible with KeyError checks.
|
| 114 |
+
|
| 115 |
+
Examples
|
| 116 |
+
--------
|
| 117 |
+
>>> pd.options.context
|
| 118 |
+
Traceback (most recent call last):
|
| 119 |
+
OptionError: No such option
|
| 120 |
+
"""
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
#
|
| 124 |
+
# User API
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
def _get_single_key(pat: str, silent: bool) -> str:
|
| 128 |
+
keys = _select_options(pat)
|
| 129 |
+
if len(keys) == 0:
|
| 130 |
+
if not silent:
|
| 131 |
+
_warn_if_deprecated(pat)
|
| 132 |
+
raise OptionError(f"No such keys(s): {repr(pat)}")
|
| 133 |
+
if len(keys) > 1:
|
| 134 |
+
raise OptionError("Pattern matched multiple keys")
|
| 135 |
+
key = keys[0]
|
| 136 |
+
|
| 137 |
+
if not silent:
|
| 138 |
+
_warn_if_deprecated(key)
|
| 139 |
+
|
| 140 |
+
key = _translate_key(key)
|
| 141 |
+
|
| 142 |
+
return key
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
def _get_option(pat: str, silent: bool = False) -> Any:
|
| 146 |
+
key = _get_single_key(pat, silent)
|
| 147 |
+
|
| 148 |
+
# walk the nested dict
|
| 149 |
+
root, k = _get_root(key)
|
| 150 |
+
return root[k]
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def _set_option(*args, **kwargs) -> None:
|
| 154 |
+
# must at least 1 arg deal with constraints later
|
| 155 |
+
nargs = len(args)
|
| 156 |
+
if not nargs or nargs % 2 != 0:
|
| 157 |
+
raise ValueError("Must provide an even number of non-keyword arguments")
|
| 158 |
+
|
| 159 |
+
# default to false
|
| 160 |
+
silent = kwargs.pop("silent", False)
|
| 161 |
+
|
| 162 |
+
if kwargs:
|
| 163 |
+
kwarg = next(iter(kwargs.keys()))
|
| 164 |
+
raise TypeError(f'_set_option() got an unexpected keyword argument "{kwarg}"')
|
| 165 |
+
|
| 166 |
+
for k, v in zip(args[::2], args[1::2]):
|
| 167 |
+
key = _get_single_key(k, silent)
|
| 168 |
+
|
| 169 |
+
o = _get_registered_option(key)
|
| 170 |
+
if o and o.validator:
|
| 171 |
+
o.validator(v)
|
| 172 |
+
|
| 173 |
+
# walk the nested dict
|
| 174 |
+
root, k_root = _get_root(key)
|
| 175 |
+
root[k_root] = v
|
| 176 |
+
|
| 177 |
+
if o.cb:
|
| 178 |
+
if silent:
|
| 179 |
+
with warnings.catch_warnings(record=True):
|
| 180 |
+
o.cb(key)
|
| 181 |
+
else:
|
| 182 |
+
o.cb(key)
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
def _describe_option(pat: str = "", _print_desc: bool = True) -> str | None:
|
| 186 |
+
keys = _select_options(pat)
|
| 187 |
+
if len(keys) == 0:
|
| 188 |
+
raise OptionError("No such keys(s)")
|
| 189 |
+
|
| 190 |
+
s = "\n".join([_build_option_description(k) for k in keys])
|
| 191 |
+
|
| 192 |
+
if _print_desc:
|
| 193 |
+
print(s)
|
| 194 |
+
return None
|
| 195 |
+
return s
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
def _reset_option(pat: str, silent: bool = False) -> None:
|
| 199 |
+
keys = _select_options(pat)
|
| 200 |
+
|
| 201 |
+
if len(keys) == 0:
|
| 202 |
+
raise OptionError("No such keys(s)")
|
| 203 |
+
|
| 204 |
+
if len(keys) > 1 and len(pat) < 4 and pat != "all":
|
| 205 |
+
raise ValueError(
|
| 206 |
+
"You must specify at least 4 characters when "
|
| 207 |
+
"resetting multiple keys, use the special keyword "
|
| 208 |
+
'"all" to reset all the options to their default value'
|
| 209 |
+
)
|
| 210 |
+
|
| 211 |
+
for k in keys:
|
| 212 |
+
_set_option(k, _registered_options[k].defval, silent=silent)
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def get_default_val(pat: str):
|
| 216 |
+
key = _get_single_key(pat, silent=True)
|
| 217 |
+
return _get_registered_option(key).defval
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
class DictWrapper:
|
| 221 |
+
"""provide attribute-style access to a nested dict"""
|
| 222 |
+
|
| 223 |
+
d: dict[str, Any]
|
| 224 |
+
|
| 225 |
+
def __init__(self, d: dict[str, Any], prefix: str = "") -> None:
|
| 226 |
+
object.__setattr__(self, "d", d)
|
| 227 |
+
object.__setattr__(self, "prefix", prefix)
|
| 228 |
+
|
| 229 |
+
def __setattr__(self, key: str, val: Any) -> None:
|
| 230 |
+
prefix = object.__getattribute__(self, "prefix")
|
| 231 |
+
if prefix:
|
| 232 |
+
prefix += "."
|
| 233 |
+
prefix += key
|
| 234 |
+
# you can't set new keys
|
| 235 |
+
# can you can't overwrite subtrees
|
| 236 |
+
if key in self.d and not isinstance(self.d[key], dict):
|
| 237 |
+
_set_option(prefix, val)
|
| 238 |
+
else:
|
| 239 |
+
raise OptionError("You can only set the value of existing options")
|
| 240 |
+
|
| 241 |
+
def __getattr__(self, key: str):
|
| 242 |
+
prefix = object.__getattribute__(self, "prefix")
|
| 243 |
+
if prefix:
|
| 244 |
+
prefix += "."
|
| 245 |
+
prefix += key
|
| 246 |
+
try:
|
| 247 |
+
v = object.__getattribute__(self, "d")[key]
|
| 248 |
+
except KeyError as err:
|
| 249 |
+
raise OptionError("No such option") from err
|
| 250 |
+
if isinstance(v, dict):
|
| 251 |
+
return DictWrapper(v, prefix)
|
| 252 |
+
else:
|
| 253 |
+
return _get_option(prefix)
|
| 254 |
+
|
| 255 |
+
def __dir__(self) -> list[str]:
|
| 256 |
+
return list(self.d.keys())
|
| 257 |
+
|
| 258 |
+
|
| 259 |
+
# For user convenience, we'd like to have the available options described
|
| 260 |
+
# in the docstring. For dev convenience we'd like to generate the docstrings
|
| 261 |
+
# dynamically instead of maintaining them by hand. To this, we use the
|
| 262 |
+
# class below which wraps functions inside a callable, and converts
|
| 263 |
+
# __doc__ into a property function. The doctsrings below are templates
|
| 264 |
+
# using the py2.6+ advanced formatting syntax to plug in a concise list
|
| 265 |
+
# of options, and option descriptions.
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
class CallableDynamicDoc(Generic[T]):
|
| 269 |
+
def __init__(self, func: Callable[..., T], doc_tmpl: str) -> None:
|
| 270 |
+
self.__doc_tmpl__ = doc_tmpl
|
| 271 |
+
self.__func__ = func
|
| 272 |
+
|
| 273 |
+
def __call__(self, *args, **kwds) -> T:
|
| 274 |
+
return self.__func__(*args, **kwds)
|
| 275 |
+
|
| 276 |
+
# error: Signature of "__doc__" incompatible with supertype "object"
|
| 277 |
+
@property
|
| 278 |
+
def __doc__(self) -> str: # type: ignore[override]
|
| 279 |
+
opts_desc = _describe_option("all", _print_desc=False)
|
| 280 |
+
opts_list = pp_options_list(list(_registered_options.keys()))
|
| 281 |
+
return self.__doc_tmpl__.format(opts_desc=opts_desc, opts_list=opts_list)
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
_get_option_tmpl = """
|
| 285 |
+
get_option(pat)
|
| 286 |
+
|
| 287 |
+
Retrieves the value of the specified option.
|
| 288 |
+
|
| 289 |
+
Available options:
|
| 290 |
+
|
| 291 |
+
{opts_list}
|
| 292 |
+
|
| 293 |
+
Parameters
|
| 294 |
+
----------
|
| 295 |
+
pat : str
|
| 296 |
+
Regexp which should match a single option.
|
| 297 |
+
Note: partial matches are supported for convenience, but unless you use the
|
| 298 |
+
full option name (e.g. x.y.z.option_name), your code may break in future
|
| 299 |
+
versions if new options with similar names are introduced.
|
| 300 |
+
|
| 301 |
+
Returns
|
| 302 |
+
-------
|
| 303 |
+
result : the value of the option
|
| 304 |
+
|
| 305 |
+
Raises
|
| 306 |
+
------
|
| 307 |
+
OptionError : if no such option exists
|
| 308 |
+
|
| 309 |
+
Notes
|
| 310 |
+
-----
|
| 311 |
+
Please reference the :ref:`User Guide <options>` for more information.
|
| 312 |
+
|
| 313 |
+
The available options with its descriptions:
|
| 314 |
+
|
| 315 |
+
{opts_desc}
|
| 316 |
+
|
| 317 |
+
Examples
|
| 318 |
+
--------
|
| 319 |
+
>>> pd.get_option('display.max_columns') # doctest: +SKIP
|
| 320 |
+
4
|
| 321 |
+
"""
|
| 322 |
+
|
| 323 |
+
_set_option_tmpl = """
|
| 324 |
+
set_option(pat, value)
|
| 325 |
+
|
| 326 |
+
Sets the value of the specified option.
|
| 327 |
+
|
| 328 |
+
Available options:
|
| 329 |
+
|
| 330 |
+
{opts_list}
|
| 331 |
+
|
| 332 |
+
Parameters
|
| 333 |
+
----------
|
| 334 |
+
pat : str
|
| 335 |
+
Regexp which should match a single option.
|
| 336 |
+
Note: partial matches are supported for convenience, but unless you use the
|
| 337 |
+
full option name (e.g. x.y.z.option_name), your code may break in future
|
| 338 |
+
versions if new options with similar names are introduced.
|
| 339 |
+
value : object
|
| 340 |
+
New value of option.
|
| 341 |
+
|
| 342 |
+
Returns
|
| 343 |
+
-------
|
| 344 |
+
None
|
| 345 |
+
|
| 346 |
+
Raises
|
| 347 |
+
------
|
| 348 |
+
OptionError if no such option exists
|
| 349 |
+
|
| 350 |
+
Notes
|
| 351 |
+
-----
|
| 352 |
+
Please reference the :ref:`User Guide <options>` for more information.
|
| 353 |
+
|
| 354 |
+
The available options with its descriptions:
|
| 355 |
+
|
| 356 |
+
{opts_desc}
|
| 357 |
+
|
| 358 |
+
Examples
|
| 359 |
+
--------
|
| 360 |
+
>>> pd.set_option('display.max_columns', 4)
|
| 361 |
+
>>> df = pd.DataFrame([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]])
|
| 362 |
+
>>> df
|
| 363 |
+
0 1 ... 3 4
|
| 364 |
+
0 1 2 ... 4 5
|
| 365 |
+
1 6 7 ... 9 10
|
| 366 |
+
[2 rows x 5 columns]
|
| 367 |
+
>>> pd.reset_option('display.max_columns')
|
| 368 |
+
"""
|
| 369 |
+
|
| 370 |
+
_describe_option_tmpl = """
|
| 371 |
+
describe_option(pat, _print_desc=False)
|
| 372 |
+
|
| 373 |
+
Prints the description for one or more registered options.
|
| 374 |
+
|
| 375 |
+
Call with no arguments to get a listing for all registered options.
|
| 376 |
+
|
| 377 |
+
Available options:
|
| 378 |
+
|
| 379 |
+
{opts_list}
|
| 380 |
+
|
| 381 |
+
Parameters
|
| 382 |
+
----------
|
| 383 |
+
pat : str
|
| 384 |
+
Regexp pattern. All matching keys will have their description displayed.
|
| 385 |
+
_print_desc : bool, default True
|
| 386 |
+
If True (default) the description(s) will be printed to stdout.
|
| 387 |
+
Otherwise, the description(s) will be returned as a unicode string
|
| 388 |
+
(for testing).
|
| 389 |
+
|
| 390 |
+
Returns
|
| 391 |
+
-------
|
| 392 |
+
None by default, the description(s) as a unicode string if _print_desc
|
| 393 |
+
is False
|
| 394 |
+
|
| 395 |
+
Notes
|
| 396 |
+
-----
|
| 397 |
+
Please reference the :ref:`User Guide <options>` for more information.
|
| 398 |
+
|
| 399 |
+
The available options with its descriptions:
|
| 400 |
+
|
| 401 |
+
{opts_desc}
|
| 402 |
+
|
| 403 |
+
Examples
|
| 404 |
+
--------
|
| 405 |
+
>>> pd.describe_option('display.max_columns') # doctest: +SKIP
|
| 406 |
+
display.max_columns : int
|
| 407 |
+
If max_cols is exceeded, switch to truncate view...
|
| 408 |
+
"""
|
| 409 |
+
|
| 410 |
+
_reset_option_tmpl = """
|
| 411 |
+
reset_option(pat)
|
| 412 |
+
|
| 413 |
+
Reset one or more options to their default value.
|
| 414 |
+
|
| 415 |
+
Pass "all" as argument to reset all options.
|
| 416 |
+
|
| 417 |
+
Available options:
|
| 418 |
+
|
| 419 |
+
{opts_list}
|
| 420 |
+
|
| 421 |
+
Parameters
|
| 422 |
+
----------
|
| 423 |
+
pat : str/regex
|
| 424 |
+
If specified only options matching `prefix*` will be reset.
|
| 425 |
+
Note: partial matches are supported for convenience, but unless you
|
| 426 |
+
use the full option name (e.g. x.y.z.option_name), your code may break
|
| 427 |
+
in future versions if new options with similar names are introduced.
|
| 428 |
+
|
| 429 |
+
Returns
|
| 430 |
+
-------
|
| 431 |
+
None
|
| 432 |
+
|
| 433 |
+
Notes
|
| 434 |
+
-----
|
| 435 |
+
Please reference the :ref:`User Guide <options>` for more information.
|
| 436 |
+
|
| 437 |
+
The available options with its descriptions:
|
| 438 |
+
|
| 439 |
+
{opts_desc}
|
| 440 |
+
|
| 441 |
+
Examples
|
| 442 |
+
--------
|
| 443 |
+
>>> pd.reset_option('display.max_columns') # doctest: +SKIP
|
| 444 |
+
"""
|
| 445 |
+
|
| 446 |
+
# bind the functions with their docstrings into a Callable
|
| 447 |
+
# and use that as the functions exposed in pd.api
|
| 448 |
+
get_option = CallableDynamicDoc(_get_option, _get_option_tmpl)
|
| 449 |
+
set_option = CallableDynamicDoc(_set_option, _set_option_tmpl)
|
| 450 |
+
reset_option = CallableDynamicDoc(_reset_option, _reset_option_tmpl)
|
| 451 |
+
describe_option = CallableDynamicDoc(_describe_option, _describe_option_tmpl)
|
| 452 |
+
options = DictWrapper(_global_config)
|
| 453 |
+
|
| 454 |
+
#
|
| 455 |
+
# Functions for use by pandas developers, in addition to User - api
|
| 456 |
+
|
| 457 |
+
|
| 458 |
+
class option_context(ContextDecorator):
|
| 459 |
+
"""
|
| 460 |
+
Context manager to temporarily set options in the `with` statement context.
|
| 461 |
+
|
| 462 |
+
You need to invoke as ``option_context(pat, val, [(pat, val), ...])``.
|
| 463 |
+
|
| 464 |
+
Examples
|
| 465 |
+
--------
|
| 466 |
+
>>> from pandas import option_context
|
| 467 |
+
>>> with option_context('display.max_rows', 10, 'display.max_columns', 5):
|
| 468 |
+
... pass
|
| 469 |
+
"""
|
| 470 |
+
|
| 471 |
+
def __init__(self, *args) -> None:
|
| 472 |
+
if len(args) % 2 != 0 or len(args) < 2:
|
| 473 |
+
raise ValueError(
|
| 474 |
+
"Need to invoke as option_context(pat, val, [(pat, val), ...])."
|
| 475 |
+
)
|
| 476 |
+
|
| 477 |
+
self.ops = list(zip(args[::2], args[1::2]))
|
| 478 |
+
|
| 479 |
+
def __enter__(self) -> None:
|
| 480 |
+
self.undo = [(pat, _get_option(pat)) for pat, val in self.ops]
|
| 481 |
+
|
| 482 |
+
for pat, val in self.ops:
|
| 483 |
+
_set_option(pat, val, silent=True)
|
| 484 |
+
|
| 485 |
+
def __exit__(self, *args) -> None:
|
| 486 |
+
if self.undo:
|
| 487 |
+
for pat, val in self.undo:
|
| 488 |
+
_set_option(pat, val, silent=True)
|
| 489 |
+
|
| 490 |
+
|
| 491 |
+
def register_option(
|
| 492 |
+
key: str,
|
| 493 |
+
defval: object,
|
| 494 |
+
doc: str = "",
|
| 495 |
+
validator: Callable[[object], Any] | None = None,
|
| 496 |
+
cb: Callable[[str], Any] | None = None,
|
| 497 |
+
) -> None:
|
| 498 |
+
"""
|
| 499 |
+
Register an option in the package-wide pandas config object
|
| 500 |
+
|
| 501 |
+
Parameters
|
| 502 |
+
----------
|
| 503 |
+
key : str
|
| 504 |
+
Fully-qualified key, e.g. "x.y.option - z".
|
| 505 |
+
defval : object
|
| 506 |
+
Default value of the option.
|
| 507 |
+
doc : str
|
| 508 |
+
Description of the option.
|
| 509 |
+
validator : Callable, optional
|
| 510 |
+
Function of a single argument, should raise `ValueError` if
|
| 511 |
+
called with a value which is not a legal value for the option.
|
| 512 |
+
cb
|
| 513 |
+
a function of a single argument "key", which is called
|
| 514 |
+
immediately after an option value is set/reset. key is
|
| 515 |
+
the full name of the option.
|
| 516 |
+
|
| 517 |
+
Raises
|
| 518 |
+
------
|
| 519 |
+
ValueError if `validator` is specified and `defval` is not a valid value.
|
| 520 |
+
|
| 521 |
+
"""
|
| 522 |
+
import keyword
|
| 523 |
+
import tokenize
|
| 524 |
+
|
| 525 |
+
key = key.lower()
|
| 526 |
+
|
| 527 |
+
if key in _registered_options:
|
| 528 |
+
raise OptionError(f"Option '{key}' has already been registered")
|
| 529 |
+
if key in _reserved_keys:
|
| 530 |
+
raise OptionError(f"Option '{key}' is a reserved key")
|
| 531 |
+
|
| 532 |
+
# the default value should be legal
|
| 533 |
+
if validator:
|
| 534 |
+
validator(defval)
|
| 535 |
+
|
| 536 |
+
# walk the nested dict, creating dicts as needed along the path
|
| 537 |
+
path = key.split(".")
|
| 538 |
+
|
| 539 |
+
for k in path:
|
| 540 |
+
if not re.match("^" + tokenize.Name + "$", k):
|
| 541 |
+
raise ValueError(f"{k} is not a valid identifier")
|
| 542 |
+
if keyword.iskeyword(k):
|
| 543 |
+
raise ValueError(f"{k} is a python keyword")
|
| 544 |
+
|
| 545 |
+
cursor = _global_config
|
| 546 |
+
msg = "Path prefix to option '{option}' is already an option"
|
| 547 |
+
|
| 548 |
+
for i, p in enumerate(path[:-1]):
|
| 549 |
+
if not isinstance(cursor, dict):
|
| 550 |
+
raise OptionError(msg.format(option=".".join(path[:i])))
|
| 551 |
+
if p not in cursor:
|
| 552 |
+
cursor[p] = {}
|
| 553 |
+
cursor = cursor[p]
|
| 554 |
+
|
| 555 |
+
if not isinstance(cursor, dict):
|
| 556 |
+
raise OptionError(msg.format(option=".".join(path[:-1])))
|
| 557 |
+
|
| 558 |
+
cursor[path[-1]] = defval # initialize
|
| 559 |
+
|
| 560 |
+
# save the option metadata
|
| 561 |
+
_registered_options[key] = RegisteredOption(
|
| 562 |
+
key=key, defval=defval, doc=doc, validator=validator, cb=cb
|
| 563 |
+
)
|
| 564 |
+
|
| 565 |
+
|
| 566 |
+
def deprecate_option(
|
| 567 |
+
key: str,
|
| 568 |
+
msg: str | None = None,
|
| 569 |
+
rkey: str | None = None,
|
| 570 |
+
removal_ver: str | None = None,
|
| 571 |
+
) -> None:
|
| 572 |
+
"""
|
| 573 |
+
Mark option `key` as deprecated, if code attempts to access this option,
|
| 574 |
+
a warning will be produced, using `msg` if given, or a default message
|
| 575 |
+
if not.
|
| 576 |
+
if `rkey` is given, any access to the key will be re-routed to `rkey`.
|
| 577 |
+
|
| 578 |
+
Neither the existence of `key` nor that if `rkey` is checked. If they
|
| 579 |
+
do not exist, any subsequence access will fail as usual, after the
|
| 580 |
+
deprecation warning is given.
|
| 581 |
+
|
| 582 |
+
Parameters
|
| 583 |
+
----------
|
| 584 |
+
key : str
|
| 585 |
+
Name of the option to be deprecated.
|
| 586 |
+
must be a fully-qualified option name (e.g "x.y.z.rkey").
|
| 587 |
+
msg : str, optional
|
| 588 |
+
Warning message to output when the key is referenced.
|
| 589 |
+
if no message is given a default message will be emitted.
|
| 590 |
+
rkey : str, optional
|
| 591 |
+
Name of an option to reroute access to.
|
| 592 |
+
If specified, any referenced `key` will be
|
| 593 |
+
re-routed to `rkey` including set/get/reset.
|
| 594 |
+
rkey must be a fully-qualified option name (e.g "x.y.z.rkey").
|
| 595 |
+
used by the default message if no `msg` is specified.
|
| 596 |
+
removal_ver : str, optional
|
| 597 |
+
Specifies the version in which this option will
|
| 598 |
+
be removed. used by the default message if no `msg` is specified.
|
| 599 |
+
|
| 600 |
+
Raises
|
| 601 |
+
------
|
| 602 |
+
OptionError
|
| 603 |
+
If the specified key has already been deprecated.
|
| 604 |
+
"""
|
| 605 |
+
key = key.lower()
|
| 606 |
+
|
| 607 |
+
if key in _deprecated_options:
|
| 608 |
+
raise OptionError(f"Option '{key}' has already been defined as deprecated.")
|
| 609 |
+
|
| 610 |
+
_deprecated_options[key] = DeprecatedOption(key, msg, rkey, removal_ver)
|
| 611 |
+
|
| 612 |
+
|
| 613 |
+
#
|
| 614 |
+
# functions internal to the module
|
| 615 |
+
|
| 616 |
+
|
| 617 |
+
def _select_options(pat: str) -> list[str]:
|
| 618 |
+
"""
|
| 619 |
+
returns a list of keys matching `pat`
|
| 620 |
+
|
| 621 |
+
if pat=="all", returns all registered options
|
| 622 |
+
"""
|
| 623 |
+
# short-circuit for exact key
|
| 624 |
+
if pat in _registered_options:
|
| 625 |
+
return [pat]
|
| 626 |
+
|
| 627 |
+
# else look through all of them
|
| 628 |
+
keys = sorted(_registered_options.keys())
|
| 629 |
+
if pat == "all": # reserved key
|
| 630 |
+
return keys
|
| 631 |
+
|
| 632 |
+
return [k for k in keys if re.search(pat, k, re.I)]
|
| 633 |
+
|
| 634 |
+
|
| 635 |
+
def _get_root(key: str) -> tuple[dict[str, Any], str]:
|
| 636 |
+
path = key.split(".")
|
| 637 |
+
cursor = _global_config
|
| 638 |
+
for p in path[:-1]:
|
| 639 |
+
cursor = cursor[p]
|
| 640 |
+
return cursor, path[-1]
|
| 641 |
+
|
| 642 |
+
|
| 643 |
+
def _is_deprecated(key: str) -> bool:
|
| 644 |
+
"""Returns True if the given option has been deprecated"""
|
| 645 |
+
key = key.lower()
|
| 646 |
+
return key in _deprecated_options
|
| 647 |
+
|
| 648 |
+
|
| 649 |
+
def _get_deprecated_option(key: str):
|
| 650 |
+
"""
|
| 651 |
+
Retrieves the metadata for a deprecated option, if `key` is deprecated.
|
| 652 |
+
|
| 653 |
+
Returns
|
| 654 |
+
-------
|
| 655 |
+
DeprecatedOption (namedtuple) if key is deprecated, None otherwise
|
| 656 |
+
"""
|
| 657 |
+
try:
|
| 658 |
+
d = _deprecated_options[key]
|
| 659 |
+
except KeyError:
|
| 660 |
+
return None
|
| 661 |
+
else:
|
| 662 |
+
return d
|
| 663 |
+
|
| 664 |
+
|
| 665 |
+
def _get_registered_option(key: str):
|
| 666 |
+
"""
|
| 667 |
+
Retrieves the option metadata if `key` is a registered option.
|
| 668 |
+
|
| 669 |
+
Returns
|
| 670 |
+
-------
|
| 671 |
+
RegisteredOption (namedtuple) if key is deprecated, None otherwise
|
| 672 |
+
"""
|
| 673 |
+
return _registered_options.get(key)
|
| 674 |
+
|
| 675 |
+
|
| 676 |
+
def _translate_key(key: str) -> str:
|
| 677 |
+
"""
|
| 678 |
+
if key id deprecated and a replacement key defined, will return the
|
| 679 |
+
replacement key, otherwise returns `key` as - is
|
| 680 |
+
"""
|
| 681 |
+
d = _get_deprecated_option(key)
|
| 682 |
+
if d:
|
| 683 |
+
return d.rkey or key
|
| 684 |
+
else:
|
| 685 |
+
return key
|
| 686 |
+
|
| 687 |
+
|
| 688 |
+
def _warn_if_deprecated(key: str) -> bool:
|
| 689 |
+
"""
|
| 690 |
+
Checks if `key` is a deprecated option and if so, prints a warning.
|
| 691 |
+
|
| 692 |
+
Returns
|
| 693 |
+
-------
|
| 694 |
+
bool - True if `key` is deprecated, False otherwise.
|
| 695 |
+
"""
|
| 696 |
+
d = _get_deprecated_option(key)
|
| 697 |
+
if d:
|
| 698 |
+
if d.msg:
|
| 699 |
+
warnings.warn(
|
| 700 |
+
d.msg,
|
| 701 |
+
FutureWarning,
|
| 702 |
+
stacklevel=find_stack_level(),
|
| 703 |
+
)
|
| 704 |
+
else:
|
| 705 |
+
msg = f"'{key}' is deprecated"
|
| 706 |
+
if d.removal_ver:
|
| 707 |
+
msg += f" and will be removed in {d.removal_ver}"
|
| 708 |
+
if d.rkey:
|
| 709 |
+
msg += f", please use '{d.rkey}' instead."
|
| 710 |
+
else:
|
| 711 |
+
msg += ", please refrain from using it."
|
| 712 |
+
|
| 713 |
+
warnings.warn(msg, FutureWarning, stacklevel=find_stack_level())
|
| 714 |
+
return True
|
| 715 |
+
return False
|
| 716 |
+
|
| 717 |
+
|
| 718 |
+
def _build_option_description(k: str) -> str:
|
| 719 |
+
"""Builds a formatted description of a registered option and prints it"""
|
| 720 |
+
o = _get_registered_option(k)
|
| 721 |
+
d = _get_deprecated_option(k)
|
| 722 |
+
|
| 723 |
+
s = f"{k} "
|
| 724 |
+
|
| 725 |
+
if o.doc:
|
| 726 |
+
s += "\n".join(o.doc.strip().split("\n"))
|
| 727 |
+
else:
|
| 728 |
+
s += "No description available."
|
| 729 |
+
|
| 730 |
+
if o:
|
| 731 |
+
s += f"\n [default: {o.defval}] [currently: {_get_option(k, True)}]"
|
| 732 |
+
|
| 733 |
+
if d:
|
| 734 |
+
rkey = d.rkey or ""
|
| 735 |
+
s += "\n (Deprecated"
|
| 736 |
+
s += f", use `{rkey}` instead."
|
| 737 |
+
s += ")"
|
| 738 |
+
|
| 739 |
+
return s
|
| 740 |
+
|
| 741 |
+
|
| 742 |
+
def pp_options_list(keys: Iterable[str], width: int = 80, _print: bool = False):
|
| 743 |
+
"""Builds a concise listing of available options, grouped by prefix"""
|
| 744 |
+
from itertools import groupby
|
| 745 |
+
from textwrap import wrap
|
| 746 |
+
|
| 747 |
+
def pp(name: str, ks: Iterable[str]) -> list[str]:
|
| 748 |
+
pfx = "- " + name + ".[" if name else ""
|
| 749 |
+
ls = wrap(
|
| 750 |
+
", ".join(ks),
|
| 751 |
+
width,
|
| 752 |
+
initial_indent=pfx,
|
| 753 |
+
subsequent_indent=" ",
|
| 754 |
+
break_long_words=False,
|
| 755 |
+
)
|
| 756 |
+
if ls and ls[-1] and name:
|
| 757 |
+
ls[-1] = ls[-1] + "]"
|
| 758 |
+
return ls
|
| 759 |
+
|
| 760 |
+
ls: list[str] = []
|
| 761 |
+
singles = [x for x in sorted(keys) if x.find(".") < 0]
|
| 762 |
+
if singles:
|
| 763 |
+
ls += pp("", singles)
|
| 764 |
+
keys = [x for x in keys if x.find(".") >= 0]
|
| 765 |
+
|
| 766 |
+
for k, g in groupby(sorted(keys), lambda x: x[: x.rfind(".")]):
|
| 767 |
+
ks = [x[len(k) + 1 :] for x in list(g)]
|
| 768 |
+
ls += pp(k, ks)
|
| 769 |
+
s = "\n".join(ls)
|
| 770 |
+
if _print:
|
| 771 |
+
print(s)
|
| 772 |
+
else:
|
| 773 |
+
return s
|
| 774 |
+
|
| 775 |
+
|
| 776 |
+
#
|
| 777 |
+
# helpers
|
| 778 |
+
|
| 779 |
+
|
| 780 |
+
@contextmanager
|
| 781 |
+
def config_prefix(prefix: str) -> Generator[None, None, None]:
|
| 782 |
+
"""
|
| 783 |
+
contextmanager for multiple invocations of API with a common prefix
|
| 784 |
+
|
| 785 |
+
supported API functions: (register / get / set )__option
|
| 786 |
+
|
| 787 |
+
Warning: This is not thread - safe, and won't work properly if you import
|
| 788 |
+
the API functions into your module using the "from x import y" construct.
|
| 789 |
+
|
| 790 |
+
Example
|
| 791 |
+
-------
|
| 792 |
+
import pandas._config.config as cf
|
| 793 |
+
with cf.config_prefix("display.font"):
|
| 794 |
+
cf.register_option("color", "red")
|
| 795 |
+
cf.register_option("size", " 5 pt")
|
| 796 |
+
cf.set_option(size, " 6 pt")
|
| 797 |
+
cf.get_option(size)
|
| 798 |
+
...
|
| 799 |
+
|
| 800 |
+
etc'
|
| 801 |
+
|
| 802 |
+
will register options "display.font.color", "display.font.size", set the
|
| 803 |
+
value of "display.font.size"... and so on.
|
| 804 |
+
"""
|
| 805 |
+
# Note: reset_option relies on set_option, and on key directly
|
| 806 |
+
# it does not fit in to this monkey-patching scheme
|
| 807 |
+
|
| 808 |
+
global register_option, get_option, set_option
|
| 809 |
+
|
| 810 |
+
def wrap(func: F) -> F:
|
| 811 |
+
def inner(key: str, *args, **kwds):
|
| 812 |
+
pkey = f"{prefix}.{key}"
|
| 813 |
+
return func(pkey, *args, **kwds)
|
| 814 |
+
|
| 815 |
+
return cast(F, inner)
|
| 816 |
+
|
| 817 |
+
_register_option = register_option
|
| 818 |
+
_get_option = get_option
|
| 819 |
+
_set_option = set_option
|
| 820 |
+
set_option = wrap(set_option)
|
| 821 |
+
get_option = wrap(get_option)
|
| 822 |
+
register_option = wrap(register_option)
|
| 823 |
+
try:
|
| 824 |
+
yield
|
| 825 |
+
finally:
|
| 826 |
+
set_option = _set_option
|
| 827 |
+
get_option = _get_option
|
| 828 |
+
register_option = _register_option
|
| 829 |
+
|
| 830 |
+
|
| 831 |
+
# These factories and methods are handy for use as the validator
|
| 832 |
+
# arg in register_option
|
| 833 |
+
|
| 834 |
+
|
| 835 |
+
def is_type_factory(_type: type[Any]) -> Callable[[Any], None]:
|
| 836 |
+
"""
|
| 837 |
+
|
| 838 |
+
Parameters
|
| 839 |
+
----------
|
| 840 |
+
`_type` - a type to be compared against (e.g. type(x) == `_type`)
|
| 841 |
+
|
| 842 |
+
Returns
|
| 843 |
+
-------
|
| 844 |
+
validator - a function of a single argument x , which raises
|
| 845 |
+
ValueError if type(x) is not equal to `_type`
|
| 846 |
+
|
| 847 |
+
"""
|
| 848 |
+
|
| 849 |
+
def inner(x) -> None:
|
| 850 |
+
if type(x) != _type:
|
| 851 |
+
raise ValueError(f"Value must have type '{_type}'")
|
| 852 |
+
|
| 853 |
+
return inner
|
| 854 |
+
|
| 855 |
+
|
| 856 |
+
def is_instance_factory(_type) -> Callable[[Any], None]:
|
| 857 |
+
"""
|
| 858 |
+
|
| 859 |
+
Parameters
|
| 860 |
+
----------
|
| 861 |
+
`_type` - the type to be checked against
|
| 862 |
+
|
| 863 |
+
Returns
|
| 864 |
+
-------
|
| 865 |
+
validator - a function of a single argument x , which raises
|
| 866 |
+
ValueError if x is not an instance of `_type`
|
| 867 |
+
|
| 868 |
+
"""
|
| 869 |
+
if isinstance(_type, (tuple, list)):
|
| 870 |
+
_type = tuple(_type)
|
| 871 |
+
type_repr = "|".join(map(str, _type))
|
| 872 |
+
else:
|
| 873 |
+
type_repr = f"'{_type}'"
|
| 874 |
+
|
| 875 |
+
def inner(x) -> None:
|
| 876 |
+
if not isinstance(x, _type):
|
| 877 |
+
raise ValueError(f"Value must be an instance of {type_repr}")
|
| 878 |
+
|
| 879 |
+
return inner
|
| 880 |
+
|
| 881 |
+
|
| 882 |
+
def is_one_of_factory(legal_values) -> Callable[[Any], None]:
|
| 883 |
+
callables = [c for c in legal_values if callable(c)]
|
| 884 |
+
legal_values = [c for c in legal_values if not callable(c)]
|
| 885 |
+
|
| 886 |
+
def inner(x) -> None:
|
| 887 |
+
if x not in legal_values:
|
| 888 |
+
if not any(c(x) for c in callables):
|
| 889 |
+
uvals = [str(lval) for lval in legal_values]
|
| 890 |
+
pp_values = "|".join(uvals)
|
| 891 |
+
msg = f"Value must be one of {pp_values}"
|
| 892 |
+
if len(callables):
|
| 893 |
+
msg += " or a callable"
|
| 894 |
+
raise ValueError(msg)
|
| 895 |
+
|
| 896 |
+
return inner
|
| 897 |
+
|
| 898 |
+
|
| 899 |
+
def is_nonnegative_int(value: object) -> None:
|
| 900 |
+
"""
|
| 901 |
+
Verify that value is None or a positive int.
|
| 902 |
+
|
| 903 |
+
Parameters
|
| 904 |
+
----------
|
| 905 |
+
value : None or int
|
| 906 |
+
The `value` to be checked.
|
| 907 |
+
|
| 908 |
+
Raises
|
| 909 |
+
------
|
| 910 |
+
ValueError
|
| 911 |
+
When the value is not None or is a negative integer
|
| 912 |
+
"""
|
| 913 |
+
if value is None:
|
| 914 |
+
return
|
| 915 |
+
|
| 916 |
+
elif isinstance(value, int):
|
| 917 |
+
if value >= 0:
|
| 918 |
+
return
|
| 919 |
+
|
| 920 |
+
msg = "Value must be a nonnegative integer or None"
|
| 921 |
+
raise ValueError(msg)
|
| 922 |
+
|
| 923 |
+
|
| 924 |
+
# common type validators, for convenience
|
| 925 |
+
# usage: register_option(... , validator = is_int)
|
| 926 |
+
is_int = is_type_factory(int)
|
| 927 |
+
is_bool = is_type_factory(bool)
|
| 928 |
+
is_float = is_type_factory(float)
|
| 929 |
+
is_str = is_type_factory(str)
|
| 930 |
+
is_text = is_instance_factory((str, bytes))
|
| 931 |
+
|
| 932 |
+
|
| 933 |
+
def is_callable(obj) -> bool:
|
| 934 |
+
"""
|
| 935 |
+
|
| 936 |
+
Parameters
|
| 937 |
+
----------
|
| 938 |
+
`obj` - the object to be checked
|
| 939 |
+
|
| 940 |
+
Returns
|
| 941 |
+
-------
|
| 942 |
+
validator - returns True if object is callable
|
| 943 |
+
raises ValueError otherwise.
|
| 944 |
+
|
| 945 |
+
"""
|
| 946 |
+
if not callable(obj):
|
| 947 |
+
raise ValueError("Value must be a callable")
|
| 948 |
+
return True
|
.venv_haddock/lib/python3.12/site-packages/pandas/_config/dates.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
config for datetime formatting
|
| 3 |
+
"""
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
from pandas._config import config as cf
|
| 7 |
+
|
| 8 |
+
pc_date_dayfirst_doc = """
|
| 9 |
+
: boolean
|
| 10 |
+
When True, prints and parses dates with the day first, eg 20/01/2005
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
+
pc_date_yearfirst_doc = """
|
| 14 |
+
: boolean
|
| 15 |
+
When True, prints and parses dates with the year first, eg 2005/01/20
|
| 16 |
+
"""
|
| 17 |
+
|
| 18 |
+
with cf.config_prefix("display"):
|
| 19 |
+
# Needed upstream of `_libs` because these are used in tslibs.parsing
|
| 20 |
+
cf.register_option(
|
| 21 |
+
"date_dayfirst", False, pc_date_dayfirst_doc, validator=cf.is_bool
|
| 22 |
+
)
|
| 23 |
+
cf.register_option(
|
| 24 |
+
"date_yearfirst", False, pc_date_yearfirst_doc, validator=cf.is_bool
|
| 25 |
+
)
|
.venv_haddock/lib/python3.12/site-packages/pandas/_config/display.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Unopinionated display configuration.
|
| 3 |
+
"""
|
| 4 |
+
|
| 5 |
+
from __future__ import annotations
|
| 6 |
+
|
| 7 |
+
import locale
|
| 8 |
+
import sys
|
| 9 |
+
|
| 10 |
+
from pandas._config import config as cf
|
| 11 |
+
|
| 12 |
+
# -----------------------------------------------------------------------------
|
| 13 |
+
# Global formatting options
|
| 14 |
+
_initial_defencoding: str | None = None
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def detect_console_encoding() -> str:
|
| 18 |
+
"""
|
| 19 |
+
Try to find the most capable encoding supported by the console.
|
| 20 |
+
slightly modified from the way IPython handles the same issue.
|
| 21 |
+
"""
|
| 22 |
+
global _initial_defencoding
|
| 23 |
+
|
| 24 |
+
encoding = None
|
| 25 |
+
try:
|
| 26 |
+
encoding = sys.stdout.encoding or sys.stdin.encoding
|
| 27 |
+
except (AttributeError, OSError):
|
| 28 |
+
pass
|
| 29 |
+
|
| 30 |
+
# try again for something better
|
| 31 |
+
if not encoding or "ascii" in encoding.lower():
|
| 32 |
+
try:
|
| 33 |
+
encoding = locale.getpreferredencoding()
|
| 34 |
+
except locale.Error:
|
| 35 |
+
# can be raised by locale.setlocale(), which is
|
| 36 |
+
# called by getpreferredencoding
|
| 37 |
+
# (on some systems, see stdlib locale docs)
|
| 38 |
+
pass
|
| 39 |
+
|
| 40 |
+
# when all else fails. this will usually be "ascii"
|
| 41 |
+
if not encoding or "ascii" in encoding.lower():
|
| 42 |
+
encoding = sys.getdefaultencoding()
|
| 43 |
+
|
| 44 |
+
# GH#3360, save the reported defencoding at import time
|
| 45 |
+
# MPL backends may change it. Make available for debugging.
|
| 46 |
+
if not _initial_defencoding:
|
| 47 |
+
_initial_defencoding = sys.getdefaultencoding()
|
| 48 |
+
|
| 49 |
+
return encoding
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
pc_encoding_doc = """
|
| 53 |
+
: str/unicode
|
| 54 |
+
Defaults to the detected encoding of the console.
|
| 55 |
+
Specifies the encoding to be used for strings returned by to_string,
|
| 56 |
+
these are generally strings meant to be displayed on the console.
|
| 57 |
+
"""
|
| 58 |
+
|
| 59 |
+
with cf.config_prefix("display"):
|
| 60 |
+
cf.register_option(
|
| 61 |
+
"encoding", detect_console_encoding(), pc_encoding_doc, validator=cf.is_text
|
| 62 |
+
)
|
.venv_haddock/lib/python3.12/site-packages/pandas/_config/localization.py
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Helpers for configuring locale settings.
|
| 3 |
+
|
| 4 |
+
Name `localization` is chosen to avoid overlap with builtin `locale` module.
|
| 5 |
+
"""
|
| 6 |
+
from __future__ import annotations
|
| 7 |
+
|
| 8 |
+
from contextlib import contextmanager
|
| 9 |
+
import locale
|
| 10 |
+
import platform
|
| 11 |
+
import re
|
| 12 |
+
import subprocess
|
| 13 |
+
from typing import TYPE_CHECKING
|
| 14 |
+
|
| 15 |
+
from pandas._config.config import options
|
| 16 |
+
|
| 17 |
+
if TYPE_CHECKING:
|
| 18 |
+
from collections.abc import Generator
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
@contextmanager
|
| 22 |
+
def set_locale(
|
| 23 |
+
new_locale: str | tuple[str, str], lc_var: int = locale.LC_ALL
|
| 24 |
+
) -> Generator[str | tuple[str, str], None, None]:
|
| 25 |
+
"""
|
| 26 |
+
Context manager for temporarily setting a locale.
|
| 27 |
+
|
| 28 |
+
Parameters
|
| 29 |
+
----------
|
| 30 |
+
new_locale : str or tuple
|
| 31 |
+
A string of the form <language_country>.<encoding>. For example to set
|
| 32 |
+
the current locale to US English with a UTF8 encoding, you would pass
|
| 33 |
+
"en_US.UTF-8".
|
| 34 |
+
lc_var : int, default `locale.LC_ALL`
|
| 35 |
+
The category of the locale being set.
|
| 36 |
+
|
| 37 |
+
Notes
|
| 38 |
+
-----
|
| 39 |
+
This is useful when you want to run a particular block of code under a
|
| 40 |
+
particular locale, without globally setting the locale. This probably isn't
|
| 41 |
+
thread-safe.
|
| 42 |
+
"""
|
| 43 |
+
# getlocale is not always compliant with setlocale, use setlocale. GH#46595
|
| 44 |
+
current_locale = locale.setlocale(lc_var)
|
| 45 |
+
|
| 46 |
+
try:
|
| 47 |
+
locale.setlocale(lc_var, new_locale)
|
| 48 |
+
normalized_code, normalized_encoding = locale.getlocale()
|
| 49 |
+
if normalized_code is not None and normalized_encoding is not None:
|
| 50 |
+
yield f"{normalized_code}.{normalized_encoding}"
|
| 51 |
+
else:
|
| 52 |
+
yield new_locale
|
| 53 |
+
finally:
|
| 54 |
+
locale.setlocale(lc_var, current_locale)
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def can_set_locale(lc: str, lc_var: int = locale.LC_ALL) -> bool:
|
| 58 |
+
"""
|
| 59 |
+
Check to see if we can set a locale, and subsequently get the locale,
|
| 60 |
+
without raising an Exception.
|
| 61 |
+
|
| 62 |
+
Parameters
|
| 63 |
+
----------
|
| 64 |
+
lc : str
|
| 65 |
+
The locale to attempt to set.
|
| 66 |
+
lc_var : int, default `locale.LC_ALL`
|
| 67 |
+
The category of the locale being set.
|
| 68 |
+
|
| 69 |
+
Returns
|
| 70 |
+
-------
|
| 71 |
+
bool
|
| 72 |
+
Whether the passed locale can be set
|
| 73 |
+
"""
|
| 74 |
+
try:
|
| 75 |
+
with set_locale(lc, lc_var=lc_var):
|
| 76 |
+
pass
|
| 77 |
+
except (ValueError, locale.Error):
|
| 78 |
+
# horrible name for a Exception subclass
|
| 79 |
+
return False
|
| 80 |
+
else:
|
| 81 |
+
return True
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def _valid_locales(locales: list[str] | str, normalize: bool) -> list[str]:
|
| 85 |
+
"""
|
| 86 |
+
Return a list of normalized locales that do not throw an ``Exception``
|
| 87 |
+
when set.
|
| 88 |
+
|
| 89 |
+
Parameters
|
| 90 |
+
----------
|
| 91 |
+
locales : str
|
| 92 |
+
A string where each locale is separated by a newline.
|
| 93 |
+
normalize : bool
|
| 94 |
+
Whether to call ``locale.normalize`` on each locale.
|
| 95 |
+
|
| 96 |
+
Returns
|
| 97 |
+
-------
|
| 98 |
+
valid_locales : list
|
| 99 |
+
A list of valid locales.
|
| 100 |
+
"""
|
| 101 |
+
return [
|
| 102 |
+
loc
|
| 103 |
+
for loc in (
|
| 104 |
+
locale.normalize(loc.strip()) if normalize else loc.strip()
|
| 105 |
+
for loc in locales
|
| 106 |
+
)
|
| 107 |
+
if can_set_locale(loc)
|
| 108 |
+
]
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
def get_locales(
|
| 112 |
+
prefix: str | None = None,
|
| 113 |
+
normalize: bool = True,
|
| 114 |
+
) -> list[str]:
|
| 115 |
+
"""
|
| 116 |
+
Get all the locales that are available on the system.
|
| 117 |
+
|
| 118 |
+
Parameters
|
| 119 |
+
----------
|
| 120 |
+
prefix : str
|
| 121 |
+
If not ``None`` then return only those locales with the prefix
|
| 122 |
+
provided. For example to get all English language locales (those that
|
| 123 |
+
start with ``"en"``), pass ``prefix="en"``.
|
| 124 |
+
normalize : bool
|
| 125 |
+
Call ``locale.normalize`` on the resulting list of available locales.
|
| 126 |
+
If ``True``, only locales that can be set without throwing an
|
| 127 |
+
``Exception`` are returned.
|
| 128 |
+
|
| 129 |
+
Returns
|
| 130 |
+
-------
|
| 131 |
+
locales : list of strings
|
| 132 |
+
A list of locale strings that can be set with ``locale.setlocale()``.
|
| 133 |
+
For example::
|
| 134 |
+
|
| 135 |
+
locale.setlocale(locale.LC_ALL, locale_string)
|
| 136 |
+
|
| 137 |
+
On error will return an empty list (no locale available, e.g. Windows)
|
| 138 |
+
|
| 139 |
+
"""
|
| 140 |
+
if platform.system() in ("Linux", "Darwin"):
|
| 141 |
+
raw_locales = subprocess.check_output(["locale", "-a"])
|
| 142 |
+
else:
|
| 143 |
+
# Other platforms e.g. windows platforms don't define "locale -a"
|
| 144 |
+
# Note: is_platform_windows causes circular import here
|
| 145 |
+
return []
|
| 146 |
+
|
| 147 |
+
try:
|
| 148 |
+
# raw_locales is "\n" separated list of locales
|
| 149 |
+
# it may contain non-decodable parts, so split
|
| 150 |
+
# extract what we can and then rejoin.
|
| 151 |
+
split_raw_locales = raw_locales.split(b"\n")
|
| 152 |
+
out_locales = []
|
| 153 |
+
for x in split_raw_locales:
|
| 154 |
+
try:
|
| 155 |
+
out_locales.append(str(x, encoding=options.display.encoding))
|
| 156 |
+
except UnicodeError:
|
| 157 |
+
# 'locale -a' is used to populated 'raw_locales' and on
|
| 158 |
+
# Redhat 7 Linux (and maybe others) prints locale names
|
| 159 |
+
# using windows-1252 encoding. Bug only triggered by
|
| 160 |
+
# a few special characters and when there is an
|
| 161 |
+
# extensive list of installed locales.
|
| 162 |
+
out_locales.append(str(x, encoding="windows-1252"))
|
| 163 |
+
|
| 164 |
+
except TypeError:
|
| 165 |
+
pass
|
| 166 |
+
|
| 167 |
+
if prefix is None:
|
| 168 |
+
return _valid_locales(out_locales, normalize)
|
| 169 |
+
|
| 170 |
+
pattern = re.compile(f"{prefix}.*")
|
| 171 |
+
found = pattern.findall("\n".join(out_locales))
|
| 172 |
+
return _valid_locales(found, normalize)
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (597 Bytes). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/arrays.pyi
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Sequence
|
| 2 |
+
|
| 3 |
+
import numpy as np
|
| 4 |
+
|
| 5 |
+
from pandas._typing import (
|
| 6 |
+
AxisInt,
|
| 7 |
+
DtypeObj,
|
| 8 |
+
Self,
|
| 9 |
+
Shape,
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
class NDArrayBacked:
|
| 13 |
+
_dtype: DtypeObj
|
| 14 |
+
_ndarray: np.ndarray
|
| 15 |
+
def __init__(self, values: np.ndarray, dtype: DtypeObj) -> None: ...
|
| 16 |
+
@classmethod
|
| 17 |
+
def _simple_new(cls, values: np.ndarray, dtype: DtypeObj): ...
|
| 18 |
+
def _from_backing_data(self, values: np.ndarray): ...
|
| 19 |
+
def __setstate__(self, state): ...
|
| 20 |
+
def __len__(self) -> int: ...
|
| 21 |
+
@property
|
| 22 |
+
def shape(self) -> Shape: ...
|
| 23 |
+
@property
|
| 24 |
+
def ndim(self) -> int: ...
|
| 25 |
+
@property
|
| 26 |
+
def size(self) -> int: ...
|
| 27 |
+
@property
|
| 28 |
+
def nbytes(self) -> int: ...
|
| 29 |
+
def copy(self, order=...): ...
|
| 30 |
+
def delete(self, loc, axis=...): ...
|
| 31 |
+
def swapaxes(self, axis1, axis2): ...
|
| 32 |
+
def repeat(self, repeats: int | Sequence[int], axis: int | None = ...): ...
|
| 33 |
+
def reshape(self, *args, **kwargs): ...
|
| 34 |
+
def ravel(self, order=...): ...
|
| 35 |
+
@property
|
| 36 |
+
def T(self): ...
|
| 37 |
+
@classmethod
|
| 38 |
+
def _concat_same_type(
|
| 39 |
+
cls, to_concat: Sequence[Self], axis: AxisInt = ...
|
| 40 |
+
) -> Self: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/byteswap.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def read_float_with_byteswap(data: bytes, offset: int, byteswap: bool) -> float: ...
|
| 2 |
+
def read_double_with_byteswap(data: bytes, offset: int, byteswap: bool) -> float: ...
|
| 3 |
+
def read_uint16_with_byteswap(data: bytes, offset: int, byteswap: bool) -> int: ...
|
| 4 |
+
def read_uint32_with_byteswap(data: bytes, offset: int, byteswap: bool) -> int: ...
|
| 5 |
+
def read_uint64_with_byteswap(data: bytes, offset: int, byteswap: bool) -> int: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/hashing.pyi
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import numpy as np
|
| 2 |
+
|
| 3 |
+
from pandas._typing import npt
|
| 4 |
+
|
| 5 |
+
def hash_object_array(
|
| 6 |
+
arr: npt.NDArray[np.object_],
|
| 7 |
+
key: str,
|
| 8 |
+
encoding: str = ...,
|
| 9 |
+
) -> npt.NDArray[np.uint64]: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/hashtable.pyi
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import (
|
| 2 |
+
Any,
|
| 3 |
+
Hashable,
|
| 4 |
+
Literal,
|
| 5 |
+
)
|
| 6 |
+
|
| 7 |
+
import numpy as np
|
| 8 |
+
|
| 9 |
+
from pandas._typing import npt
|
| 10 |
+
|
| 11 |
+
def unique_label_indices(
|
| 12 |
+
labels: np.ndarray, # const int64_t[:]
|
| 13 |
+
) -> np.ndarray: ...
|
| 14 |
+
|
| 15 |
+
class Factorizer:
|
| 16 |
+
count: int
|
| 17 |
+
uniques: Any
|
| 18 |
+
def __init__(self, size_hint: int) -> None: ...
|
| 19 |
+
def get_count(self) -> int: ...
|
| 20 |
+
def factorize(
|
| 21 |
+
self,
|
| 22 |
+
values: np.ndarray,
|
| 23 |
+
na_sentinel=...,
|
| 24 |
+
na_value=...,
|
| 25 |
+
mask=...,
|
| 26 |
+
) -> npt.NDArray[np.intp]: ...
|
| 27 |
+
|
| 28 |
+
class ObjectFactorizer(Factorizer):
|
| 29 |
+
table: PyObjectHashTable
|
| 30 |
+
uniques: ObjectVector
|
| 31 |
+
|
| 32 |
+
class Int64Factorizer(Factorizer):
|
| 33 |
+
table: Int64HashTable
|
| 34 |
+
uniques: Int64Vector
|
| 35 |
+
|
| 36 |
+
class UInt64Factorizer(Factorizer):
|
| 37 |
+
table: UInt64HashTable
|
| 38 |
+
uniques: UInt64Vector
|
| 39 |
+
|
| 40 |
+
class Int32Factorizer(Factorizer):
|
| 41 |
+
table: Int32HashTable
|
| 42 |
+
uniques: Int32Vector
|
| 43 |
+
|
| 44 |
+
class UInt32Factorizer(Factorizer):
|
| 45 |
+
table: UInt32HashTable
|
| 46 |
+
uniques: UInt32Vector
|
| 47 |
+
|
| 48 |
+
class Int16Factorizer(Factorizer):
|
| 49 |
+
table: Int16HashTable
|
| 50 |
+
uniques: Int16Vector
|
| 51 |
+
|
| 52 |
+
class UInt16Factorizer(Factorizer):
|
| 53 |
+
table: UInt16HashTable
|
| 54 |
+
uniques: UInt16Vector
|
| 55 |
+
|
| 56 |
+
class Int8Factorizer(Factorizer):
|
| 57 |
+
table: Int8HashTable
|
| 58 |
+
uniques: Int8Vector
|
| 59 |
+
|
| 60 |
+
class UInt8Factorizer(Factorizer):
|
| 61 |
+
table: UInt8HashTable
|
| 62 |
+
uniques: UInt8Vector
|
| 63 |
+
|
| 64 |
+
class Float64Factorizer(Factorizer):
|
| 65 |
+
table: Float64HashTable
|
| 66 |
+
uniques: Float64Vector
|
| 67 |
+
|
| 68 |
+
class Float32Factorizer(Factorizer):
|
| 69 |
+
table: Float32HashTable
|
| 70 |
+
uniques: Float32Vector
|
| 71 |
+
|
| 72 |
+
class Complex64Factorizer(Factorizer):
|
| 73 |
+
table: Complex64HashTable
|
| 74 |
+
uniques: Complex64Vector
|
| 75 |
+
|
| 76 |
+
class Complex128Factorizer(Factorizer):
|
| 77 |
+
table: Complex128HashTable
|
| 78 |
+
uniques: Complex128Vector
|
| 79 |
+
|
| 80 |
+
class Int64Vector:
|
| 81 |
+
def __init__(self, *args) -> None: ...
|
| 82 |
+
def __len__(self) -> int: ...
|
| 83 |
+
def to_array(self) -> npt.NDArray[np.int64]: ...
|
| 84 |
+
|
| 85 |
+
class Int32Vector:
|
| 86 |
+
def __init__(self, *args) -> None: ...
|
| 87 |
+
def __len__(self) -> int: ...
|
| 88 |
+
def to_array(self) -> npt.NDArray[np.int32]: ...
|
| 89 |
+
|
| 90 |
+
class Int16Vector:
|
| 91 |
+
def __init__(self, *args) -> None: ...
|
| 92 |
+
def __len__(self) -> int: ...
|
| 93 |
+
def to_array(self) -> npt.NDArray[np.int16]: ...
|
| 94 |
+
|
| 95 |
+
class Int8Vector:
|
| 96 |
+
def __init__(self, *args) -> None: ...
|
| 97 |
+
def __len__(self) -> int: ...
|
| 98 |
+
def to_array(self) -> npt.NDArray[np.int8]: ...
|
| 99 |
+
|
| 100 |
+
class UInt64Vector:
|
| 101 |
+
def __init__(self, *args) -> None: ...
|
| 102 |
+
def __len__(self) -> int: ...
|
| 103 |
+
def to_array(self) -> npt.NDArray[np.uint64]: ...
|
| 104 |
+
|
| 105 |
+
class UInt32Vector:
|
| 106 |
+
def __init__(self, *args) -> None: ...
|
| 107 |
+
def __len__(self) -> int: ...
|
| 108 |
+
def to_array(self) -> npt.NDArray[np.uint32]: ...
|
| 109 |
+
|
| 110 |
+
class UInt16Vector:
|
| 111 |
+
def __init__(self, *args) -> None: ...
|
| 112 |
+
def __len__(self) -> int: ...
|
| 113 |
+
def to_array(self) -> npt.NDArray[np.uint16]: ...
|
| 114 |
+
|
| 115 |
+
class UInt8Vector:
|
| 116 |
+
def __init__(self, *args) -> None: ...
|
| 117 |
+
def __len__(self) -> int: ...
|
| 118 |
+
def to_array(self) -> npt.NDArray[np.uint8]: ...
|
| 119 |
+
|
| 120 |
+
class Float64Vector:
|
| 121 |
+
def __init__(self, *args) -> None: ...
|
| 122 |
+
def __len__(self) -> int: ...
|
| 123 |
+
def to_array(self) -> npt.NDArray[np.float64]: ...
|
| 124 |
+
|
| 125 |
+
class Float32Vector:
|
| 126 |
+
def __init__(self, *args) -> None: ...
|
| 127 |
+
def __len__(self) -> int: ...
|
| 128 |
+
def to_array(self) -> npt.NDArray[np.float32]: ...
|
| 129 |
+
|
| 130 |
+
class Complex128Vector:
|
| 131 |
+
def __init__(self, *args) -> None: ...
|
| 132 |
+
def __len__(self) -> int: ...
|
| 133 |
+
def to_array(self) -> npt.NDArray[np.complex128]: ...
|
| 134 |
+
|
| 135 |
+
class Complex64Vector:
|
| 136 |
+
def __init__(self, *args) -> None: ...
|
| 137 |
+
def __len__(self) -> int: ...
|
| 138 |
+
def to_array(self) -> npt.NDArray[np.complex64]: ...
|
| 139 |
+
|
| 140 |
+
class StringVector:
|
| 141 |
+
def __init__(self, *args) -> None: ...
|
| 142 |
+
def __len__(self) -> int: ...
|
| 143 |
+
def to_array(self) -> npt.NDArray[np.object_]: ...
|
| 144 |
+
|
| 145 |
+
class ObjectVector:
|
| 146 |
+
def __init__(self, *args) -> None: ...
|
| 147 |
+
def __len__(self) -> int: ...
|
| 148 |
+
def to_array(self) -> npt.NDArray[np.object_]: ...
|
| 149 |
+
|
| 150 |
+
class HashTable:
|
| 151 |
+
# NB: The base HashTable class does _not_ actually have these methods;
|
| 152 |
+
# we are putting them here for the sake of mypy to avoid
|
| 153 |
+
# reproducing them in each subclass below.
|
| 154 |
+
def __init__(self, size_hint: int = ..., uses_mask: bool = ...) -> None: ...
|
| 155 |
+
def __len__(self) -> int: ...
|
| 156 |
+
def __contains__(self, key: Hashable) -> bool: ...
|
| 157 |
+
def sizeof(self, deep: bool = ...) -> int: ...
|
| 158 |
+
def get_state(self) -> dict[str, int]: ...
|
| 159 |
+
# TODO: `val/key` type is subclass-specific
|
| 160 |
+
def get_item(self, val): ... # TODO: return type?
|
| 161 |
+
def set_item(self, key, val) -> None: ...
|
| 162 |
+
def get_na(self): ... # TODO: return type?
|
| 163 |
+
def set_na(self, val) -> None: ...
|
| 164 |
+
def map_locations(
|
| 165 |
+
self,
|
| 166 |
+
values: np.ndarray, # np.ndarray[subclass-specific]
|
| 167 |
+
mask: npt.NDArray[np.bool_] | None = ...,
|
| 168 |
+
) -> None: ...
|
| 169 |
+
def lookup(
|
| 170 |
+
self,
|
| 171 |
+
values: np.ndarray, # np.ndarray[subclass-specific]
|
| 172 |
+
mask: npt.NDArray[np.bool_] | None = ...,
|
| 173 |
+
) -> npt.NDArray[np.intp]: ...
|
| 174 |
+
def get_labels(
|
| 175 |
+
self,
|
| 176 |
+
values: np.ndarray, # np.ndarray[subclass-specific]
|
| 177 |
+
uniques, # SubclassTypeVector
|
| 178 |
+
count_prior: int = ...,
|
| 179 |
+
na_sentinel: int = ...,
|
| 180 |
+
na_value: object = ...,
|
| 181 |
+
mask=...,
|
| 182 |
+
) -> npt.NDArray[np.intp]: ...
|
| 183 |
+
def unique(
|
| 184 |
+
self,
|
| 185 |
+
values: np.ndarray, # np.ndarray[subclass-specific]
|
| 186 |
+
return_inverse: bool = ...,
|
| 187 |
+
mask=...,
|
| 188 |
+
) -> (
|
| 189 |
+
tuple[
|
| 190 |
+
np.ndarray, # np.ndarray[subclass-specific]
|
| 191 |
+
npt.NDArray[np.intp],
|
| 192 |
+
]
|
| 193 |
+
| np.ndarray
|
| 194 |
+
): ... # np.ndarray[subclass-specific]
|
| 195 |
+
def factorize(
|
| 196 |
+
self,
|
| 197 |
+
values: np.ndarray, # np.ndarray[subclass-specific]
|
| 198 |
+
na_sentinel: int = ...,
|
| 199 |
+
na_value: object = ...,
|
| 200 |
+
mask=...,
|
| 201 |
+
ignore_na: bool = True,
|
| 202 |
+
) -> tuple[np.ndarray, npt.NDArray[np.intp]]: ... # np.ndarray[subclass-specific]
|
| 203 |
+
|
| 204 |
+
class Complex128HashTable(HashTable): ...
|
| 205 |
+
class Complex64HashTable(HashTable): ...
|
| 206 |
+
class Float64HashTable(HashTable): ...
|
| 207 |
+
class Float32HashTable(HashTable): ...
|
| 208 |
+
|
| 209 |
+
class Int64HashTable(HashTable):
|
| 210 |
+
# Only Int64HashTable has get_labels_groupby, map_keys_to_values
|
| 211 |
+
def get_labels_groupby(
|
| 212 |
+
self,
|
| 213 |
+
values: npt.NDArray[np.int64], # const int64_t[:]
|
| 214 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.int64]]: ...
|
| 215 |
+
def map_keys_to_values(
|
| 216 |
+
self,
|
| 217 |
+
keys: npt.NDArray[np.int64],
|
| 218 |
+
values: npt.NDArray[np.int64], # const int64_t[:]
|
| 219 |
+
) -> None: ...
|
| 220 |
+
|
| 221 |
+
class Int32HashTable(HashTable): ...
|
| 222 |
+
class Int16HashTable(HashTable): ...
|
| 223 |
+
class Int8HashTable(HashTable): ...
|
| 224 |
+
class UInt64HashTable(HashTable): ...
|
| 225 |
+
class UInt32HashTable(HashTable): ...
|
| 226 |
+
class UInt16HashTable(HashTable): ...
|
| 227 |
+
class UInt8HashTable(HashTable): ...
|
| 228 |
+
class StringHashTable(HashTable): ...
|
| 229 |
+
class PyObjectHashTable(HashTable): ...
|
| 230 |
+
class IntpHashTable(HashTable): ...
|
| 231 |
+
|
| 232 |
+
def duplicated(
|
| 233 |
+
values: np.ndarray,
|
| 234 |
+
keep: Literal["last", "first", False] = ...,
|
| 235 |
+
mask: npt.NDArray[np.bool_] | None = ...,
|
| 236 |
+
) -> npt.NDArray[np.bool_]: ...
|
| 237 |
+
def mode(
|
| 238 |
+
values: np.ndarray, dropna: bool, mask: npt.NDArray[np.bool_] | None = ...
|
| 239 |
+
) -> np.ndarray: ...
|
| 240 |
+
def value_count(
|
| 241 |
+
values: np.ndarray,
|
| 242 |
+
dropna: bool,
|
| 243 |
+
mask: npt.NDArray[np.bool_] | None = ...,
|
| 244 |
+
) -> tuple[np.ndarray, npt.NDArray[np.int64], int]: ... # np.ndarray[same-as-values]
|
| 245 |
+
|
| 246 |
+
# arr and values should have same dtype
|
| 247 |
+
def ismember(
|
| 248 |
+
arr: np.ndarray,
|
| 249 |
+
values: np.ndarray,
|
| 250 |
+
) -> npt.NDArray[np.bool_]: ...
|
| 251 |
+
def object_hash(obj) -> int: ...
|
| 252 |
+
def objects_are_equal(a, b) -> bool: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/index.pyi
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import numpy as np
|
| 2 |
+
|
| 3 |
+
from pandas._typing import npt
|
| 4 |
+
|
| 5 |
+
from pandas import MultiIndex
|
| 6 |
+
from pandas.core.arrays import ExtensionArray
|
| 7 |
+
|
| 8 |
+
multiindex_nulls_shift: int
|
| 9 |
+
|
| 10 |
+
class IndexEngine:
|
| 11 |
+
over_size_threshold: bool
|
| 12 |
+
def __init__(self, values: np.ndarray) -> None: ...
|
| 13 |
+
def __contains__(self, val: object) -> bool: ...
|
| 14 |
+
|
| 15 |
+
# -> int | slice | np.ndarray[bool]
|
| 16 |
+
def get_loc(self, val: object) -> int | slice | np.ndarray: ...
|
| 17 |
+
def sizeof(self, deep: bool = ...) -> int: ...
|
| 18 |
+
def __sizeof__(self) -> int: ...
|
| 19 |
+
@property
|
| 20 |
+
def is_unique(self) -> bool: ...
|
| 21 |
+
@property
|
| 22 |
+
def is_monotonic_increasing(self) -> bool: ...
|
| 23 |
+
@property
|
| 24 |
+
def is_monotonic_decreasing(self) -> bool: ...
|
| 25 |
+
@property
|
| 26 |
+
def is_mapping_populated(self) -> bool: ...
|
| 27 |
+
def clear_mapping(self): ...
|
| 28 |
+
def get_indexer(self, values: np.ndarray) -> npt.NDArray[np.intp]: ...
|
| 29 |
+
def get_indexer_non_unique(
|
| 30 |
+
self,
|
| 31 |
+
targets: np.ndarray,
|
| 32 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
|
| 33 |
+
|
| 34 |
+
class MaskedIndexEngine(IndexEngine):
|
| 35 |
+
def __init__(self, values: object) -> None: ...
|
| 36 |
+
def get_indexer_non_unique(
|
| 37 |
+
self, targets: object
|
| 38 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
|
| 39 |
+
|
| 40 |
+
class Float64Engine(IndexEngine): ...
|
| 41 |
+
class Float32Engine(IndexEngine): ...
|
| 42 |
+
class Complex128Engine(IndexEngine): ...
|
| 43 |
+
class Complex64Engine(IndexEngine): ...
|
| 44 |
+
class Int64Engine(IndexEngine): ...
|
| 45 |
+
class Int32Engine(IndexEngine): ...
|
| 46 |
+
class Int16Engine(IndexEngine): ...
|
| 47 |
+
class Int8Engine(IndexEngine): ...
|
| 48 |
+
class UInt64Engine(IndexEngine): ...
|
| 49 |
+
class UInt32Engine(IndexEngine): ...
|
| 50 |
+
class UInt16Engine(IndexEngine): ...
|
| 51 |
+
class UInt8Engine(IndexEngine): ...
|
| 52 |
+
class ObjectEngine(IndexEngine): ...
|
| 53 |
+
class DatetimeEngine(Int64Engine): ...
|
| 54 |
+
class TimedeltaEngine(DatetimeEngine): ...
|
| 55 |
+
class PeriodEngine(Int64Engine): ...
|
| 56 |
+
class BoolEngine(UInt8Engine): ...
|
| 57 |
+
class MaskedFloat64Engine(MaskedIndexEngine): ...
|
| 58 |
+
class MaskedFloat32Engine(MaskedIndexEngine): ...
|
| 59 |
+
class MaskedComplex128Engine(MaskedIndexEngine): ...
|
| 60 |
+
class MaskedComplex64Engine(MaskedIndexEngine): ...
|
| 61 |
+
class MaskedInt64Engine(MaskedIndexEngine): ...
|
| 62 |
+
class MaskedInt32Engine(MaskedIndexEngine): ...
|
| 63 |
+
class MaskedInt16Engine(MaskedIndexEngine): ...
|
| 64 |
+
class MaskedInt8Engine(MaskedIndexEngine): ...
|
| 65 |
+
class MaskedUInt64Engine(MaskedIndexEngine): ...
|
| 66 |
+
class MaskedUInt32Engine(MaskedIndexEngine): ...
|
| 67 |
+
class MaskedUInt16Engine(MaskedIndexEngine): ...
|
| 68 |
+
class MaskedUInt8Engine(MaskedIndexEngine): ...
|
| 69 |
+
class MaskedBoolEngine(MaskedUInt8Engine): ...
|
| 70 |
+
|
| 71 |
+
class StringObjectEngine(ObjectEngine):
|
| 72 |
+
def __init__(self, values: object, na_value) -> None: ...
|
| 73 |
+
|
| 74 |
+
class BaseMultiIndexCodesEngine:
|
| 75 |
+
levels: list[np.ndarray]
|
| 76 |
+
offsets: np.ndarray # ndarray[uint64_t, ndim=1]
|
| 77 |
+
|
| 78 |
+
def __init__(
|
| 79 |
+
self,
|
| 80 |
+
levels: list[np.ndarray], # all entries hashable
|
| 81 |
+
labels: list[np.ndarray], # all entries integer-dtyped
|
| 82 |
+
offsets: np.ndarray, # np.ndarray[np.uint64, ndim=1]
|
| 83 |
+
) -> None: ...
|
| 84 |
+
def get_indexer(self, target: npt.NDArray[np.object_]) -> npt.NDArray[np.intp]: ...
|
| 85 |
+
def _extract_level_codes(self, target: MultiIndex) -> np.ndarray: ...
|
| 86 |
+
|
| 87 |
+
class ExtensionEngine:
|
| 88 |
+
def __init__(self, values: ExtensionArray) -> None: ...
|
| 89 |
+
def __contains__(self, val: object) -> bool: ...
|
| 90 |
+
def get_loc(self, val: object) -> int | slice | np.ndarray: ...
|
| 91 |
+
def get_indexer(self, values: np.ndarray) -> npt.NDArray[np.intp]: ...
|
| 92 |
+
def get_indexer_non_unique(
|
| 93 |
+
self,
|
| 94 |
+
targets: np.ndarray,
|
| 95 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
|
| 96 |
+
@property
|
| 97 |
+
def is_unique(self) -> bool: ...
|
| 98 |
+
@property
|
| 99 |
+
def is_monotonic_increasing(self) -> bool: ...
|
| 100 |
+
@property
|
| 101 |
+
def is_monotonic_decreasing(self) -> bool: ...
|
| 102 |
+
def sizeof(self, deep: bool = ...) -> int: ...
|
| 103 |
+
def clear_mapping(self): ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/interval.pyi
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import (
|
| 2 |
+
Any,
|
| 3 |
+
Generic,
|
| 4 |
+
TypeVar,
|
| 5 |
+
overload,
|
| 6 |
+
)
|
| 7 |
+
|
| 8 |
+
import numpy as np
|
| 9 |
+
import numpy.typing as npt
|
| 10 |
+
|
| 11 |
+
from pandas._typing import (
|
| 12 |
+
IntervalClosedType,
|
| 13 |
+
Timedelta,
|
| 14 |
+
Timestamp,
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
VALID_CLOSED: frozenset[str]
|
| 18 |
+
|
| 19 |
+
_OrderableScalarT = TypeVar("_OrderableScalarT", int, float)
|
| 20 |
+
_OrderableTimesT = TypeVar("_OrderableTimesT", Timestamp, Timedelta)
|
| 21 |
+
_OrderableT = TypeVar("_OrderableT", int, float, Timestamp, Timedelta)
|
| 22 |
+
|
| 23 |
+
class _LengthDescriptor:
|
| 24 |
+
@overload
|
| 25 |
+
def __get__(
|
| 26 |
+
self, instance: Interval[_OrderableScalarT], owner: Any
|
| 27 |
+
) -> _OrderableScalarT: ...
|
| 28 |
+
@overload
|
| 29 |
+
def __get__(
|
| 30 |
+
self, instance: Interval[_OrderableTimesT], owner: Any
|
| 31 |
+
) -> Timedelta: ...
|
| 32 |
+
|
| 33 |
+
class _MidDescriptor:
|
| 34 |
+
@overload
|
| 35 |
+
def __get__(self, instance: Interval[_OrderableScalarT], owner: Any) -> float: ...
|
| 36 |
+
@overload
|
| 37 |
+
def __get__(
|
| 38 |
+
self, instance: Interval[_OrderableTimesT], owner: Any
|
| 39 |
+
) -> _OrderableTimesT: ...
|
| 40 |
+
|
| 41 |
+
class IntervalMixin:
|
| 42 |
+
@property
|
| 43 |
+
def closed_left(self) -> bool: ...
|
| 44 |
+
@property
|
| 45 |
+
def closed_right(self) -> bool: ...
|
| 46 |
+
@property
|
| 47 |
+
def open_left(self) -> bool: ...
|
| 48 |
+
@property
|
| 49 |
+
def open_right(self) -> bool: ...
|
| 50 |
+
@property
|
| 51 |
+
def is_empty(self) -> bool: ...
|
| 52 |
+
def _check_closed_matches(self, other: IntervalMixin, name: str = ...) -> None: ...
|
| 53 |
+
|
| 54 |
+
class Interval(IntervalMixin, Generic[_OrderableT]):
|
| 55 |
+
@property
|
| 56 |
+
def left(self: Interval[_OrderableT]) -> _OrderableT: ...
|
| 57 |
+
@property
|
| 58 |
+
def right(self: Interval[_OrderableT]) -> _OrderableT: ...
|
| 59 |
+
@property
|
| 60 |
+
def closed(self) -> IntervalClosedType: ...
|
| 61 |
+
mid: _MidDescriptor
|
| 62 |
+
length: _LengthDescriptor
|
| 63 |
+
def __init__(
|
| 64 |
+
self,
|
| 65 |
+
left: _OrderableT,
|
| 66 |
+
right: _OrderableT,
|
| 67 |
+
closed: IntervalClosedType = ...,
|
| 68 |
+
) -> None: ...
|
| 69 |
+
def __hash__(self) -> int: ...
|
| 70 |
+
@overload
|
| 71 |
+
def __contains__(
|
| 72 |
+
self: Interval[Timedelta], key: Timedelta | Interval[Timedelta]
|
| 73 |
+
) -> bool: ...
|
| 74 |
+
@overload
|
| 75 |
+
def __contains__(
|
| 76 |
+
self: Interval[Timestamp], key: Timestamp | Interval[Timestamp]
|
| 77 |
+
) -> bool: ...
|
| 78 |
+
@overload
|
| 79 |
+
def __contains__(
|
| 80 |
+
self: Interval[_OrderableScalarT],
|
| 81 |
+
key: _OrderableScalarT | Interval[_OrderableScalarT],
|
| 82 |
+
) -> bool: ...
|
| 83 |
+
@overload
|
| 84 |
+
def __add__(
|
| 85 |
+
self: Interval[_OrderableTimesT], y: Timedelta
|
| 86 |
+
) -> Interval[_OrderableTimesT]: ...
|
| 87 |
+
@overload
|
| 88 |
+
def __add__(
|
| 89 |
+
self: Interval[int], y: _OrderableScalarT
|
| 90 |
+
) -> Interval[_OrderableScalarT]: ...
|
| 91 |
+
@overload
|
| 92 |
+
def __add__(self: Interval[float], y: float) -> Interval[float]: ...
|
| 93 |
+
@overload
|
| 94 |
+
def __radd__(
|
| 95 |
+
self: Interval[_OrderableTimesT], y: Timedelta
|
| 96 |
+
) -> Interval[_OrderableTimesT]: ...
|
| 97 |
+
@overload
|
| 98 |
+
def __radd__(
|
| 99 |
+
self: Interval[int], y: _OrderableScalarT
|
| 100 |
+
) -> Interval[_OrderableScalarT]: ...
|
| 101 |
+
@overload
|
| 102 |
+
def __radd__(self: Interval[float], y: float) -> Interval[float]: ...
|
| 103 |
+
@overload
|
| 104 |
+
def __sub__(
|
| 105 |
+
self: Interval[_OrderableTimesT], y: Timedelta
|
| 106 |
+
) -> Interval[_OrderableTimesT]: ...
|
| 107 |
+
@overload
|
| 108 |
+
def __sub__(
|
| 109 |
+
self: Interval[int], y: _OrderableScalarT
|
| 110 |
+
) -> Interval[_OrderableScalarT]: ...
|
| 111 |
+
@overload
|
| 112 |
+
def __sub__(self: Interval[float], y: float) -> Interval[float]: ...
|
| 113 |
+
@overload
|
| 114 |
+
def __rsub__(
|
| 115 |
+
self: Interval[_OrderableTimesT], y: Timedelta
|
| 116 |
+
) -> Interval[_OrderableTimesT]: ...
|
| 117 |
+
@overload
|
| 118 |
+
def __rsub__(
|
| 119 |
+
self: Interval[int], y: _OrderableScalarT
|
| 120 |
+
) -> Interval[_OrderableScalarT]: ...
|
| 121 |
+
@overload
|
| 122 |
+
def __rsub__(self: Interval[float], y: float) -> Interval[float]: ...
|
| 123 |
+
@overload
|
| 124 |
+
def __mul__(
|
| 125 |
+
self: Interval[int], y: _OrderableScalarT
|
| 126 |
+
) -> Interval[_OrderableScalarT]: ...
|
| 127 |
+
@overload
|
| 128 |
+
def __mul__(self: Interval[float], y: float) -> Interval[float]: ...
|
| 129 |
+
@overload
|
| 130 |
+
def __rmul__(
|
| 131 |
+
self: Interval[int], y: _OrderableScalarT
|
| 132 |
+
) -> Interval[_OrderableScalarT]: ...
|
| 133 |
+
@overload
|
| 134 |
+
def __rmul__(self: Interval[float], y: float) -> Interval[float]: ...
|
| 135 |
+
@overload
|
| 136 |
+
def __truediv__(
|
| 137 |
+
self: Interval[int], y: _OrderableScalarT
|
| 138 |
+
) -> Interval[_OrderableScalarT]: ...
|
| 139 |
+
@overload
|
| 140 |
+
def __truediv__(self: Interval[float], y: float) -> Interval[float]: ...
|
| 141 |
+
@overload
|
| 142 |
+
def __floordiv__(
|
| 143 |
+
self: Interval[int], y: _OrderableScalarT
|
| 144 |
+
) -> Interval[_OrderableScalarT]: ...
|
| 145 |
+
@overload
|
| 146 |
+
def __floordiv__(self: Interval[float], y: float) -> Interval[float]: ...
|
| 147 |
+
def overlaps(self: Interval[_OrderableT], other: Interval[_OrderableT]) -> bool: ...
|
| 148 |
+
|
| 149 |
+
def intervals_to_interval_bounds(
|
| 150 |
+
intervals: np.ndarray, validate_closed: bool = ...
|
| 151 |
+
) -> tuple[np.ndarray, np.ndarray, IntervalClosedType]: ...
|
| 152 |
+
|
| 153 |
+
class IntervalTree(IntervalMixin):
|
| 154 |
+
def __init__(
|
| 155 |
+
self,
|
| 156 |
+
left: np.ndarray,
|
| 157 |
+
right: np.ndarray,
|
| 158 |
+
closed: IntervalClosedType = ...,
|
| 159 |
+
leaf_size: int = ...,
|
| 160 |
+
) -> None: ...
|
| 161 |
+
@property
|
| 162 |
+
def mid(self) -> np.ndarray: ...
|
| 163 |
+
@property
|
| 164 |
+
def length(self) -> np.ndarray: ...
|
| 165 |
+
def get_indexer(self, target) -> npt.NDArray[np.intp]: ...
|
| 166 |
+
def get_indexer_non_unique(
|
| 167 |
+
self, target
|
| 168 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
|
| 169 |
+
_na_count: int
|
| 170 |
+
@property
|
| 171 |
+
def is_overlapping(self) -> bool: ...
|
| 172 |
+
@property
|
| 173 |
+
def is_monotonic_increasing(self) -> bool: ...
|
| 174 |
+
def clear_mapping(self) -> None: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/join.pyi
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import numpy as np
|
| 2 |
+
|
| 3 |
+
from pandas._typing import npt
|
| 4 |
+
|
| 5 |
+
def inner_join(
|
| 6 |
+
left: np.ndarray, # const intp_t[:]
|
| 7 |
+
right: np.ndarray, # const intp_t[:]
|
| 8 |
+
max_groups: int,
|
| 9 |
+
sort: bool = ...,
|
| 10 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
|
| 11 |
+
def left_outer_join(
|
| 12 |
+
left: np.ndarray, # const intp_t[:]
|
| 13 |
+
right: np.ndarray, # const intp_t[:]
|
| 14 |
+
max_groups: int,
|
| 15 |
+
sort: bool = ...,
|
| 16 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
|
| 17 |
+
def full_outer_join(
|
| 18 |
+
left: np.ndarray, # const intp_t[:]
|
| 19 |
+
right: np.ndarray, # const intp_t[:]
|
| 20 |
+
max_groups: int,
|
| 21 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
|
| 22 |
+
def ffill_indexer(
|
| 23 |
+
indexer: np.ndarray, # const intp_t[:]
|
| 24 |
+
) -> npt.NDArray[np.intp]: ...
|
| 25 |
+
def left_join_indexer_unique(
|
| 26 |
+
left: np.ndarray, # ndarray[join_t]
|
| 27 |
+
right: np.ndarray, # ndarray[join_t]
|
| 28 |
+
) -> npt.NDArray[np.intp]: ...
|
| 29 |
+
def left_join_indexer(
|
| 30 |
+
left: np.ndarray, # ndarray[join_t]
|
| 31 |
+
right: np.ndarray, # ndarray[join_t]
|
| 32 |
+
) -> tuple[
|
| 33 |
+
np.ndarray, # np.ndarray[join_t]
|
| 34 |
+
npt.NDArray[np.intp],
|
| 35 |
+
npt.NDArray[np.intp],
|
| 36 |
+
]: ...
|
| 37 |
+
def inner_join_indexer(
|
| 38 |
+
left: np.ndarray, # ndarray[join_t]
|
| 39 |
+
right: np.ndarray, # ndarray[join_t]
|
| 40 |
+
) -> tuple[
|
| 41 |
+
np.ndarray, # np.ndarray[join_t]
|
| 42 |
+
npt.NDArray[np.intp],
|
| 43 |
+
npt.NDArray[np.intp],
|
| 44 |
+
]: ...
|
| 45 |
+
def outer_join_indexer(
|
| 46 |
+
left: np.ndarray, # ndarray[join_t]
|
| 47 |
+
right: np.ndarray, # ndarray[join_t]
|
| 48 |
+
) -> tuple[
|
| 49 |
+
np.ndarray, # np.ndarray[join_t]
|
| 50 |
+
npt.NDArray[np.intp],
|
| 51 |
+
npt.NDArray[np.intp],
|
| 52 |
+
]: ...
|
| 53 |
+
def asof_join_backward_on_X_by_Y(
|
| 54 |
+
left_values: np.ndarray, # ndarray[numeric_t]
|
| 55 |
+
right_values: np.ndarray, # ndarray[numeric_t]
|
| 56 |
+
left_by_values: np.ndarray, # const int64_t[:]
|
| 57 |
+
right_by_values: np.ndarray, # const int64_t[:]
|
| 58 |
+
allow_exact_matches: bool = ...,
|
| 59 |
+
tolerance: np.number | float | None = ...,
|
| 60 |
+
use_hashtable: bool = ...,
|
| 61 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
|
| 62 |
+
def asof_join_forward_on_X_by_Y(
|
| 63 |
+
left_values: np.ndarray, # ndarray[numeric_t]
|
| 64 |
+
right_values: np.ndarray, # ndarray[numeric_t]
|
| 65 |
+
left_by_values: np.ndarray, # const int64_t[:]
|
| 66 |
+
right_by_values: np.ndarray, # const int64_t[:]
|
| 67 |
+
allow_exact_matches: bool = ...,
|
| 68 |
+
tolerance: np.number | float | None = ...,
|
| 69 |
+
use_hashtable: bool = ...,
|
| 70 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
|
| 71 |
+
def asof_join_nearest_on_X_by_Y(
|
| 72 |
+
left_values: np.ndarray, # ndarray[numeric_t]
|
| 73 |
+
right_values: np.ndarray, # ndarray[numeric_t]
|
| 74 |
+
left_by_values: np.ndarray, # const int64_t[:]
|
| 75 |
+
right_by_values: np.ndarray, # const int64_t[:]
|
| 76 |
+
allow_exact_matches: bool = ...,
|
| 77 |
+
tolerance: np.number | float | None = ...,
|
| 78 |
+
use_hashtable: bool = ...,
|
| 79 |
+
) -> tuple[npt.NDArray[np.intp], npt.NDArray[np.intp]]: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/json.cpython-312-darwin.so
ADDED
|
Binary file (93.6 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/json.pyi
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import (
|
| 2 |
+
Any,
|
| 3 |
+
Callable,
|
| 4 |
+
)
|
| 5 |
+
|
| 6 |
+
def ujson_dumps(
|
| 7 |
+
obj: Any,
|
| 8 |
+
ensure_ascii: bool = ...,
|
| 9 |
+
double_precision: int = ...,
|
| 10 |
+
indent: int = ...,
|
| 11 |
+
orient: str = ...,
|
| 12 |
+
date_unit: str = ...,
|
| 13 |
+
iso_dates: bool = ...,
|
| 14 |
+
default_handler: None
|
| 15 |
+
| Callable[[Any], str | float | bool | list | dict | None] = ...,
|
| 16 |
+
) -> str: ...
|
| 17 |
+
def ujson_loads(
|
| 18 |
+
s: str,
|
| 19 |
+
precise_float: bool = ...,
|
| 20 |
+
numpy: bool = ...,
|
| 21 |
+
dtype: None = ...,
|
| 22 |
+
labelled: bool = ...,
|
| 23 |
+
) -> Any: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/properties.pyi
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import (
|
| 2 |
+
Sequence,
|
| 3 |
+
overload,
|
| 4 |
+
)
|
| 5 |
+
|
| 6 |
+
from pandas._typing import (
|
| 7 |
+
AnyArrayLike,
|
| 8 |
+
DataFrame,
|
| 9 |
+
Index,
|
| 10 |
+
Series,
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
# note: this is a lie to make type checkers happy (they special
|
| 14 |
+
# case property). cache_readonly uses attribute names similar to
|
| 15 |
+
# property (fget) but it does not provide fset and fdel.
|
| 16 |
+
cache_readonly = property
|
| 17 |
+
|
| 18 |
+
class AxisProperty:
|
| 19 |
+
axis: int
|
| 20 |
+
def __init__(self, axis: int = ..., doc: str = ...) -> None: ...
|
| 21 |
+
@overload
|
| 22 |
+
def __get__(self, obj: DataFrame | Series, type) -> Index: ...
|
| 23 |
+
@overload
|
| 24 |
+
def __get__(self, obj: None, type) -> AxisProperty: ...
|
| 25 |
+
def __set__(
|
| 26 |
+
self, obj: DataFrame | Series, value: AnyArrayLike | Sequence
|
| 27 |
+
) -> None: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/sas.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pandas.io.sas.sas7bdat import SAS7BDATReader
|
| 2 |
+
|
| 3 |
+
class Parser:
|
| 4 |
+
def __init__(self, parser: SAS7BDATReader) -> None: ...
|
| 5 |
+
def read(self, nrows: int) -> None: ...
|
| 6 |
+
|
| 7 |
+
def get_subheader_index(signature: bytes) -> int: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/sparse.pyi
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Sequence
|
| 2 |
+
|
| 3 |
+
import numpy as np
|
| 4 |
+
|
| 5 |
+
from pandas._typing import (
|
| 6 |
+
Self,
|
| 7 |
+
npt,
|
| 8 |
+
)
|
| 9 |
+
|
| 10 |
+
class SparseIndex:
|
| 11 |
+
length: int
|
| 12 |
+
npoints: int
|
| 13 |
+
def __init__(self) -> None: ...
|
| 14 |
+
@property
|
| 15 |
+
def ngaps(self) -> int: ...
|
| 16 |
+
@property
|
| 17 |
+
def nbytes(self) -> int: ...
|
| 18 |
+
@property
|
| 19 |
+
def indices(self) -> npt.NDArray[np.int32]: ...
|
| 20 |
+
def equals(self, other) -> bool: ...
|
| 21 |
+
def lookup(self, index: int) -> np.int32: ...
|
| 22 |
+
def lookup_array(self, indexer: npt.NDArray[np.int32]) -> npt.NDArray[np.int32]: ...
|
| 23 |
+
def to_int_index(self) -> IntIndex: ...
|
| 24 |
+
def to_block_index(self) -> BlockIndex: ...
|
| 25 |
+
def intersect(self, y_: SparseIndex) -> Self: ...
|
| 26 |
+
def make_union(self, y_: SparseIndex) -> Self: ...
|
| 27 |
+
|
| 28 |
+
class IntIndex(SparseIndex):
|
| 29 |
+
indices: npt.NDArray[np.int32]
|
| 30 |
+
def __init__(
|
| 31 |
+
self, length: int, indices: Sequence[int], check_integrity: bool = ...
|
| 32 |
+
) -> None: ...
|
| 33 |
+
|
| 34 |
+
class BlockIndex(SparseIndex):
|
| 35 |
+
nblocks: int
|
| 36 |
+
blocs: np.ndarray
|
| 37 |
+
blengths: np.ndarray
|
| 38 |
+
def __init__(
|
| 39 |
+
self, length: int, blocs: np.ndarray, blengths: np.ndarray
|
| 40 |
+
) -> None: ...
|
| 41 |
+
|
| 42 |
+
# Override to have correct parameters
|
| 43 |
+
def intersect(self, other: SparseIndex) -> Self: ...
|
| 44 |
+
def make_union(self, y: SparseIndex) -> Self: ...
|
| 45 |
+
|
| 46 |
+
def make_mask_object_ndarray(
|
| 47 |
+
arr: npt.NDArray[np.object_], fill_value
|
| 48 |
+
) -> npt.NDArray[np.bool_]: ...
|
| 49 |
+
def get_blocks(
|
| 50 |
+
indices: npt.NDArray[np.int32],
|
| 51 |
+
) -> tuple[npt.NDArray[np.int32], npt.NDArray[np.int32]]: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/testing.pyi
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def assert_dict_equal(a, b, compare_keys: bool = ...): ...
|
| 2 |
+
def assert_almost_equal(
|
| 3 |
+
a,
|
| 4 |
+
b,
|
| 5 |
+
rtol: float = ...,
|
| 6 |
+
atol: float = ...,
|
| 7 |
+
check_dtype: bool = ...,
|
| 8 |
+
obj=...,
|
| 9 |
+
lobj=...,
|
| 10 |
+
robj=...,
|
| 11 |
+
index_values=...,
|
| 12 |
+
): ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/__init__.py
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__all__ = [
|
| 2 |
+
"dtypes",
|
| 3 |
+
"localize_pydatetime",
|
| 4 |
+
"NaT",
|
| 5 |
+
"NaTType",
|
| 6 |
+
"iNaT",
|
| 7 |
+
"nat_strings",
|
| 8 |
+
"OutOfBoundsDatetime",
|
| 9 |
+
"OutOfBoundsTimedelta",
|
| 10 |
+
"IncompatibleFrequency",
|
| 11 |
+
"Period",
|
| 12 |
+
"Resolution",
|
| 13 |
+
"Timedelta",
|
| 14 |
+
"normalize_i8_timestamps",
|
| 15 |
+
"is_date_array_normalized",
|
| 16 |
+
"dt64arr_to_periodarr",
|
| 17 |
+
"delta_to_nanoseconds",
|
| 18 |
+
"ints_to_pydatetime",
|
| 19 |
+
"ints_to_pytimedelta",
|
| 20 |
+
"get_resolution",
|
| 21 |
+
"Timestamp",
|
| 22 |
+
"tz_convert_from_utc_single",
|
| 23 |
+
"tz_convert_from_utc",
|
| 24 |
+
"to_offset",
|
| 25 |
+
"Tick",
|
| 26 |
+
"BaseOffset",
|
| 27 |
+
"tz_compare",
|
| 28 |
+
"is_unitless",
|
| 29 |
+
"astype_overflowsafe",
|
| 30 |
+
"get_unit_from_dtype",
|
| 31 |
+
"periods_per_day",
|
| 32 |
+
"periods_per_second",
|
| 33 |
+
"guess_datetime_format",
|
| 34 |
+
"add_overflowsafe",
|
| 35 |
+
"get_supported_dtype",
|
| 36 |
+
"is_supported_dtype",
|
| 37 |
+
]
|
| 38 |
+
|
| 39 |
+
from pandas._libs.tslibs import dtypes # pylint: disable=import-self
|
| 40 |
+
from pandas._libs.tslibs.conversion import localize_pydatetime
|
| 41 |
+
from pandas._libs.tslibs.dtypes import (
|
| 42 |
+
Resolution,
|
| 43 |
+
periods_per_day,
|
| 44 |
+
periods_per_second,
|
| 45 |
+
)
|
| 46 |
+
from pandas._libs.tslibs.nattype import (
|
| 47 |
+
NaT,
|
| 48 |
+
NaTType,
|
| 49 |
+
iNaT,
|
| 50 |
+
nat_strings,
|
| 51 |
+
)
|
| 52 |
+
from pandas._libs.tslibs.np_datetime import (
|
| 53 |
+
OutOfBoundsDatetime,
|
| 54 |
+
OutOfBoundsTimedelta,
|
| 55 |
+
add_overflowsafe,
|
| 56 |
+
astype_overflowsafe,
|
| 57 |
+
get_supported_dtype,
|
| 58 |
+
is_supported_dtype,
|
| 59 |
+
is_unitless,
|
| 60 |
+
py_get_unit_from_dtype as get_unit_from_dtype,
|
| 61 |
+
)
|
| 62 |
+
from pandas._libs.tslibs.offsets import (
|
| 63 |
+
BaseOffset,
|
| 64 |
+
Tick,
|
| 65 |
+
to_offset,
|
| 66 |
+
)
|
| 67 |
+
from pandas._libs.tslibs.parsing import guess_datetime_format
|
| 68 |
+
from pandas._libs.tslibs.period import (
|
| 69 |
+
IncompatibleFrequency,
|
| 70 |
+
Period,
|
| 71 |
+
)
|
| 72 |
+
from pandas._libs.tslibs.timedeltas import (
|
| 73 |
+
Timedelta,
|
| 74 |
+
delta_to_nanoseconds,
|
| 75 |
+
ints_to_pytimedelta,
|
| 76 |
+
)
|
| 77 |
+
from pandas._libs.tslibs.timestamps import Timestamp
|
| 78 |
+
from pandas._libs.tslibs.timezones import tz_compare
|
| 79 |
+
from pandas._libs.tslibs.tzconversion import tz_convert_from_utc_single
|
| 80 |
+
from pandas._libs.tslibs.vectorized import (
|
| 81 |
+
dt64arr_to_periodarr,
|
| 82 |
+
get_resolution,
|
| 83 |
+
ints_to_pydatetime,
|
| 84 |
+
is_date_array_normalized,
|
| 85 |
+
normalize_i8_timestamps,
|
| 86 |
+
tz_convert_from_utc,
|
| 87 |
+
)
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/ccalendar.cpython-312-darwin.so
ADDED
|
Binary file (98.4 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/ccalendar.pyi
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
DAYS: list[str]
|
| 2 |
+
MONTH_ALIASES: dict[int, str]
|
| 3 |
+
MONTH_NUMBERS: dict[str, int]
|
| 4 |
+
MONTHS: list[str]
|
| 5 |
+
int_to_weekday: dict[int, str]
|
| 6 |
+
|
| 7 |
+
def get_firstbday(year: int, month: int) -> int: ...
|
| 8 |
+
def get_lastbday(year: int, month: int) -> int: ...
|
| 9 |
+
def get_day_of_year(year: int, month: int, day: int) -> int: ...
|
| 10 |
+
def get_iso_calendar(year: int, month: int, day: int) -> tuple[int, int, int]: ...
|
| 11 |
+
def get_week_of_year(year: int, month: int, day: int) -> int: ...
|
| 12 |
+
def get_days_in_month(year: int, month: int) -> int: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/dtypes.pyi
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from enum import Enum
|
| 2 |
+
|
| 3 |
+
OFFSET_TO_PERIOD_FREQSTR: dict[str, str]
|
| 4 |
+
|
| 5 |
+
def periods_per_day(reso: int = ...) -> int: ...
|
| 6 |
+
def periods_per_second(reso: int) -> int: ...
|
| 7 |
+
def abbrev_to_npy_unit(abbrev: str | None) -> int: ...
|
| 8 |
+
def freq_to_period_freqstr(freq_n: int, freq_name: str) -> str: ...
|
| 9 |
+
|
| 10 |
+
class PeriodDtypeBase:
|
| 11 |
+
_dtype_code: int # PeriodDtypeCode
|
| 12 |
+
_n: int
|
| 13 |
+
|
| 14 |
+
# actually __cinit__
|
| 15 |
+
def __new__(cls, code: int, n: int): ...
|
| 16 |
+
@property
|
| 17 |
+
def _freq_group_code(self) -> int: ...
|
| 18 |
+
@property
|
| 19 |
+
def _resolution_obj(self) -> Resolution: ...
|
| 20 |
+
def _get_to_timestamp_base(self) -> int: ...
|
| 21 |
+
@property
|
| 22 |
+
def _freqstr(self) -> str: ...
|
| 23 |
+
def __hash__(self) -> int: ...
|
| 24 |
+
def _is_tick_like(self) -> bool: ...
|
| 25 |
+
@property
|
| 26 |
+
def _creso(self) -> int: ...
|
| 27 |
+
@property
|
| 28 |
+
def _td64_unit(self) -> str: ...
|
| 29 |
+
|
| 30 |
+
class FreqGroup(Enum):
|
| 31 |
+
FR_ANN: int
|
| 32 |
+
FR_QTR: int
|
| 33 |
+
FR_MTH: int
|
| 34 |
+
FR_WK: int
|
| 35 |
+
FR_BUS: int
|
| 36 |
+
FR_DAY: int
|
| 37 |
+
FR_HR: int
|
| 38 |
+
FR_MIN: int
|
| 39 |
+
FR_SEC: int
|
| 40 |
+
FR_MS: int
|
| 41 |
+
FR_US: int
|
| 42 |
+
FR_NS: int
|
| 43 |
+
FR_UND: int
|
| 44 |
+
@staticmethod
|
| 45 |
+
def from_period_dtype_code(code: int) -> FreqGroup: ...
|
| 46 |
+
|
| 47 |
+
class Resolution(Enum):
|
| 48 |
+
RESO_NS: int
|
| 49 |
+
RESO_US: int
|
| 50 |
+
RESO_MS: int
|
| 51 |
+
RESO_SEC: int
|
| 52 |
+
RESO_MIN: int
|
| 53 |
+
RESO_HR: int
|
| 54 |
+
RESO_DAY: int
|
| 55 |
+
RESO_MTH: int
|
| 56 |
+
RESO_QTR: int
|
| 57 |
+
RESO_YR: int
|
| 58 |
+
def __lt__(self, other: Resolution) -> bool: ...
|
| 59 |
+
def __ge__(self, other: Resolution) -> bool: ...
|
| 60 |
+
@property
|
| 61 |
+
def attrname(self) -> str: ...
|
| 62 |
+
@classmethod
|
| 63 |
+
def from_attrname(cls, attrname: str) -> Resolution: ...
|
| 64 |
+
@classmethod
|
| 65 |
+
def get_reso_from_freqstr(cls, freq: str) -> Resolution: ...
|
| 66 |
+
@property
|
| 67 |
+
def attr_abbrev(self) -> str: ...
|
| 68 |
+
|
| 69 |
+
class NpyDatetimeUnit(Enum):
|
| 70 |
+
NPY_FR_Y: int
|
| 71 |
+
NPY_FR_M: int
|
| 72 |
+
NPY_FR_W: int
|
| 73 |
+
NPY_FR_D: int
|
| 74 |
+
NPY_FR_h: int
|
| 75 |
+
NPY_FR_m: int
|
| 76 |
+
NPY_FR_s: int
|
| 77 |
+
NPY_FR_ms: int
|
| 78 |
+
NPY_FR_us: int
|
| 79 |
+
NPY_FR_ns: int
|
| 80 |
+
NPY_FR_ps: int
|
| 81 |
+
NPY_FR_fs: int
|
| 82 |
+
NPY_FR_as: int
|
| 83 |
+
NPY_FR_GENERIC: int
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/np_datetime.pyi
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import numpy as np
|
| 2 |
+
|
| 3 |
+
from pandas._typing import npt
|
| 4 |
+
|
| 5 |
+
class OutOfBoundsDatetime(ValueError): ...
|
| 6 |
+
class OutOfBoundsTimedelta(ValueError): ...
|
| 7 |
+
|
| 8 |
+
# only exposed for testing
|
| 9 |
+
def py_get_unit_from_dtype(dtype: np.dtype): ...
|
| 10 |
+
def py_td64_to_tdstruct(td64: int, unit: int) -> dict: ...
|
| 11 |
+
def astype_overflowsafe(
|
| 12 |
+
values: np.ndarray,
|
| 13 |
+
dtype: np.dtype,
|
| 14 |
+
copy: bool = ...,
|
| 15 |
+
round_ok: bool = ...,
|
| 16 |
+
is_coerce: bool = ...,
|
| 17 |
+
) -> np.ndarray: ...
|
| 18 |
+
def is_unitless(dtype: np.dtype) -> bool: ...
|
| 19 |
+
def compare_mismatched_resolutions(
|
| 20 |
+
left: np.ndarray, right: np.ndarray, op
|
| 21 |
+
) -> npt.NDArray[np.bool_]: ...
|
| 22 |
+
def add_overflowsafe(
|
| 23 |
+
left: npt.NDArray[np.int64],
|
| 24 |
+
right: npt.NDArray[np.int64],
|
| 25 |
+
) -> npt.NDArray[np.int64]: ...
|
| 26 |
+
def get_supported_dtype(dtype: np.dtype) -> np.dtype: ...
|
| 27 |
+
def is_supported_dtype(dtype: np.dtype) -> bool: ...
|
.venv_haddock/lib/python3.12/site-packages/pandas/_libs/tslibs/offsets.pyi
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import (
|
| 2 |
+
datetime,
|
| 3 |
+
time,
|
| 4 |
+
timedelta,
|
| 5 |
+
)
|
| 6 |
+
from typing import (
|
| 7 |
+
Any,
|
| 8 |
+
Collection,
|
| 9 |
+
Literal,
|
| 10 |
+
TypeVar,
|
| 11 |
+
overload,
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
import numpy as np
|
| 15 |
+
|
| 16 |
+
from pandas._libs.tslibs.nattype import NaTType
|
| 17 |
+
from pandas._typing import (
|
| 18 |
+
OffsetCalendar,
|
| 19 |
+
Self,
|
| 20 |
+
npt,
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
+
from .timedeltas import Timedelta
|
| 24 |
+
|
| 25 |
+
_BaseOffsetT = TypeVar("_BaseOffsetT", bound=BaseOffset)
|
| 26 |
+
_DatetimeT = TypeVar("_DatetimeT", bound=datetime)
|
| 27 |
+
_TimedeltaT = TypeVar("_TimedeltaT", bound=timedelta)
|
| 28 |
+
|
| 29 |
+
_relativedelta_kwds: set[str]
|
| 30 |
+
prefix_mapping: dict[str, type]
|
| 31 |
+
|
| 32 |
+
class ApplyTypeError(TypeError): ...
|
| 33 |
+
|
| 34 |
+
class BaseOffset:
|
| 35 |
+
n: int
|
| 36 |
+
normalize: bool
|
| 37 |
+
def __init__(self, n: int = ..., normalize: bool = ...) -> None: ...
|
| 38 |
+
def __eq__(self, other) -> bool: ...
|
| 39 |
+
def __ne__(self, other) -> bool: ...
|
| 40 |
+
def __hash__(self) -> int: ...
|
| 41 |
+
@property
|
| 42 |
+
def kwds(self) -> dict: ...
|
| 43 |
+
@property
|
| 44 |
+
def base(self) -> BaseOffset: ...
|
| 45 |
+
@overload
|
| 46 |
+
def __add__(self, other: npt.NDArray[np.object_]) -> npt.NDArray[np.object_]: ...
|
| 47 |
+
@overload
|
| 48 |
+
def __add__(self, other: BaseOffset) -> Self: ...
|
| 49 |
+
@overload
|
| 50 |
+
def __add__(self, other: _DatetimeT) -> _DatetimeT: ...
|
| 51 |
+
@overload
|
| 52 |
+
def __add__(self, other: _TimedeltaT) -> _TimedeltaT: ...
|
| 53 |
+
@overload
|
| 54 |
+
def __radd__(self, other: npt.NDArray[np.object_]) -> npt.NDArray[np.object_]: ...
|
| 55 |
+
@overload
|
| 56 |
+
def __radd__(self, other: BaseOffset) -> Self: ...
|
| 57 |
+
@overload
|
| 58 |
+
def __radd__(self, other: _DatetimeT) -> _DatetimeT: ...
|
| 59 |
+
@overload
|
| 60 |
+
def __radd__(self, other: _TimedeltaT) -> _TimedeltaT: ...
|
| 61 |
+
@overload
|
| 62 |
+
def __radd__(self, other: NaTType) -> NaTType: ...
|
| 63 |
+
def __sub__(self, other: BaseOffset) -> Self: ...
|
| 64 |
+
@overload
|
| 65 |
+
def __rsub__(self, other: npt.NDArray[np.object_]) -> npt.NDArray[np.object_]: ...
|
| 66 |
+
@overload
|
| 67 |
+
def __rsub__(self, other: BaseOffset): ...
|
| 68 |
+
@overload
|
| 69 |
+
def __rsub__(self, other: _DatetimeT) -> _DatetimeT: ...
|
| 70 |
+
@overload
|
| 71 |
+
def __rsub__(self, other: _TimedeltaT) -> _TimedeltaT: ...
|
| 72 |
+
@overload
|
| 73 |
+
def __mul__(self, other: np.ndarray) -> np.ndarray: ...
|
| 74 |
+
@overload
|
| 75 |
+
def __mul__(self, other: int): ...
|
| 76 |
+
@overload
|
| 77 |
+
def __rmul__(self, other: np.ndarray) -> np.ndarray: ...
|
| 78 |
+
@overload
|
| 79 |
+
def __rmul__(self, other: int) -> Self: ...
|
| 80 |
+
def __neg__(self) -> Self: ...
|
| 81 |
+
def copy(self) -> Self: ...
|
| 82 |
+
@property
|
| 83 |
+
def name(self) -> str: ...
|
| 84 |
+
@property
|
| 85 |
+
def rule_code(self) -> str: ...
|
| 86 |
+
@property
|
| 87 |
+
def freqstr(self) -> str: ...
|
| 88 |
+
def _apply(self, other): ...
|
| 89 |
+
def _apply_array(self, dtarr: np.ndarray) -> np.ndarray: ...
|
| 90 |
+
def rollback(self, dt: datetime) -> datetime: ...
|
| 91 |
+
def rollforward(self, dt: datetime) -> datetime: ...
|
| 92 |
+
def is_on_offset(self, dt: datetime) -> bool: ...
|
| 93 |
+
def __setstate__(self, state) -> None: ...
|
| 94 |
+
def __getstate__(self): ...
|
| 95 |
+
@property
|
| 96 |
+
def nanos(self) -> int: ...
|
| 97 |
+
def is_anchored(self) -> bool: ...
|
| 98 |
+
|
| 99 |
+
def _get_offset(name: str) -> BaseOffset: ...
|
| 100 |
+
|
| 101 |
+
class SingleConstructorOffset(BaseOffset):
|
| 102 |
+
@classmethod
|
| 103 |
+
def _from_name(cls, suffix: None = ...): ...
|
| 104 |
+
def __reduce__(self): ...
|
| 105 |
+
|
| 106 |
+
@overload
|
| 107 |
+
def to_offset(freq: None, is_period: bool = ...) -> None: ...
|
| 108 |
+
@overload
|
| 109 |
+
def to_offset(freq: _BaseOffsetT, is_period: bool = ...) -> _BaseOffsetT: ...
|
| 110 |
+
@overload
|
| 111 |
+
def to_offset(freq: timedelta | str, is_period: bool = ...) -> BaseOffset: ...
|
| 112 |
+
|
| 113 |
+
class Tick(SingleConstructorOffset):
|
| 114 |
+
_creso: int
|
| 115 |
+
_prefix: str
|
| 116 |
+
def __init__(self, n: int = ..., normalize: bool = ...) -> None: ...
|
| 117 |
+
@property
|
| 118 |
+
def delta(self) -> Timedelta: ...
|
| 119 |
+
@property
|
| 120 |
+
def nanos(self) -> int: ...
|
| 121 |
+
|
| 122 |
+
def delta_to_tick(delta: timedelta) -> Tick: ...
|
| 123 |
+
|
| 124 |
+
class Day(Tick): ...
|
| 125 |
+
class Hour(Tick): ...
|
| 126 |
+
class Minute(Tick): ...
|
| 127 |
+
class Second(Tick): ...
|
| 128 |
+
class Milli(Tick): ...
|
| 129 |
+
class Micro(Tick): ...
|
| 130 |
+
class Nano(Tick): ...
|
| 131 |
+
|
| 132 |
+
class RelativeDeltaOffset(BaseOffset):
|
| 133 |
+
def __init__(self, n: int = ..., normalize: bool = ..., **kwds: Any) -> None: ...
|
| 134 |
+
|
| 135 |
+
class BusinessMixin(SingleConstructorOffset):
|
| 136 |
+
def __init__(
|
| 137 |
+
self, n: int = ..., normalize: bool = ..., offset: timedelta = ...
|
| 138 |
+
) -> None: ...
|
| 139 |
+
|
| 140 |
+
class BusinessDay(BusinessMixin): ...
|
| 141 |
+
|
| 142 |
+
class BusinessHour(BusinessMixin):
|
| 143 |
+
def __init__(
|
| 144 |
+
self,
|
| 145 |
+
n: int = ...,
|
| 146 |
+
normalize: bool = ...,
|
| 147 |
+
start: str | time | Collection[str | time] = ...,
|
| 148 |
+
end: str | time | Collection[str | time] = ...,
|
| 149 |
+
offset: timedelta = ...,
|
| 150 |
+
) -> None: ...
|
| 151 |
+
|
| 152 |
+
class WeekOfMonthMixin(SingleConstructorOffset):
|
| 153 |
+
def __init__(
|
| 154 |
+
self, n: int = ..., normalize: bool = ..., weekday: int = ...
|
| 155 |
+
) -> None: ...
|
| 156 |
+
|
| 157 |
+
class YearOffset(SingleConstructorOffset):
|
| 158 |
+
def __init__(
|
| 159 |
+
self, n: int = ..., normalize: bool = ..., month: int | None = ...
|
| 160 |
+
) -> None: ...
|
| 161 |
+
|
| 162 |
+
class BYearEnd(YearOffset): ...
|
| 163 |
+
class BYearBegin(YearOffset): ...
|
| 164 |
+
class YearEnd(YearOffset): ...
|
| 165 |
+
class YearBegin(YearOffset): ...
|
| 166 |
+
|
| 167 |
+
class QuarterOffset(SingleConstructorOffset):
|
| 168 |
+
def __init__(
|
| 169 |
+
self, n: int = ..., normalize: bool = ..., startingMonth: int | None = ...
|
| 170 |
+
) -> None: ...
|
| 171 |
+
|
| 172 |
+
class BQuarterEnd(QuarterOffset): ...
|
| 173 |
+
class BQuarterBegin(QuarterOffset): ...
|
| 174 |
+
class QuarterEnd(QuarterOffset): ...
|
| 175 |
+
class QuarterBegin(QuarterOffset): ...
|
| 176 |
+
class MonthOffset(SingleConstructorOffset): ...
|
| 177 |
+
class MonthEnd(MonthOffset): ...
|
| 178 |
+
class MonthBegin(MonthOffset): ...
|
| 179 |
+
class BusinessMonthEnd(MonthOffset): ...
|
| 180 |
+
class BusinessMonthBegin(MonthOffset): ...
|
| 181 |
+
|
| 182 |
+
class SemiMonthOffset(SingleConstructorOffset):
|
| 183 |
+
def __init__(
|
| 184 |
+
self, n: int = ..., normalize: bool = ..., day_of_month: int | None = ...
|
| 185 |
+
) -> None: ...
|
| 186 |
+
|
| 187 |
+
class SemiMonthEnd(SemiMonthOffset): ...
|
| 188 |
+
class SemiMonthBegin(SemiMonthOffset): ...
|
| 189 |
+
|
| 190 |
+
class Week(SingleConstructorOffset):
|
| 191 |
+
def __init__(
|
| 192 |
+
self, n: int = ..., normalize: bool = ..., weekday: int | None = ...
|
| 193 |
+
) -> None: ...
|
| 194 |
+
|
| 195 |
+
class WeekOfMonth(WeekOfMonthMixin):
|
| 196 |
+
def __init__(
|
| 197 |
+
self, n: int = ..., normalize: bool = ..., week: int = ..., weekday: int = ...
|
| 198 |
+
) -> None: ...
|
| 199 |
+
|
| 200 |
+
class LastWeekOfMonth(WeekOfMonthMixin): ...
|
| 201 |
+
|
| 202 |
+
class FY5253Mixin(SingleConstructorOffset):
|
| 203 |
+
def __init__(
|
| 204 |
+
self,
|
| 205 |
+
n: int = ...,
|
| 206 |
+
normalize: bool = ...,
|
| 207 |
+
weekday: int = ...,
|
| 208 |
+
startingMonth: int = ...,
|
| 209 |
+
variation: Literal["nearest", "last"] = ...,
|
| 210 |
+
) -> None: ...
|
| 211 |
+
|
| 212 |
+
class FY5253(FY5253Mixin): ...
|
| 213 |
+
|
| 214 |
+
class FY5253Quarter(FY5253Mixin):
|
| 215 |
+
def __init__(
|
| 216 |
+
self,
|
| 217 |
+
n: int = ...,
|
| 218 |
+
normalize: bool = ...,
|
| 219 |
+
weekday: int = ...,
|
| 220 |
+
startingMonth: int = ...,
|
| 221 |
+
qtr_with_extra_week: int = ...,
|
| 222 |
+
variation: Literal["nearest", "last"] = ...,
|
| 223 |
+
) -> None: ...
|
| 224 |
+
|
| 225 |
+
class Easter(SingleConstructorOffset): ...
|
| 226 |
+
|
| 227 |
+
class _CustomBusinessMonth(BusinessMixin):
|
| 228 |
+
def __init__(
|
| 229 |
+
self,
|
| 230 |
+
n: int = ...,
|
| 231 |
+
normalize: bool = ...,
|
| 232 |
+
weekmask: str = ...,
|
| 233 |
+
holidays: list | None = ...,
|
| 234 |
+
calendar: OffsetCalendar | None = ...,
|
| 235 |
+
offset: timedelta = ...,
|
| 236 |
+
) -> None: ...
|
| 237 |
+
|
| 238 |
+
class CustomBusinessDay(BusinessDay):
|
| 239 |
+
def __init__(
|
| 240 |
+
self,
|
| 241 |
+
n: int = ...,
|
| 242 |
+
normalize: bool = ...,
|
| 243 |
+
weekmask: str = ...,
|
| 244 |
+
holidays: list | None = ...,
|
| 245 |
+
calendar: OffsetCalendar | None = ...,
|
| 246 |
+
offset: timedelta = ...,
|
| 247 |
+
) -> None: ...
|
| 248 |
+
|
| 249 |
+
class CustomBusinessHour(BusinessHour):
|
| 250 |
+
def __init__(
|
| 251 |
+
self,
|
| 252 |
+
n: int = ...,
|
| 253 |
+
normalize: bool = ...,
|
| 254 |
+
weekmask: str = ...,
|
| 255 |
+
holidays: list | None = ...,
|
| 256 |
+
calendar: OffsetCalendar | None = ...,
|
| 257 |
+
start: str | time | Collection[str | time] = ...,
|
| 258 |
+
end: str | time | Collection[str | time] = ...,
|
| 259 |
+
offset: timedelta = ...,
|
| 260 |
+
) -> None: ...
|
| 261 |
+
|
| 262 |
+
class CustomBusinessMonthEnd(_CustomBusinessMonth): ...
|
| 263 |
+
class CustomBusinessMonthBegin(_CustomBusinessMonth): ...
|
| 264 |
+
class OffsetMeta(type): ...
|
| 265 |
+
class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta): ...
|
| 266 |
+
|
| 267 |
+
BDay = BusinessDay
|
| 268 |
+
BMonthEnd = BusinessMonthEnd
|
| 269 |
+
BMonthBegin = BusinessMonthBegin
|
| 270 |
+
CBMonthEnd = CustomBusinessMonthEnd
|
| 271 |
+
CBMonthBegin = CustomBusinessMonthBegin
|
| 272 |
+
CDay = CustomBusinessDay
|
| 273 |
+
|
| 274 |
+
def roll_qtrday(
|
| 275 |
+
other: datetime, n: int, month: int, day_opt: str, modby: int
|
| 276 |
+
) -> int: ...
|
| 277 |
+
|
| 278 |
+
INVALID_FREQ_ERR_MSG: Literal["Invalid frequency: {0}"]
|
| 279 |
+
|
| 280 |
+
def shift_months(
|
| 281 |
+
dtindex: npt.NDArray[np.int64],
|
| 282 |
+
months: int,
|
| 283 |
+
day_opt: str | None = ...,
|
| 284 |
+
reso: int = ...,
|
| 285 |
+
) -> npt.NDArray[np.int64]: ...
|
| 286 |
+
|
| 287 |
+
_offset_map: dict[str, BaseOffset]
|