view x/static/js/7842.cbff451c.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
line wrap: on
line source

"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[7842],{57842:(e,t,s)=>{s.r(t),s.d(t,{default:()=>i});var r=s(46377),a=s(99834);class i extends r.BaseAdapter{async setupPre(){const e=this.pluginManager,t=(0,a.openLocation)(this.getConf("chromSizesLocation"),e),s=await t.readFile("utf8");return Object.fromEntries(s.split(/\n|\r\n|\r/).map((e=>e.trim())).filter((e=>!!e)).map((e=>{const[t,s]=e.split("\t");return[t,+s]})))}async setup(){return this.setupP||(this.setupP=this.setupPre().catch((e=>{throw this.setupP=void 0,e}))),this.setupP}async getRegions(){const e=await this.setup();return Object.keys(e).map((t=>({refName:t,start:0,end:e[t]})))}getHeader(){return{}}freeResources(){}}}}]);
//# sourceMappingURL=7842.cbff451c.chunk.js.map