
License: SpliceTransformer is open source and free for academic and commercial use under an Apache-2.0 license. Please refer to the license for full terms.
This constraint is open source. Any third-party models, product names, or trademarks referenced are the property of their respective owners, and Proto is not affiliated with them.

@articleyou2024splicetransformer
API Reference
Configuration for SpliceTransformer intron boundary constraint.This class defines configuration parameters for evaluating splice site quality
using SpliceTransformer, a deep learning model trained to predict splice sites
in pre-mRNA sequences. The constraint assesses whether specified positions
in a sequence are likely to function as authentic splice sites, which is critical
for proper intron removal and mRNA processing.
SpliceTransformer requires sequences of specific lengths:
- Concatenated target (left_flank + intron_core + right_flank): scored over a 1000 bp window. If the concatenation is longer, it is windowed to 1000 bp centred on the donor/acceptor positions and the positions are remapped into that window.
- Left context: Must be exactly 4000 bp
- Right context: Must be exactly 4000 bp
- Total sequence analyzed: 9000 bp (4000 + 1000 + 4000)
string
required
Sequence of the left context for SpliceTransformer
string
required
Sequence of the right context for SpliceTransformer
List[integer]
required
0-indexed position(s) into the concatenated target sequence of expected donor
List[integer]
required
0-indexed position(s) into the concatenated target sequence of expected acceptor
enum
default:"mean"
Combine donor/acceptor probs: ‘mean’ (average) or ‘min’ (weaker site must be strong).Options:
mean, mininteger
default:"0"
Max donor/acceptor probability within +/- this many positions of the index; 0 = exact index.
SpliceTransformerConfig
Advanced parameter configuration for SpliceTransformer.
ReturnsConstraintOutput
One result per input. score is the combined
boundary penalty in [0.0, 1.0]. metadata carries donor_pos,
acceptor_pos, donor_score, acceptor_score, and
total_splice_score.Usage
python