\Amelaye\BioPHP\Domain\Sequence\Service ProteinManager

We can have manipulation with proteins

Summary

Methods
Properties
Constants
__construct
setProtein
seqlen
molwt
No public properties found
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
protein
aminos
aminoApi
No private constants found

Properties

$protein

$protein : \Amelaye\BioPHP\Domain\Sequence\Entity\Protein

Type

Protein —

$aminos

$aminos : array

Type

array<string|int, mixed> —

$aminoApi

$aminoApi : \Amelaye\BioPHP\Api\Interfaces\AminoApiAdapter

Type

AminoApiAdapter —

Methods

__construct()

__construct(\Amelaye\BioPHP\Api\Interfaces\AminoApiAdapter  $aminoApi) : mixed

Constructor

Parameters

\Amelaye\BioPHP\Api\Interfaces\AminoApiAdapter $aminoApi

Returns

mixed —

setProtein()

setProtein(mixed  $oProtein) : mixed

Sets the protein sequence to operate on.

Parameters

mixed $oProtein

Returns

mixed —

seqlen()

seqlen() : int

Returns the length of a protein sequence().

Returns

int —

An integer representing the number of amino acids in the protein.

molwt()

molwt() : bool|array

Computes the molecular weight of a protein sequence.

Returns

bool|array —

An array of the form: ( lower_molwt, upper_molwt )