def _normalize_seqs(s, t):
for ids in s:<EOL><INDENT>obj = s[ids]<EOL>[obj.norm_freq.update({sample: <NUM_LIT:1.0> * obj.freq[sample] / (t[sample]+<NUM_LIT:1>) * <NUM_LIT>}) for sample in obj.norm_freq]<EOL>s[ids] = obj<EOL><DEDENT>return s<EOL>
Normalize to RPM