Skip to content

Commit

Permalink
ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Jan 4, 2024
1 parent ec80e26 commit 5374587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/gene/etl/ncbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _get_gene_info(self, prev_symbols: Dict[str, str]) -> Dict[str, Dict]:
vrs_chr_location = self._get_vrs_chr_location(row, params)
except ValueError:
# Exclude genes with multiple distinct locations (e.g. OMS)
pass
continue
else:
if vrs_chr_location:
params["locations"] = vrs_chr_location
Expand Down Expand Up @@ -340,7 +340,6 @@ def _set_chromosomes_locations(self, row: List[str], params: Dict) -> Dict:
_logger.info(
f"{row[2]} contains multiple distinct locations: {locations}."
)
locations = None
raise ValueError

# NCBI sometimes contains invalid map locations
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/test_database_and_etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ def test_get_all_records(db_fixture):
is getting sent twice.
"""
source_records = list(db_fixture.db.get_all_records(RecordType.IDENTITY))
assert len(source_records) == 64
assert len(source_records) == 63
source_ids = {r["concept_id"] for r in source_records}
assert len(source_ids) == 64
assert len(source_ids) == 63

normalized_records = list(db_fixture.db.get_all_records(RecordType.MERGER))
assert len(normalized_records) == 47
assert len(normalized_records) == 46
normalized_ids = {r["concept_id"] for r in normalized_records}
assert len(normalized_ids) == 47
assert len(normalized_ids) == 46

0 comments on commit 5374587

Please sign in to comment.