Extracting position-specific weight matrix from Bonito CRF model encoder #368
Unanswered
AnnabelLarge
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have Nanopore data that was collected with the older R10.3 pore. Thus, I have downloaded the Bonito weights corresponding with the Bonito CRF Model (the LSTM).
I want to extract something akin to a position-specific weight matrix, a (5xL) matrix that has the probabilities (or logits) over (A, T, G, C, [blank]) for each position in the output state path L. I believe this corresponds to the output of the encoder, before the beam decoding step.
What I've tried so far:
I suspect this is related to line 34 of bonito/crf/basecall.py i.e. in the compute_scores.py function. For default parameters,
scoresis a (64, 800, 4096) matrix. From what I can tell, the dimensions are-My specific questions:
scoresmatrix somehow later interpreted as a PSWM? or is that coming from another part of bonito?Beta Was this translation helpful? Give feedback.
All reactions