src/Reader/MzIdentMlReader1r1.php
private function getPeptideHypothesis(\SimpleXMLElement $xml)
    {
        $hypothesis = array();
        $ref = (string) $xml->attributes()->peptideEvidence_ref;

        $hypothesis['peptide'] = $ref;
        $hypothesis['spectra'] = array();

        // TODO: Nothing we can currently do with this data - yet
        foreach ($xml->SpectrumIdentificationItemRef as $spectrumIdentificationItemRef) {
            $hypothesis['spectra'][] = $this->getSpectrumIdentificationItemRef($spectrumIdentificationItemRef);
        }

        return $hypothesis;
    }
private function getPeptideHypothesis(\SimpleXMLElement $xml)
    {
        $hypothesis = array();
        $ref = (string) $xml->attributes()->peptideEvidence_ref;

        $hypothesis['peptide'] = $ref;
        $hypothesis['spectra'] = array();

        // TODO: Nothing we can currently do with this data - yet
        foreach ($xml->SpectrumIdentificationItemRef as $spectrumIdentificationItemRef) {
            $hypothesis['spectra'][] = $this->getSpectrumIdentificationItemRef($spectrumIdentificationItemRef);
        }

        return $hypothesis;
    }
private function getPeptideHypothesis ( \ SimpleXMLElement $ xml ) { $ hypothesis = array ( ) ; $ ref = ( string ) $ xml -> attributes ( ) -> peptideEvidence_ref ; $ hypothesis [ 'peptide' ] = $ ref ; $ hypothesis [ 'spectra' ] = array ( ) ; // TODO: Nothing we can currently do with this data - yet foreach ( $ xml -> SpectrumIdentificationItemRef as $ spectrumIdentificationItemRef ) { $ hypothesis [ 'spectra' ] [ ] = $ this -> getSpectrumIdentificationItemRef ( $ spectrumIdentificationItemRef ) ; } return $ hypothesis ; }
Peptide evidence on which this ProteinHypothesis is based by reference to a PeptideEvidence element.

@param \SimpleXMLElement $xml
XML to parse
Peptide evidence on which this ProteinHypothesis is based by reference to a PeptideEvidence element .