def __init__(self,
                 hdp,
                 cross_boundaries=hgvs.global_config.normalizer.cross_boundaries,
                 shuffle_direction=hgvs.global_config.normalizer.shuffle_direction,
                 alt_aln_method=hgvs.global_config.mapping.alt_aln_method,
                 validate=hgvs.global_config.normalizer.validate):
        """Initialize and configure the normalizer

        :param hdp: HGVS Data Provider Interface-compliant instance
            (see :class:`hgvs.dataproviders.interface.Interface`)
        :param cross_boundaries: whether allow the shuffling to cross the exon-intron boundary
        :param shuffle_direction: shuffling direction
        :param alt_aln_method: sequence alignment method (e.g., splign, blat)
        :param validate: whether validating the input variant before normalizing

        """
        assert shuffle_direction == 3 or shuffle_direction == 5, \
            "The shuffling direction should be 3 (3' most) or 5 (5' most)."
        self.hdp = hdp
        self.shuffle_direction = shuffle_direction
        self.cross_boundaries = cross_boundaries
        self.alt_aln_method = alt_aln_method
        self.validator = None
        if validate:
            self.validator = hgvs.validator.IntrinsicValidator(strict=False)
        self.hm = hgvs.variantmapper.VariantMapper(self.hdp)
def __init__ ( self , hdp , cross_boundaries = hgvs . global_config . normalizer . cross_boundaries , shuffle_direction = hgvs . global_config . normalizer . shuffle_direction , alt_aln_method = hgvs . global_config . mapping . alt_aln_method , validate = hgvs . global_config . normalizer . validate ) : assert shuffle_direction == 3 or shuffle_direction == 5 , "The shuffling direction should be 3 (3' most) or 5 (5' most)." self . hdp = hdp self . shuffle_direction = shuffle_direction self . cross_boundaries = cross_boundaries self . alt_aln_method = alt_aln_method self . validator = None if validate : self . validator = hgvs . validator . IntrinsicValidator ( strict = False ) self . hm = hgvs . variantmapper . VariantMapper ( self . hdp )
Initialize and configure the normalizer

        :param hdp: HGVS Data Provider Interface-compliant instance
            (see :class:`hgvs.dataproviders.interface.Interface`)
        :param cross_boundaries: whether allow the shuffling to cross the exon-intron boundary
        :param shuffle_direction: shuffling direction
        :param alt_aln_method: sequence alignment method (e.g., splign, blat)
        :param validate: whether validating the input variant before normalizing