Skip to content

Commit 20e3aa2

Browse files
committed
Fix type annotations for target gene metadata param
1 parent bfcbcba commit 20e3aa2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/dcd_mapping/vrs_map.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
AlignmentResult,
2929
MappedScore,
3030
ScoreRow,
31-
ScoresetMetadata,
31+
TargetGene,
3232
TargetSequenceType,
3333
TargetType,
3434
TxSelectResult,
@@ -535,14 +535,14 @@ def _hgvs_nt_is_valid(hgvs_nt: str) -> bool:
535535

536536

537537
def _map_protein_coding(
538-
metadata: ScoresetMetadata,
538+
metadata: TargetGene,
539539
records: list[ScoreRow],
540540
transcript: TxSelectResult | TxSelectError,
541541
align_result: AlignmentResult,
542542
) -> list[MappedScore]:
543543
"""Perform mapping on protein coding experiment results
544544
545-
:param metadata: The metadata for a score set
545+
:param metadata: Target gene metadata from MaveDB API
546546
:param records: The list of MAVE variants in a given score set
547547
:param transcript: The transcript data for a score set, or an error message describing why an expected transcript is missing
548548
:param align_results: The alignment data for a score set
@@ -582,13 +582,13 @@ def _map_protein_coding(
582582

583583

584584
def _map_regulatory_noncoding(
585-
metadata: ScoresetMetadata,
585+
metadata: TargetGene,
586586
records: list[ScoreRow],
587587
align_result: AlignmentResult,
588588
) -> list[MappedScore]:
589589
"""Perform mapping on noncoding/regulatory experiment results
590590
591-
:param metadata: metadata for URN
591+
:param metadata: Target gene metadata from MaveDB API
592592
:param records: list of MAVE experiment result rows
593593
:param align_result: An AlignmentResult object for a score set
594594
:return: A list of VRS mappings
@@ -677,7 +677,7 @@ def _construct_vrs_allele(
677677

678678

679679
def vrs_map(
680-
metadata: ScoresetMetadata,
680+
metadata: TargetGene,
681681
align_result: AlignmentResult,
682682
records: list[ScoreRow],
683683
transcript: TxSelectResult | TxSelectError | None = None,

0 commit comments

Comments
 (0)