|
pulsatrix 1.1.0
|
What an explanation explains. Residues are numbered from 0 here. More...
#include <protein_explanations.hpp>

Public Types | |
| enum class | Kind { MaskedToken , Mutation , ProteinHead , ResidueHead } |
Public Member Functions | |
| std::string | describe (std::string_view sequence) const |
For labels: "K11 masked: R", "K11R log-odds", "protein head", "head at K11". | |
Static Public Member Functions | |
| static EncoderTarget | MaskedToken (int64_t residue, char token) |
| static EncoderTarget | ForMutation (const Mutation &m, int64_t offset=1) |
The mutation m; its position is numbered from offset, as variant tables do. | |
| static EncoderTarget | ProteinHead (LinearHead head) |
| static EncoderTarget | ResidueHead (LinearHead head, int64_t residue) |
Public Attributes | |
| Kind | kind = Kind::MaskedToken |
| int64_t | residue = 0 |
| char | token = 0 |
| char | wild_type = 0 |
| LinearHead | head |
What an explanation explains. Residues are numbered from 0 here.
|
strong |
| Enumerator | |
|---|---|
| MaskedToken | The logit of |
| Mutation |
|
| ProteinHead | A per-protein head on the mean of the residues' representations ( |
| ResidueHead | A per-residue head on |
| std::string pulsatrix::EncoderTarget::describe | ( | std::string_view | sequence | ) | const |
For labels: "K11 masked: R", "K11R log-odds", "protein head", "head at K11".
|
static |
The mutation m; its position is numbered from offset, as variant tables do.
|
static |
|
static |
|
static |
| LinearHead pulsatrix::EncoderTarget::head |
| Kind pulsatrix::EncoderTarget::kind = Kind::MaskedToken |
| int64_t pulsatrix::EncoderTarget::residue = 0 |
| char pulsatrix::EncoderTarget::token = 0 |
| char pulsatrix::EncoderTarget::wild_type = 0 |