get_trans_probs_s15 function

Helper function to calculate transition porbabilities for 15-state joint HMM cn/phase are sclars, only p_s is vectorized

Helper function to calculate transition porbabilities for 15-state joint HMM cn/phase are sclars, only p_s is vectorized

get_trans_probs_s15(t, p_s, w, cn_from, phase_from, cn_to, phase_to)

Arguments

  • t: numeric; CNV state transition probability
  • p_s: numeric; phase switch probability
  • w: numeric; relative abundance of states
  • cn_from: character; originating CNV state
  • phase_from: character; originating haplotype phase state
  • cn_to: character; destination CNV state
  • phase_to: character; destination haplotype phase state

Returns

numeric; transition probability

  • Maintainer: Teng Gao
  • License: MIT + file LICENSE
  • Last published: 2023-10-25

Useful links