new_majiq.PsiCoverage.from_sj_lsvs
- classmethod PsiCoverage.from_sj_lsvs(sj, lsvs, minreads=10.0, minbins=3.0, num_bootstraps=30, pvalue_threshold=1e-07)
Create
PsiCoverage
fromSJExperiment
andEvents
.- Parameters:
sj (
SJExperiment
) – Intron and junction coverage from an experimentlsvs (
Events
) – Events over which PsiCoverage will be definedminreads, minbins (
float
) – Quantifiability thresholdsnum_bootstraps (
int
) – The number of bootstrap replicates for bootstrapped estimatespvalue_threshold (
float
) – P-value threshold for removing stacks under leave-one-out Poisson model of per-bin read coverage, for both raw and bootstrapped coverage (Set to nonpositive value to skip stack detection)
- Returns:
Notes
The pvalue_threshold for stack removal is applied to both raw and bootstrapped coverage. This differs from the behavior in MAJIQ v2, where stack removal was only applied to bootstrapped coverage. In this sense “raw” coverage is only after stack detection.