Finished function for returning feature coding

This commit is contained in:
Harrison Deng 2025-01-02 19:28:54 +00:00
parent 18a13083dc
commit a9ae193cdc

View File

@ -15,5 +15,5 @@ class Strand:
coding: str
features: Sequence[StrandFeature]
def get_feature_coding(strand: Strand, feature: StrandFeature):
strand.coding[feature.start:feature.end]
def get_feature_coding(strand: Strand, feature: StrandFeature) -> str:
return strand.coding[feature.start:feature.end]