def c_to_p(self, var_c, pro_ac=None):
if not (var_c.type == "<STR_LIT:c>"):<EOL><INDENT>raise HGVSInvalidVariantError("<STR_LIT>" + str(var_c))<EOL><DEDENT>if self._validator:<EOL><INDENT>self._validator.validate(var_c)<EOL><DEDENT>reference_data = RefTranscriptData(self.hdp, var_c.ac, pro_ac)<EOL>builder = altseqbuilder.AltSeqBuilder(var_c, reference_data)<EOL>all_alt_data = builder.build_altseq()<EOL>var_ps = []<EOL>for alt_data in all_alt_data:<EOL><INDENT>builder = altseq_to_hgvsp.AltSeqToHgvsp(reference_data, alt_data)<EOL>var_p = builder.build_hgvsp()<EOL>var_ps.append(var_p)<EOL><DEDENT>var_p = var_ps[<NUM_LIT:0>]<EOL>if self.add_gene_symbol:<EOL><INDENT>self._update_gene_symbol(var_p, var_c.gene)<EOL><DEDENT>return var_p<EOL>
Converts a c. SequenceVariant to a p. SequenceVariant on the specified protein accession
Author: Rudy Rico

:param SequenceVariant var_c: hgvsc tag
:param str pro_ac: protein accession
:rtype: hgvs.sequencevariant.SequenceVariant