Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
58adce6
uniprot refactor
alinakbase Dec 3, 2025
991eb56
Remove .DS_Store from tests directory
alinakbase Dec 4, 2025
8b65d9a
Fixing path problems that were preventing module import
ialarmedalien Dec 4, 2025
4290d22
Removing `tests/` directory from under `tests`
ialarmedalien Dec 4, 2025
bcabb33
UniRef updates
ialarmedalien Dec 10, 2025
aaef0ed
lint
ialarmedalien Dec 10, 2025
ff37c2d
First steps towards using external IDs for CDM entities
ialarmedalien Dec 17, 2025
e6b525a
organize uniprot.py
alinakbase Dec 18, 2025
b797fb0
revise uniprot.py and test_uniprot.py
alinakbase Dec 20, 2025
44c046f
format: apply ruff formatting to uniprot parser
alinakbase Dec 20, 2025
8805463
change the format
alinakbase Dec 20, 2025
a41a792
format
alinakbase Dec 20, 2025
ca32a96
Regenerate uv.lock
alinakbase Dec 22, 2025
47ce5ab
Uniprot branch file movements
alinakbase Dec 24, 2025
0bb3c3a
Fix formatting / tests / docs
alinakbase Dec 24, 2025
8653e2c
update uniref and test uniref
alinakbase Dec 24, 2025
494c196
reformat uniprot and uniref
alinakbase Dec 24, 2025
121c3bb
update uniprot.py and test
alinakbase Dec 24, 2025
a6ce412
any data files used by the test should go in test/data
alinakbase Dec 24, 2025
ce87942
formatting uniprot.py
ialarmedalien Dec 24, 2025
4e59c3a
Fix UniRef parsing tests and stabilize timestamp handling
alinakbase Jan 6, 2026
5b44664
Remove large uniprot archaea test data directory
alinakbase Jan 20, 2026
72fa98f
style: apply Ruff formatting to uniprot-refactor-v2
alinakbase Jan 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ ignore = [
"tests/**/*.py" = ["S101", "T201"] # use of assert
"**/__init__.py" = ["D104"]


[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 15.
max-complexity = 15
Expand Down
2 changes: 1 addition & 1 deletion src/cdm_data_loader_utils/parsers/gene_association_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
if register:
register_table(spark, output_path, table_name=table_name, permanent=permanent)

except Exception as e:
except Exception:

Check warning on line 276 in src/cdm_data_loader_utils/parsers/gene_association_file.py

View check run for this annotation

Codecov / codecov/patch

src/cdm_data_loader_utils/parsers/gene_association_file.py#L276

Added line #L276 was not covered by tests
logger.exception("Pipeline failed")
sys.exit(1)
finally:
Expand Down
11 changes: 11 additions & 0 deletions src/cdm_data_loader_utils/parsers/shared_identifiers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from cdm_data_loader_utils.parsers.xml_utils import get_text


def parse_identifiers_generic(entry, xpath, prefix, ns):
result = []
for node in entry.findall(xpath, ns):
text = get_text(node)
if not text:
continue

Check warning on line 9 in src/cdm_data_loader_utils/parsers/shared_identifiers.py

View check run for this annotation

Codecov / codecov/patch

src/cdm_data_loader_utils/parsers/shared_identifiers.py#L9

Added line #L9 was not covered by tests
result.append({"identifier": f"{prefix}:{text}", "source": prefix, "description": f"{prefix} accession"})
return result
Loading
Loading