def _sum_by_samples(seqs_freq, samples_order):
n = len(seqs_freq[seqs_freq.keys()[<NUM_LIT:0>]].freq.keys())<EOL>y = np.array([<NUM_LIT:0>] * n)<EOL>for s in seqs_freq:<EOL><INDENT>x = seqs_freq[s].freq<EOL>exp = [seqs_freq[s].freq[sam] for sam in samples_order]<EOL>y = list(np.array(exp) + y)<EOL><DEDENT>return y<EOL>
Sum sequences of a metacluster by samples.