def _get_tgt_length(self, var):
if var.type == "<STR_LIT:g>" or var.type == "<STR_LIT:m>":<EOL><INDENT>return float("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>identity_info = self.hdp.get_tx_identity_info(var.ac)<EOL>if not identity_info:<EOL><INDENT>raise HGVSDataNotAvailableError(<EOL>"<STR_LIT>".format(ac=var.ac))<EOL><DEDENT>tgt_len = sum(identity_info["<STR_LIT>"])<EOL>return tgt_len<EOL><DEDENT>
Get the total length of the whole reference sequence