src/Reader/FastaReader.php
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;
    }
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;
    }
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 ; }
Parses the sequence block from the FASTA file and returns the sequence without any line ending or formatting

@return string
Parses the sequence block from the FASTA file and returns the sequence without any line ending or formatting