Mercurial > repos > fubar > jbrowse2
comparison x/static/js/491.0011d1ad.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([[491,6833],{86833:(e,t,s)=>{s.r(t),s.d(t,{default:()=>f,makeFeatures:()=>u});var r=s(46377),a=s(6434),n=s(66885),o=s(68584);function u(e){const t=new Map;for(const s of e){const e=new a.A(s),r=e.get("refName");let n=t.get(r);n||(n=[],t.set(r,n)),n.push(e)}for(const e of t.values())e.sort(((e,t)=>e.get("start")-t.get("start")));return t}class f extends r.BaseFeatureDataAdapter{constructor(e,t,s){super(e,t,s);const r=(0,o.readConfObject)(e,"features");this.features=u(r)}async getRefNames(){return[...this.features.keys()]}async getRefNameAliases(){return[...this.features.values()].map((e=>({refName:e[0].get("refName"),aliases:e[0].get("aliases")})))}getFeatures(e){const{refName:t,start:s,end:r}=e;return(0,n.ObservableCreate)((async e=>{const a=this.features.get(t)||[];for(const t of a)t.get("end")>s&&t.get("start")<r&&e.next(t);e.complete()}))}freeResources(){}}},80491:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var r=s(46377),a=s(68584),n=s(86833);class o extends r.BaseAdapter{constructor(e,t,s){super(e,t,s);const r=(0,a.readConfObject)(e,"features");this.features=(0,n.makeFeatures)(r)}async getRegions(){const e=[];for(const[t,s]of this.features){let r;for(const a of s)r&&r.end>=a.get("start")&&r.start<=a.get("end")?r.end=a.get("end"):(r&&e.push(r),r={refName:t,start:a.get("start"),end:a.get("end")});r&&e.push(r)}return e.sort(((e,t)=>e.refName.localeCompare(t.refName))),e}freeResources(){}}}}]); | |
2 //# sourceMappingURL=491.0011d1ad.chunk.js.map |