GibbsSampler


CompositeVector

Namespace: GibbsSampling

Consists of functions to work with Frequency- and Probability-Composite-Vectors.

Nested types and modules

TypeDescription
FrequencyCompositeVector

One dimensional array with fixed positions for each element. Use to track frequency of elements independent of position in source.

ProbabilityCompositeVector

Functions and values

Function or valueDescription
calculateSegmentScoreBy pcv bioItems
Signature: pcv:ProbabilityCompositeVector -> bioItems:(type) -> float
Type parameters: '?7928

Calculate the score of the given sequence based on the probabilities of the ProbabilityCompositeVector.

createFCVOf resSources
Signature: resSources:(type) -> FrequencyCompositeVector
Type parameters: '?7909

Create a FrequencyCompositeVector based on BioArrays and exclude the specified segments.

createFCVWithout (...)
Signature: motiveLength:int -> position:int -> resSource:(type) -> FrequencyCompositeVector
Type parameters: '?7913

Create FrequencyCompositeVector based on BioArray and excludes the specified segment.

createNormalizedPCVOfFCV (...)
Signature: alphabet:'?7926 [] -> pseudoCount:float -> frequencyCompositeVector:FrequencyCompositeVector -> ProbabilityCompositeVector
Type parameters: '?7926

Create normalized ProbabilityCompositeVector based on FrequencyCompositeVector.

createPCVOf caArray
Signature: caArray:FrequencyCompositeVector -> ProbabilityCompositeVector

Create a ProbabilityCompositeVector based on a FrequencyCompositeVector by replacing the integers with floats.

fuseFrequencyVectors alphabet bfVectors
Signature: alphabet:'?7911 [] -> bfVectors:FrequencyCompositeVector [] -> FrequencyCompositeVector
Type parameters: '?7911

Create new FrequencyCompositeVector based on the sum of the positions of an array of FrequencyVectors.

increaseInPlaceFCV (...)
Signature: bioItem:'?7905 -> frequencyCompositeVector:FrequencyCompositeVector -> FrequencyCompositeVector
Type parameters: '?7905

Increase counter of position by 1.

increaseInPlaceFCVBy (...)
Signature: bioItem:'a -> frequencyCompositeVector:FrequencyCompositeVector -> n:int -> FrequencyCompositeVector
Type parameters: 'a

Increase counter of position by n.

increaseInPlaceFCVOf (...)
Signature: resSources:(type) -> backGroundCounts:FrequencyCompositeVector -> FrequencyCompositeVector
Type parameters: '?7915

Create FrequencyCompositeVector based on BioArray.

increaseInPlacePCV (...)
Signature: bioItem:'a -> backGroundProbabilityVector:ProbabilityCompositeVector -> ProbabilityCompositeVector
Type parameters: 'a

Increase counter of position by 1.

increaseInPlacePCVBy (...)
Signature: bioItem:'a -> n:float -> backGroundProbabilityVector:ProbabilityCompositeVector -> ProbabilityCompositeVector
Type parameters: 'a

Increase counter of position by n.

substractSegmentCountsFrom (...)
Signature: source:(type) -> fcVector:FrequencyCompositeVector -> FrequencyCompositeVector
Type parameters: '?7917

Subtracts the amount of elements in the given source from the FrequencyCompositeVector.

Fork me on GitHub