code: def rename_with_num(self, prefix="", new_path=None, remove_desc=True):
          
          # Temporary path #
          if new_path is None: numbered = self.__class__(new_temp_path())
          else:                numbered = self.__class__(new_path)
          # Generator #
          def numbered_iterator():
              for i,read in enumerate(self):
                  read.id  = prefix + str(i)
                  read.seq = read.seq.upper()
                  if remove_desc: read.description = ""
                  yield read
          # Do it #
          numbered.write(numbered_iterator())
          numbered.close()
          # Replace it #
          if new_path is None:
              os.remove(self.path)
              shutil.move(numbered, self.path)
          return numbered
docs: Rename every sequence based on a prefix and a number.