Struct pattern_partition_prediction::PaPaPredIndel [−][src]
pub struct PaPaPredIndel { /* fields omitted */ }
Implementations
Create a PaPaPredIndel instance.
Note that this class treats insertions and deletions the same, hence “indel”. But it distinguishes between outframe (=frameshift) and inframe (non-frameshift) mutations.
The input file must consist of 3 space-separated columns:
- The pattern in UIPAC notation.
- The probability for a frameshift indel
- The probability for a non-frameshift indel
You provide the path
to the sequence-context point mutation probabilities file.
If you want to ensure that the patters have a minimum size, you can provide a value for
min_kmer_size
which will pad all patterns with Ns at the end. The minimum kmer size has
to be an even number because the insertion or deletion should happen right in the middle
of the sequence
Query the mutation rates for a sequence context
The indel is assumed to happen inbetween the two middle nuleotides