src/Core/ProteinTrait.php
public function addProtein(Protein $protein, $start = null, $end = null)
    {
        $entry = new ProteinEntry($protein);
        if (! is_null($start)) {
            $entry->setStart($start);
        }

        if (! is_null($end)) {
            $entry->setEnd($end);
        }

        $this->addProteinEntry($entry);
    }
public function addProtein(Protein $protein, $start = null, $end = null)
    {
        $entry = new ProteinEntry($protein);
        if (! is_null($start)) {
            $entry->setStart($start);
        }

        if (! is_null($end)) {
            $entry->setEnd($end);
        }

        $this->addProteinEntry($entry);
    }
public function addProtein ( Protein $ protein , $ start = null , $ end = null ) { $ entry = new ProteinEntry ( $ protein ) ; if ( ! is_null ( $ start ) ) { $ entry -> setStart ( $ start ) ; } if ( ! is_null ( $ end ) ) { $ entry -> setEnd ( $ end ) ; } $ this -> addProteinEntry ( $ entry ) ; }
Add a new protein mapping to this object.
Start and end positions on the protein sequence can be specified

@param Protein $protein
The protein to map to
@param int $start
The start position of this peptide in the sequence
@param int $end
The end position this peptide in the sequence
Add a new protein mapping to this object . Start and end positions on the protein sequence can be specified