Skip to content

Equation used to compute relative affinity for new sequences using curated MotifCentral models #2

@vitkl

Description

@vitkl

Hi

Congratulations on impressive and hugely useful work - both the ProBound model and MotifCentral database!

I am trying to understand how exactly the relative affinities for new sequences are computed using curated MotifCentral models - e.i. what bindingModeScores computes in this line:

proBoundTools -c 'loadMotifCentralModel(15412).addNScoring().inputTXT(seq.txt).bindingModeScores(/dev/stdout)'

I struggle to understand which equation is used to compute relative affinity as a functions of A) PSAM (presumably stored in MotifCentral.v1.0.0.json) w_{motif length, 4 nucleotides}, and B) new one-hot encoded sequence s_{total length, 4 nucleotides}. Specifically, what is the function/equation that's used to compute one relative affinity for one offset?

affinity =  function(w_{motif length, 4 nucleotides}`, `s_{motif length, 4 nucleotides}`)

I see that this computation is done in
slidePN and that it is related to Eq 5 in the paper methods section:
Screenshot 2022-12-11 at 00 38 15

However, I don't understand these 2 terms below are related to PSAM and the new sequence - is beta_a = PSAM and X(S) = the new sequence?
Screenshot 2022-12-11 at 00 39 20

Could you please explain this in a bit more detail, ideally writing pseudocode for affinity = function(w_{motif length, 4 nucleotides}, s_{motif length, 4 nucleotides})`?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions