new_majiq.DeltaPsi
- class rna_majiq.DeltaPsi(psi1, psi2, prior, psibins=40, min_experiments_f=0.5, name1='psi1', name2='psi2')
Compute DeltaPsi between two groups of PsiCoverage (replicate assumption)
Compute DeltaPsi between two groups of PsiCoverage under assumption that the experiments in each group are replicates with the given DPsiPrior.
- Parameters:
psi1, psi2 (
rna_majiq.PsiCoverage) – PsiCoverage files to be treated as replicatesprior (
rna_majiq.DPsiPrior) – Prior on deltapsi for inferencemin_experiments_f (
float) – Only pass events that pass this many experiments in both groupsname1, name2 (
str) – Names to use for the aggregated groups coverage/PSI
- __init__(psi1, psi2, prior, psibins=40, min_experiments_f=0.5, name1='psi1', name2='psi2')
Methods
__init__(psi1, psi2, prior[, psibins, ...])bootstrap_logposterior([ec_idx, nchunks])Logposterior average of deltapsi inference over each bootstrap replicate
dataset([nchunks])Reduce to
DeltaPsiDatasetused for VOILA visualizationrebin(psibins)Get DeltaPsi with different bins
smooth_logposterior([ec_idx, nchunks])Infer deltapsi logposterior on approximation of psi bootstrapped mixture
Attributes
DeltaPsiPMFfor average bootstrapped dpsi posteriorsdiscrete_logpriordiscrete_priorDeltaPsiPMFfor discretized deltapsi priorname1name2num_connectionspassedsmooth_posteriorDeltaPsiPMFfor dpsi posterior from approximated PSI posteriors