@staticmethod<EOL><INDENT>def _refine_v(seq, species):<DEDENT>
vgerm = germlines.get_germline(seq['<STR_LIT>']['<STR_LIT>'], species)<EOL>aln = global_alignment(seq['<STR_LIT>'], vgerm)<EOL>prepend = '<STR_LIT>'<EOL>for s, g in zip(aln.aligned_query, aln.aligned_target):<EOL><INDENT>if s != '<STR_LIT:->':<EOL><INDENT>break<EOL><DEDENT>else:<EOL><INDENT>prepend += g<EOL><DEDENT><DEDENT>seq['<STR_LIT>'] = prepend + seq['<STR_LIT>']<EOL>
Completes the 5' end of a a truncated sequence with germline nucleotides.
Input is a MongoDB dict (seq) and the species.