Commit ·
92129bf
1
Parent(s): f974b78
Revert ranked functions to show all annotations
Browse filesCo-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
backend/app/protein/tsv_loader.py
CHANGED
|
@@ -194,11 +194,11 @@ def get_sequence(pdb_id: str, auth_asym_id: str) -> Tuple[Optional[str], Optiona
|
|
| 194 |
|
| 195 |
|
| 196 |
def get_functions(pdb_id: str, auth_asym_id: str) -> Optional[List[str]]:
|
| 197 |
-
"""Return ranked
|
| 198 |
row = get_node_row(pdb_id, auth_asym_id)
|
| 199 |
if row is None:
|
| 200 |
return None
|
| 201 |
-
return
|
| 202 |
|
| 203 |
|
| 204 |
def get_state_id(pdb_id: str, auth_asym_id: str) -> Optional[str]:
|
|
|
|
| 194 |
|
| 195 |
|
| 196 |
def get_functions(pdb_id: str, auth_asym_id: str) -> Optional[List[str]]:
|
| 197 |
+
"""Return ranked function list for a chain, or None if not in node table."""
|
| 198 |
row = get_node_row(pdb_id, auth_asym_id)
|
| 199 |
if row is None:
|
| 200 |
return None
|
| 201 |
+
return _parse_functions(row["ranked_functions"])
|
| 202 |
|
| 203 |
|
| 204 |
def get_state_id(pdb_id: str, auth_asym_id: str) -> Optional[str]:
|