\AppBundle\Service\MiscGeneticsFunctions

Class NucleotidsManager

Summary

Methods
Properties
Constants
CountACGT()
countYRWSKMDVHB()
CountCG()
createInversion()
removeNonCodingProt()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

CountACGT()

CountACGT(string  $sSequence) : integer

Will count number of A, C, G and T bases in the sequence

Parameters

string $sSequence

is the sequence

Throws

\Exception

Returns

integer

countYRWSKMDVHB()

countYRWSKMDVHB(string  $c) : integer

Will count number of degenerate nucleotides (Y, R, W, S, K, MD, V, H and B) in the sequence

Parameters

string $c

Throws

\Exception

Returns

integer

CountCG()

CountCG(  $c) : integer

Parameters

$c

Throws

\Exception

Returns

integer

createInversion()

createInversion(  $sSequence,   $dnaComplements) 

Place sequence and reverse complement of sequence in one line

Parameters

$sSequence
$dnaComplements

removeNonCodingProt()

removeNonCodingProt(string  $sSequence) : string

Removes non-coding characters

Parameters

string $sSequence

Throws

\Exception

Returns

string