UNPKG

hyphy-scope

Version:

Reusable Svelte components for HyPhy analysis visualization

53 lines (52 loc) 2.36 kB
/** * ABSREL plotting functions using Observable Plot */ import type { AbsrelBranchData, AbsrelSiteData, AbsrelResults } from './absrel-utils.js'; /** * Create a p-value significance plot */ export declare function createPValuePlot(branches: AbsrelBranchData[], threshold?: number): any; /** * Create a Bayes Factor plot */ export declare function createBayesFactorPlot(branches: AbsrelBranchData[]): any; /** * Create omega distribution plot for a specific branch */ export declare function createOmegaDistributionPlot(branch: AbsrelBranchData): any; /** * Create site-level log likelihood plot */ export declare function createSiteLogLikelihoodPlot(siteData: AbsrelSiteData[], selectedBranches?: string[]): any; /** * Create model comparison plot */ export declare function createModelComparisonPlot(results: AbsrelResults | any): any; /** * Create synonymous rates bead plot */ export declare function createSynonymousRatesPlot(siteData: any[], startSite?: number, sitesToShow?: number, dynamicRangeCap?: number): any; /** * Create support for positive selection heatmap */ export declare function createPositiveSelectionHeatmap(branchSiteData: any[], startSite: number | undefined, sitesToShow: number, branchOrder: string[], sizeField?: string, colorField?: string): any; /** * Create evidence ratio alignment profile heatmap */ export declare function createEvidenceRatioProfilePlot(profileBranchSites: any[], startSite: number | undefined, sitesToShow: number, branchOrder: string[], sizeField?: string): any; /** * Get plot description for a given plot type */ export declare function getAbsrelPlotDescription(plotType: string): string; /** * Get available plot options based on data availability */ export declare function getAbsrelPlotOptions(srvRateClasses: number, srvDistribution: any, bsPositiveSelection: any[], profileBranchSites: any[]): Array<[string, (data: any) => boolean]>; /** * Get plot specification based on plot type and data */ export declare function getAbsrelPlotSpec(plotType: string, resultsJson: any, fig1data: any[], bsPositiveSelection: any[], profileBranchSites: any[], branchOrder: string[], fig1Controls: string, startSite?: number, sitesToShow?: number): any; /** * Calculate appropriate step size for evidence ratio plots */ export declare function calculateERStepSize(resultsJson: any): number;