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