The assignment of the class attributes should be done after the original values are copied (in self.initParamValues), and the value should be the output of the appropriate validation method.
self.origCoordSystem = self._validate_origCoordSystem(origCoordSystem) is the right idea
self.seqType = seqType should be self.seqType = self._validate_seqType(seqType)
https://github.com/InformaticsGenomicMedicine/DraftCoreDataModel/blob/79450932a44ee677816f9c02e6f5660ea03e5ec1/src/core_variant.py#L11-L22
The assignment of the class attributes should be done after the original values are copied (in
self.initParamValues
), and the value should be the output of the appropriate validation method.self.origCoordSystem = self._validate_origCoordSystem(origCoordSystem)
is the right ideaself.seqType = seqType
should beself.seqType = self._validate_seqType(seqType)