We can also invert the conversion of a peptide into a peptide vector, so that the terms "peptide" and "peptide vector" can be used interchangeably.
Given a file containing a binary vector P.
Return a peptide whose binary peptide vector matches P.
For masses with more than one amino acid: K/Q -> Q and I/L -> L.
>>> peptide_vector_to_peptide('data01.txt'1) 'RPQPVPGMAE' >>> peptide_vector_to_peptide('data02.txt'2) 'CHQGWASWLGLTSHRSERYF'