comparison x/static/js/4234.63e1ba57.chunk.js @ 125:49f3d3878413 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author fubar
date Sat, 05 Oct 2024 23:58:05 +0000
parents
children
comparison
equal deleted inserted replaced
124:137e08517410 125:49f3d3878413
1 "use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[4234],{14234:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var s=a(93902),r=a(46377),i=a(99834),n=a(99546),u=a(66885),o=a(37957);class c extends r.BaseFeatureDataAdapter{static capabilities=["hasResolution","hasLocalStats","hasGlobalStats"];async setupPre(e){const{statusCallback:t=()=>{}}=e||{},a=this.pluginManager,r=new s.j({filehandle:(0,i.openLocation)(this.getConf("bigWigLocation"),a)}),u=await(0,n.updateStatus)("Downloading bigwig header",t,(()=>r.getHeader(e)));return{bigwig:r,header:u}}async setup(e){return this.setupP||(this.setupP=this.setupPre(e).catch((e=>{throw this.setupP=void 0,e}))),this.setupP}async getRefNames(e){const{header:t}=await this.setup(e);return Object.keys(t.refsByName)}async refIdToName(e){const{header:t}=await this.setup();return t.refsByNumber[e]?.name}async getGlobalStats(e){const{header:t}=await this.setup(e);return(0,o.WD)(t.totalSummary)}getFeatures(e,t={}){const{refName:a,start:s,end:r}=e,{bpPerPx:i=0,signal:n,resolution:o=1,statusCallback:c=()=>{}}=t;return(0,u.ObservableCreate)((async n=>{c("Downloading bigwig data");const u=this.getConf("source"),{bigwig:h}=await this.setup(t),l=await h.getFeatures(a,s,r,{...t,basesPerSpan:i/o});for(const t of l){u&&(t.source=u);const s=`${u}:${e.refName}:${t.start}-${t.end}`;t.refName=a,t.uniqueId=s,n.next({get:e=>t[e],id:()=>s,toJSON:()=>t})}n.complete()}),n)}async getMultiRegionFeatureDensityStats(e){return{featureDensity:0}}freeResources(){}}}}]);
2 //# sourceMappingURL=4234.63e1ba57.chunk.js.map