"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3175],{43175:(e,s,n)=>{n.r(s),n.d(s,{default:()=>r});var a=n(46377),i=n(99834);class r extends a.BaseAdapter{async getRefNameAliases(){const e=this.getConf("location");if(""===e.uri||"/path/to/my/sequence_report.tsv"===e.uri)return[];const s=this.getConf("useUcscNameOverride"),n=(await(0,i.openLocation)(e,this.pluginManager).readFile("utf8")).split(/\n|\r\n|\r/).filter((e=>!!e.trim())).map((e=>e.split("\t"))),a=n[0]||[],r=a.indexOf("GenBank seq accession"),t=a.indexOf("RefSeq seq accession"),c=a.indexOf("UCSC style name"),o=a.indexOf("Sequence name");if(-1===r||-1===t||-1===c)throw new Error('Header line must include "GenBank seq accession", "RefSeq seq accession", "UCSC style name", and "Sequence name"');return n.slice(1).filter((e=>!!e[c]||!!e[o])).map((e=>({refName:e[c]||e[o],aliases:[e[r],e[t],e[c],e[o]].filter((e=>!!e)),override:s}))).filter((e=>!!e.refName))}async freeResources(){}}}}]);
//# sourceMappingURL=3175.544b57b8.chunk.js.map