Mercurial > repos > fubar > jbrowse2
comparison x/static/js/9449.2e1d2652.chunk.js.map @ 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 {"version":3,"file":"static/js/9449.2e1d2652.chunk.js","mappings":"iNASe,MAAMA,UAAuBC,EAAAA,QAC1C,cAAMC,CAASC,GACb,MAAMC,GAASC,EAAAA,EAAAA,cAAaC,KAAKC,QAAQ,eAAgBD,KAAKE,eACxDC,QAAgBL,EAAOM,SAASP,GAChCQ,GAAMC,EAAAA,EAAAA,QAAOH,SAAgBI,EAAAA,EAAAA,OAAMJ,GAAUA,EACnD,OAAOK,EAAAA,EAAAA,IAAgBH,EAAKI,EAC9B,EAGF,SAASA,EAAiBC,GACxB,MAAMC,EAASD,EAAKE,MAAM,KAC1B,GAAID,EAAOE,OAAS,EAElB,MAAM,IAAIC,MAAM,8BAA8BJ,KAEhD,MAAOK,EAAM,CAAGC,EAAQC,EAAMC,EAAQC,EAAM,CAAGC,EAAQC,EAAMC,GAAMX,EAEnE,MAAO,CACLQ,MAAOA,EACPC,QAASA,EACTC,MAAOA,EACPN,MAAOA,EACPC,QAASA,EACTC,MAAOA,EACPC,OAAmB,MAAXA,GAAkB,EAAI,EAC9BK,MAAO,CACLC,aAAcF,GAGpB,C","sources":["../../../plugins/comparative-adapters/src/MashMapAdapter/MashMapAdapter.ts"],"sourcesContent":["import { BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter'\nimport { openLocation } from '@jbrowse/core/util/io'\nimport { unzip } from '@gmod/bgzf-filehandle'\nimport { isGzip } from '@jbrowse/core/util'\nimport type { Buffer } from 'buffer'\n\nimport PAFAdapter from '../PAFAdapter/PAFAdapter'\nimport { parseLineByLine } from '../util'\n\nexport default class MashMapAdapter extends PAFAdapter {\n async setupPre(opts?: BaseOptions) {\n const outLoc = openLocation(this.getConf('outLocation'), this.pluginManager)\n const buffer = (await outLoc.readFile(opts)) as Buffer\n const buf = isGzip(buffer) ? await unzip(buffer) : buffer\n return parseLineByLine(buf, parseMashMapLine)\n }\n}\n\nfunction parseMashMapLine(line: string) {\n const fields = line.split(' ')\n if (fields.length < 9) {\n // xref https://github.com/marbl/MashMap/issues/38\n throw new Error(`improperly formatted line: ${line}`)\n }\n const [qname, , qstart, qend, strand, tname, , tstart, tend, mq] = fields\n\n return {\n tname: tname!,\n tstart: +tstart!,\n tend: +tend!,\n qname: qname!,\n qstart: +qstart!,\n qend: +qend!,\n strand: strand === '-' ? -1 : 1,\n extra: {\n mappingQual: +mq!,\n },\n }\n}\n"],"names":["MashMapAdapter","PAFAdapter","setupPre","opts","outLoc","openLocation","this","getConf","pluginManager","buffer","readFile","buf","isGzip","unzip","parseLineByLine","parseMashMapLine","line","fields","split","length","Error","qname","qstart","qend","strand","tname","tstart","tend","mq","extra","mappingQual"],"sourceRoot":""} |