new_majiq.Heterogen
- class rna_majiq.Heterogen(psi1, psi2, min_experiments_f=0.5, name1='grp1', name2='grp2', show_progress=False)
Compare Psi between two groups of PsiCoverage (independence assumption)
Compare Psi between two groups of PsiCoverage under the assumption that each experiment is independent. Perform null-hypothesis testing on posterior means and/or samples under assumption that underlying values of PSI per experiment are independent and identically distributed (i.i.d.).
- Parameters:
psi1, psi2 (
Union[PsiCoverage
,PsiGroup]
) –PsiCoverage
orPsiGroup
for the two groups to comparemin_experiments_f (
float
) – Number or proportion of experiments required to pass in each group for quantificationname1, name2 (
str
) – Names to indicate group identityshow_progress (
bool
) – Show progress of intermediate computations required for setting up this object.
- __init__(psi1, psi2, min_experiments_f=0.5, name1='grp1', name2='grp2', show_progress=False)
Methods
__init__
(psi1, psi2[, min_experiments_f, ...])approximate_stats
([ec_idx, quantiles, ...])Statistics on means, samples from approximate posteriors
dataset
([pvalue_quantiles, use_stats, ...])events_to_zarr
(path, mode[, consolidated])Save events information to specified path
get_events
(introns, junctions)Construct
Events
using saved dataset and introns, junctionsraw_stats
([ec_idx, use_stats])Statistics on means, samples from raw posteriors
Attributes
num_connections
Total number of connections over all events
num_events
Total number of events