Mercurial > repos > fubar > jbrowse2
view x/static/js/1822.2cbe112a.chunk.js @ 133:cec274db51c0 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 7d28252954cae9f8db5f8a85d8f29cb2865b504b-dirty
author | fubar |
---|---|
date | Fri, 18 Oct 2024 11:57:55 +0000 |
parents | 49f3d3878413 |
children |
line wrap: on
line source
"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[1822],{31822:(e,a,t)=>{t.r(a),t.d(a,{default:()=>u});var s=t(46377),r=t(66885),i=t(99546),n=t(62718),o=t(34796);function c(e){const a=e.slice(e.lastIndexOf("/")+1);return a.slice(0,a.lastIndexOf("."))}class u extends s.BaseFeatureDataAdapter{static capabilities=["hasResolution","hasLocalStats","hasGlobalStats"];async getAdapters(){const e=this.getSubAdapter;if(!e)throw new Error("no getSubAdapter available");let a=this.getConf("subadapters");return a?.length||(a=this.getConf("bigWigs").map((e=>({type:"BigWigAdapter",source:c(e),bigWigLocation:{uri:e}})))),Promise.all(a.map((async a=>{const t=(await e(a)).dataAdapter;return{source:a.name||t.id,...a,dataAdapter:t}})))}async getRefNames(e){const a=await this.getAdapters(),t=await Promise.all(a.map((a=>a.dataAdapter.getRefNames(e))));return[...new Set(t.flat())]}async getGlobalStats(e){const a=await this.getAdapters(),t=(await Promise.all(a.map((a=>a.dataAdapter.getGlobalStats?.(e))))).filter((e=>!!e));return{scoreMin:(0,i.min)(t.map((e=>e.scoreMin))),scoreMax:(0,i.max)(t.map((e=>e.scoreMax)))}}getFeatures(e,a={}){return(0,r.ObservableCreate)((async t=>{const s=await this.getAdapters();(0,n.h)(...s.map((t=>t.dataAdapter.getFeatures(e,a).pipe((0,o.T)((e=>e.get("source")?e:new i.SimpleFeature({...e.toJSON(),uniqueId:`${t.source}-${e.id()}`,source:t.source}))))))).subscribe(t)}),a.signal)}async getMultiRegionFeatureDensityStats(e){return{featureDensity:0}}async getSources(){return(await this.getAdapters()).map((({dataAdapter:e,source:a,name:t,...s})=>({name:a,__name:t,...s})))}freeResources(){}}}}]); //# sourceMappingURL=1822.2cbe112a.chunk.js.map