def _emplace_pmrna(mrnas, parent, strict=False):
mrnas.sort(key=lambda m: (m.cdslen, m.get_attribute('<STR_LIT>')))<EOL>pmrna = mrnas.pop()<EOL>if strict:<EOL><INDENT>parent.children = [pmrna]<EOL><DEDENT>else:<EOL><INDENT>parent.children = [c for c in parent.children if c not in mrnas]<EOL><DEDENT>
Retrieve the primary mRNA and discard all others.