def __init__(self,<EOL>hdp,<EOL>replace_reference=hgvs.global_config.mapping.replace_reference,<EOL>prevalidation_level=hgvs.global_config.mapping.prevalidation_level,<EOL>add_gene_symbol=hgvs.global_config.mapping.add_gene_symbol<EOL>):
self.hdp = hdp<EOL>self.replace_reference = replace_reference<EOL>self.add_gene_symbol = add_gene_symbol<EOL>if prevalidation_level is None:<EOL><INDENT>self.prevalidation_level = PrevalidationLevel.NONE<EOL><DEDENT>else:<EOL><INDENT>self.prevalidation_level = PrevalidationLevel[prevalidation_level.upper()]<EOL><DEDENT>if self.prevalidation_level == PrevalidationLevel.NONE:<EOL><INDENT>self._validator = None<EOL><DEDENT>elif self.prevalidation_level == PrevalidationLevel.INTRINSIC:<EOL><INDENT>self._validator = hgvs.validator.IntrinsicValidator(strict=False)<EOL><DEDENT>else:<EOL><INDENT>self._validator = hgvs.validator.Validator(self.hdp, strict=False)<EOL><DEDENT>
:param bool replace_reference: replace reference (entails additional network access)
:param str prevalidation_level: None or Intrinsic or Extrinsic validation before mapping