private function parseSequence()
    {
        $sequence = '';

        while ($line = $this->getLine()) {
            $sequence .= trim($line);

            $nextLine = trim($this->peekLine());

            if (strpos($nextLine, '>') === 0) {
                break;
            }
        }

        // Remove stop codon in IRGSP FASTA
        if (strrpos($sequence, '*', - 1) !== false) {
            $sequence = substr($sequence, 0, - 1);
        }

        return $sequence;
    }