def mult_align(sum_dict, align_dict):
 mult_align_dict = {}
 for j in align_dict.abs(1).pos_align_dict:
  mult_align_dict[j] = ''
 for i in range(1, (len(align_dict) + 1)):
  for j in align_dict.abs(i).pos_align_dict:
   mult_align_dict[j] += align_dict.abs(i).pos_align_dict[j].aa
 alpha = Alphabet.Gapped(Alphabet.IUPAC.extended_protein)
 fssp_align = MultipleSeqAlignment([], alphabet=alpha)
 for i in sorted(mult_align_dict):
  fssp_align.append(SeqRecord(Seq(mult_align_dict[i], alpha), (sum_dict[i].pdb2 + sum_dict[i].chain2)))
 return fssp_align

def mult_align ( sum_dict , align_dict ) : mult_align_dict = { } for j in align_dict . abs ( 1 ) . pos_align_dict : mult_align_dict [ j ] = '' for i in range ( 1 , ( len ( align_dict ) + 1 ) ) : for j in align_dict . abs ( i ) . pos_align_dict : mult_align_dict [ j ] += align_dict . abs ( i ) . pos_align_dict [ j ] . aa alpha = Alphabet . Gapped ( Alphabet . IUPAC . extended_protein ) fssp_align = MultipleSeqAlignment ( [ ] , alphabet = alpha ) for i in sorted ( mult_align_dict ) : fssp_align . append ( SeqRecord ( Seq ( mult_align_dict [ i ] , alpha ) , ( sum_dict [ i ] . pdb2 + sum_dict [ i ] . chain2 ) ) ) return fssp_align
returns a biopython multiple alignment instance .