-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made snp_transcript polymorphic to avoid breaking the API
- Loading branch information
Showing
4 changed files
with
91 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
"""Parameters for diplotype clustering functions.""" | ||
|
||
from typing_extensions import Annotated, TypeAlias, Union, Sequence | ||
|
||
from .distance_params import distance_metric | ||
from .clustering_params import linkage_method | ||
from .base_params import transcript | ||
|
||
|
||
linkage_method_default: linkage_method = "complete" | ||
|
||
distance_metric_default: distance_metric = "cityblock" | ||
|
||
snp_transcript: TypeAlias = Annotated[ | ||
Union[None, transcript, Sequence[transcript]], | ||
"A transcript or a list of transcripts", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters