WinslowFan Claude Opus 4.8 commited on
Commit
92129bf
·
1 Parent(s): f974b78

Revert ranked functions to show all annotations

Browse files

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Files changed (1) hide show
  1. backend/app/protein/tsv_loader.py +2 -2
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 GO-term annotations 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 [f for f in _parse_functions(row["ranked_functions"]) if f.startswith("The GO term")]
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]: