def write(self):
        """Return FASTQ formatted string

        Returns:
            str: FASTQ formatted string containing entire FASTQ entry
        """

        if self.description:
            return '@{0} {1}{4}{2}{4}+{4}{3}{4}'.format(self.id,
                                                        self.description,
                                                        self.sequence,
                                                        self.quality,
                                                        os.linesep)
        else:
            return '@{0}{3}{1}{3}+{3}{2}{3}'.format(self.id,
                                                    self.sequence,
                                                    self.quality,
                                                    os.linesep)
def write ( self ) : if self . description : return '@{0} {1}{4}{2}{4}+{4}{3}{4}' . format ( self . id , self . description , self . sequence , self . quality , os . linesep ) else : return '@{0}{3}{1}{3}+{3}{2}{3}' . format ( self . id , self . sequence , self . quality , os . linesep )
Return FASTQ formatted string

        Returns:
            str: FASTQ formatted string containing entire FASTQ entry