def rename_with_prefix(self, prefix="<STR_LIT>", new_path=None, in_place=True, remove_desc=True):
<EOL>if new_path is None: prefixed = self.__class__(new_temp_path())<EOL>else:                prefixed = self.__class__(new_path)<EOL>def prefixed_iterator():<EOL><INDENT>for i,read in enumerate(self):<EOL><INDENT>read.id = prefix + read.id<EOL>if remove_desc: read.description = "<STR_LIT>"<EOL>yield read<EOL><DEDENT><DEDENT>prefixed.write(prefixed_iterator())<EOL>prefixed.close()<EOL>if in_place:<EOL><INDENT>os.remove(self.path)<EOL>shutil.move(prefixed, self.path)<EOL><DEDENT>return prefixed<EOL>
Rename every sequence based on a prefix.