new_majiq.PsiControlsSummary
- class rna_majiq.PsiControlsSummary(df, events, hold_temporary=())
Summary of PSI posterior means over large group of controls
Summary of PSI posterior means over large group of controls noting the number of experiments which passed and quantiles over the experiments which passed
- Parameters:
df (
xarray.Dataset) – With coordinates/variables in cls.EXPECTED_VARIABLES and attribute prefixes: List[str]events (
xarray.Dataset) – dataset that can be loaded along with matching introns/junctions as Eventshold_temporary (
Sequence[TemporaryDirectory]) – Hold onto temporary directories, preventing their deletion (used byPsiControlsSummary.from_psi()for temporary store of rechunked parameters)
See also
PsiControlsSummary.from_psi,PsiControlsSummary.from_zarr- __init__(df, events, hold_temporary=())
Methods
__init__(df, events[, hold_temporary])events_to_zarr(path, mode[, consolidated])Save events information to specified path
from_zarr(path)get_events(introns, junctions)Construct
Eventsusing saved dataset and introns, junctionspassed_min_experiments([min_experiments_f])Get boolean mask of events that pass enough experiments
to_zarr(path[, consolidated, show_progress])Save PSI coverage dataset as zarr
Attributes
EXPECTED_VARIABLESalphaalias for controls_alpha
controls_alphacontrols_qis_lbnum_connectionsTotal number of connections over all events
num_eventsTotal number of events
num_prefixesFor each controls_alpha, range between lower/upper quantiles (scale)
alias for controls_q