comparison x/static/js/972.c0d17685.chunk.js @ 127:fbabf7498471 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 116b1a4bbd62251ad552306df2dc8aa8f46c6721
author fubar
date Mon, 07 Oct 2024 02:11:55 +0000
parents 49f3d3878413
children
comparison
equal deleted inserted replaced
126:fd0fc6fdc7c5 127:fbabf7498471
1 "use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[972],{4365:e=>{function t(e,n,r,o){this.message=e,this.expected=n,this.found=r,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(t,Error),t.buildMessage=function(e,t){var n={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,n="";for(t=0;t<e.parts.length;t++)n+=e.parts[t]instanceof Array?i(e.parts[t][0])+"-"+i(e.parts[t][1]):i(e.parts[t]);return"["+(e.inverted?"^":"")+n+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}return"Expected "+function(e){var t,r,o,i=new Array(e.length);for(t=0;t<e.length;t++)i[t]=(o=e[t],n[o.type](o));if(i.sort(),i.length>0){for(t=1,r=1;t<i.length;t++)i[t-1]!==i[t]&&(i[r]=i[t],r++);i.length=r}switch(i.length){case 1:return i[0];case 2:return i[0]+" or "+i[1];default:return i.slice(0,-1).join(", ")+", or "+i[i.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:t,parse:function(e,n){n=void 0!==n?n:{};var r,o,i,a,s={},c={declaration:$e},u=$e,h="(",m=Oe("(",!1),l=")",f=Oe(")",!1),d=function(e,t,n,r){return{type:e,name:t,comment:n,fields:r}},p="simple",g=Oe("simple",!1),b="object",S=Oe("object",!1),y="table",k=Oe("table",!1),E="auto",C=Oe("auto",!1),A="primary",w=Oe("primary",!1),v="index",q=Oe("index",!1),x="unique",N=Oe("unique",!1),F=function(e,t){return t},z=function(e,t){return e.name&&t.unshift(e),t},R="#",B=Oe("#",!1),D=";",T=Oe(";",!1),I=function(e,t,n){return{type:e,name:t,comment:n}},G="[",P=Oe("[",!1),M="]",_=Oe("]",!1),j=function(e,t,n,r){return{type:e,size:t,name:n,comment:r}},U=function(e,t,n,r){return{type:e,vals:t,name:n,comment:r}},O=",",L=Oe(",",!1),Z=function(e,t){return t.unshift(e),t},V="int",W=Oe("int",!1),Y="uint",$=Oe("uint",!1),H="short",J=Oe("short",!1),K="ushort",Q=Oe("ushort",!1),X="byte",ee=Oe("byte",!1),te="ubyte",ne=Oe("ubyte",!1),re="float",oe=Oe("float",!1),ie="char",ae=Oe("char",!1),se="string",ce=Oe("string",!1),ue="lstring",he=Oe("lstring",!1),me="enum",le=Oe("enum",!1),fe="double",de=Oe("double",!1),pe="bigint",ge=Oe("bigint",!1),be="set",Se=Oe("set",!1),ye=function(e,t){return e+" "+t},ke=/^[a-zA-Z_]/,Ee=Le([["a","z"],["A","Z"],"_"],!1,!1),Ce=/^[a-zA-Z0-9_]/,Ae=Le([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),we=function(e){return Ue()},ve=(Oe('"',!1),Le(['"'],!0,!1),/^[^\n\r]/),qe=Le(["\n","\r"],!0,!1),xe=function(e){return e.join("").replace(/^"/,"").replace(/"$/,"")},Ne=Ze("integer"),Fe=/^[0-9]/,ze=Le([["0","9"]],!1,!1),Re=function(){return parseInt(Ue(),10)},Be=Ze("whitespace"),De=/^[ \t\n\r]/,Te=Le([" ","\t","\n","\r"],!1,!1),Ie=0,Ge=0,Pe=[{line:1,column:1}],Me=0,_e=[],je=0;if("startRule"in n){if(!(n.startRule in c))throw new Error("Can't start parsing from rule \""+n.startRule+'".');u=c[n.startRule]}function Ue(){return e.substring(Ge,Ie)}function Oe(e,t){return{type:"literal",text:e,ignoreCase:t}}function Le(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Ze(e){return{type:"other",description:e}}function Ve(t){var n,r=Pe[t];if(r)return r;for(n=t-1;!Pe[n];)n--;for(r={line:(r=Pe[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Pe[t]=r,r}function We(e,t){var n=Ve(e),r=Ve(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Ye(e){Ie<Me||(Ie>Me&&(Me=Ie,_e=[]),_e.push(e))}function $e(){var t,n,r,o,i,a,c;return t=Ie,rt()!==s&&(n=He())!==s&&rt()!==s&&(r=Je())!==s&&rt()!==s&&(o=Qe())!==s&&rt()!==s?(40===e.charCodeAt(Ie)?(i=h,Ie++):(i=s,0===je&&Ye(m)),i!==s&&rt()!==s?(a=function(){var e,t,n,r,o;if(e=Ie,(t=Xe())!==s)if(rt()!==s){for(n=[],r=Ie,rt()!==s&&(o=Xe())!==s?(Ge=r,r=F(t,o)):(Ie=r,r=s);r!==s;)n.push(r),r=Ie,rt()!==s&&(o=Xe())!==s?(Ge=r,r=F(t,o)):(Ie=r,r=s);n!==s&&(r=rt())!==s?(Ge=e,e=t=z(t,n)):(Ie=e,e=s)}else Ie=e,e=s;else Ie=e,e=s;return e}(),a!==s&&rt()!==s?(41===e.charCodeAt(Ie)?(c=l,Ie++):(c=s,0===je&&Ye(f)),c!==s&&rt()!==s?(Ge=t,t=d(n,r,o,a)):(Ie=t,t=s)):(Ie=t,t=s)):(Ie=t,t=s)):(Ie=t,t=s),t}function He(){var t;return e.substr(Ie,6)===p?(t=p,Ie+=6):(t=s,0===je&&Ye(g)),t===s&&(e.substr(Ie,6)===b?(t=b,Ie+=6):(t=s,0===je&&Ye(S)),t===s&&(e.substr(Ie,5)===y?(t=y,Ie+=5):(t=s,0===je&&Ye(k)))),t}function Je(){var t,n,r,o;return(t=tt())===s&&(t=Ie,(n=tt())!==s&&(r=Ke())!==s?t=n=[n,r]:(Ie=t,t=s),t===s&&(t=Ie,(n=tt())!==s?(e.substr(Ie,4)===E?(r=E,Ie+=4):(r=s,0===je&&Ye(C)),r!==s?t=n=[n,r]:(Ie=t,t=s)):(Ie=t,t=s),t===s&&(t=Ie,(n=tt())!==s&&(r=Ke())!==s?(e.substr(Ie,4)===E?(o=E,Ie+=4):(o=s,0===je&&Ye(C)),o!==s?t=n=[n,r,o]:(Ie=t,t=s)):(Ie=t,t=s)))),t}function Ke(){var t;return e.substr(Ie,7)===A?(t=A,Ie+=7):(t=s,0===je&&Ye(w)),t===s&&(e.substr(Ie,5)===v?(t=v,Ie+=5):(t=s,0===je&&Ye(q)),t===s&&(e.substr(Ie,6)===x?(t=x,Ie+=6):(t=s,0===je&&Ye(N)))),t}function Qe(){var e;return(e=nt())===s&&(e=rt()),e}function Xe(){var t,n,r,o,i,a,c,u;return t=Ie,(n=et())!==s&&rt()!==s&&(r=tt())!==s&&rt()!==s?(59===e.charCodeAt(Ie)?(o=D,Ie++):(o=s,0===je&&Ye(T)),o!==s&&rt()!==s&&(i=Qe())!==s?(Ge=t,t=n=I(n,r,i)):(Ie=t,t=s)):(Ie=t,t=s),t===s&&(t=Ie,(n=et())!==s&&rt()!==s?(91===e.charCodeAt(Ie)?(r=G,Ie++):(r=s,0===je&&Ye(P)),r!==s&&rt()!==s?(o=function(){var t;return t=function(){var t,n,r;if(je++,t=Ie,rt()!==s){if(n=[],Fe.test(e.charAt(Ie))?(r=e.charAt(Ie),Ie++):(r=s,0===je&&Ye(ze)),r!==s)for(;r!==s;)n.push(r),Fe.test(e.charAt(Ie))?(r=e.charAt(Ie),Ie++):(r=s,0===je&&Ye(ze));else n=s;n!==s?(Ge=t,t=Re()):(Ie=t,t=s)}else Ie=t,t=s;return je--,t===s&&(0===je&&Ye(Ne)),t}(),t===s&&(t=tt()),t}(),o!==s&&rt()!==s?(93===e.charCodeAt(Ie)?(i=M,Ie++):(i=s,0===je&&Ye(_)),i!==s&&rt()!==s&&(a=tt())!==s&&rt()!==s?(59===e.charCodeAt(Ie)?(c=D,Ie++):(c=s,0===je&&Ye(T)),c!==s&&rt()!==s&&(u=Qe())!==s?(Ge=t,t=n=j(n,o,a,u)):(Ie=t,t=s)):(Ie=t,t=s)):(Ie=t,t=s)):(Ie=t,t=s)):(Ie=t,t=s),t===s&&(t=Ie,(n=et())!==s&&rt()!==s?(40===e.charCodeAt(Ie)?(r=h,Ie++):(r=s,0===je&&Ye(m)),r!==s&&rt()!==s?(o=function(){var t,n,r,o,i,a;if(t=Ie,(n=tt())!==s){for(r=[],o=Ie,44===e.charCodeAt(Ie)?(i=O,Ie++):(i=s,0===je&&Ye(L)),i!==s&&rt()!==s&&(a=tt())!==s?(Ge=o,o=i=F(n,a)):(Ie=o,o=s);o!==s;)r.push(o),o=Ie,44===e.charCodeAt(Ie)?(i=O,Ie++):(i=s,0===je&&Ye(L)),i!==s&&rt()!==s&&(a=tt())!==s?(Ge=o,o=i=F(n,a)):(Ie=o,o=s);r!==s?(Ge=t,t=n=Z(n,r)):(Ie=t,t=s)}else Ie=t,t=s;return t}(),o!==s&&rt()!==s?(41===e.charCodeAt(Ie)?(i=l,Ie++):(i=s,0===je&&Ye(f)),i!==s&&rt()!==s&&(a=tt())!==s&&rt()!==s?(59===e.charCodeAt(Ie)?(c=D,Ie++):(c=s,0===je&&Ye(T)),c!==s&&rt()!==s&&(u=Qe())!==s?(Ge=t,t=n=U(n,o,a,u)):(Ie=t,t=s)):(Ie=t,t=s)):(Ie=t,t=s)):(Ie=t,t=s)):(Ie=t,t=s),t===s&&(t=function(){var t,n,r,o,i;return t=Ie,(n=rt())!==s?(r=function(){var t;return 35===e.charCodeAt(Ie)?(t=R,Ie++):(t=s,0===je&&Ye(B)),t}(),r!==s&&(o=nt())!==s&&(i=rt())!==s?t=n=[n,r,o,i]:(Ie=t,t=s)):(Ie=t,t=s),t}()))),t}function et(){var t,n,r;return e.substr(Ie,3)===V?(t=V,Ie+=3):(t=s,0===je&&Ye(W)),t===s&&(e.substr(Ie,4)===Y?(t=Y,Ie+=4):(t=s,0===je&&Ye($)),t===s&&(e.substr(Ie,5)===H?(t=H,Ie+=5):(t=s,0===je&&Ye(J)),t===s&&(e.substr(Ie,6)===K?(t=K,Ie+=6):(t=s,0===je&&Ye(Q)),t===s&&(e.substr(Ie,4)===X?(t=X,Ie+=4):(t=s,0===je&&Ye(ee)),t===s&&(e.substr(Ie,5)===te?(t=te,Ie+=5):(t=s,0===je&&Ye(ne)),t===s&&(e.substr(Ie,5)===re?(t=re,Ie+=5):(t=s,0===je&&Ye(oe)),t===s&&(e.substr(Ie,4)===ie?(t=ie,Ie+=4):(t=s,0===je&&Ye(ae)),t===s&&(e.substr(Ie,6)===se?(t=se,Ie+=6):(t=s,0===je&&Ye(ce)),t===s&&(e.substr(Ie,7)===ue?(t=ue,Ie+=7):(t=s,0===je&&Ye(he)),t===s&&(e.substr(Ie,4)===me?(t=me,Ie+=4):(t=s,0===je&&Ye(le)),t===s&&(e.substr(Ie,6)===fe?(t=fe,Ie+=6):(t=s,0===je&&Ye(de)),t===s&&(e.substr(Ie,6)===pe?(t=pe,Ie+=6):(t=s,0===je&&Ye(ge)),t===s&&(e.substr(Ie,3)===be?(t=be,Ie+=3):(t=s,0===je&&Ye(Se)),t===s&&(t=Ie,(n=He())!==s&&rt()!==s&&(r=Je())!==s?(Ge=t,t=n=ye(n,r)):(Ie=t,t=s))))))))))))))),t}function tt(){var t,n,r,o,i;if(t=Ie,n=Ie,ke.test(e.charAt(Ie))?(r=e.charAt(Ie),Ie++):(r=s,0===je&&Ye(Ee)),r!==s){for(o=[],Ce.test(e.charAt(Ie))?(i=e.charAt(Ie),Ie++):(i=s,0===je&&Ye(Ae));i!==s;)o.push(i),Ce.test(e.charAt(Ie))?(i=e.charAt(Ie),Ie++):(i=s,0===je&&Ye(Ae));o!==s?n=r=[r,o]:(Ie=n,n=s)}else Ie=n,n=s;return n!==s&&(Ge=t,n=we(n)),n}function nt(){var t,n,r;for(t=Ie,n=[],ve.test(e.charAt(Ie))?(r=e.charAt(Ie),Ie++):(r=s,0===je&&Ye(qe));r!==s;)n.push(r),ve.test(e.charAt(Ie))?(r=e.charAt(Ie),Ie++):(r=s,0===je&&Ye(qe));return n!==s&&(Ge=t,n=xe(n)),n}function rt(){var t,n;for(je++,t=[],De.test(e.charAt(Ie))?(n=e.charAt(Ie),Ie++):(n=s,0===je&&Ye(Te));n!==s;)t.push(n),De.test(e.charAt(Ie))?(n=e.charAt(Ie),Ie++):(n=s,0===je&&Ye(Te));return je--,t===s&&(n=s,0===je&&Ye(Be)),t}if((r=u())!==s&&Ie===e.length)return r;throw r!==s&&Ie<e.length&&Ye({type:"end"}),o=_e,i=Me<e.length?e.charAt(Me):null,a=Me<e.length?We(Me,Me+1):We(Me,Me),new t(t.buildMessage(o,i),o,i,a)}}},60972:(e,t,n)=>{n.d(t,{A:()=>y});var r={};n.r(r),n.d(r,{bigChain:()=>a,bigGenePred:()=>s,bigInteract:()=>c,bigLink:()=>u,bigMaf:()=>h,bigNarrowPeak:()=>m,bigPsl:()=>l,defaultBedSchema:()=>f,mafFrames:()=>d,mafSummary:()=>p});var o=n(4365),i=n.n(o);const a='table bigChain\n"bigChain pairwise alignment"\n (\n string chrom; "Reference sequence chromosome or scaffold"\n uint chromStart; "Start position in chromosome"\n uint chromEnd; "End position in chromosome"\n string name; "Name or ID of item, ideally both human readable and unique"\n uint score; "Score (0-1000)"\n char[1] strand; "+ or - for strand"\n uint tSize; "size of target sequence"\n string qName; "name of query sequence"\n uint qSize; "size of query sequence"\n uint qStart; "start of alignment on query sequence"\n uint qEnd; "end of alignment on query sequence"\n uint chainScore; "score from chain"\n )',s='table bigGenePred\n"bigGenePred gene models"\n (\n string chrom; "Reference sequence chromosome or scaffold"\n uint chromStart; "Start position in chromosome"\n uint chromEnd; "End position in chromosome"\n string name; "Name or ID of item, ideally both human readable and unique"\n uint score; "Score (0-1000)"\n char[1] strand; "+ or - for strand"\n uint thickStart; "Start of where display should be thick (start codon)"\n uint thickEnd; "End of where display should be thick (stop codon)"\n uint reserved; "RGB value (use R,G,B string in input file)"\n int blockCount; "Number of blocks"\n int[blockCount] blockSizes; "Comma separated list of block sizes"\n int[blockCount] chromStarts; "Start positions relative to chromStart"\n string name2; "Alternative/human readable name"\n string cdsStartStat; "Status of CDS start annotation (none, unknown, incomplete, or complete)"\n string cdsEndStat; "Status of CDS end annotation (none, unknown, incomplete, or complete)"\n int[blockCount] exonFrames; "Exon frame {0,1,2}, or -1 if no frame for exon"\n string type; "Transcript type"\n string geneName; "Primary identifier for gene"\n string geneName2; "Alternative/human readable gene name"\n string geneType; "Gene type"\n )',c='table interact\n"interaction between two regions"\n (\n string chrom; "Chromosome (or contig, scaffold, etc.). For interchromosomal, use 2 records"\n uint chromStart; "Start position of lower region. For interchromosomal, set to chromStart of this region"\n uint chromEnd; "End position of upper region. For interchromosomal, set to chromEnd of this region"\n string name; "Name of item, for display. Usually \'sourceName/targetName/exp\' or empty"\n uint score; "Score (0-1000)"\n double value; "Strength of interaction or other data value. Typically basis for score"\n string exp; "Experiment name (metadata for filtering). Use . if not applicable"\n string color; "Item color. Specified as r,g,b or hexadecimal #RRGGBB or html color name, as in //www.w3.org/TR/css3-color/#html4. Use 0 and spectrum setting to shade by score"\n string sourceChrom; "Chromosome of source region (directional) or lower region. For non-directional interchromosomal, chrom of this region."\n uint sourceStart; "Start position in chromosome of source/lower/this region"\n uint sourceEnd; "End position in chromosome of source/lower/this region"\n string sourceName; "Identifier of source/lower/this region"\n string sourceStrand; "Orientation of source/lower/this region: + or -. Use . if not applicable"\n string targetChrom; "Chromosome of target region (directional) or upper region. For non-directional interchromosomal, chrom of other region"\n uint targetStart; "Start position in chromosome of target/upper/this region"\n uint targetEnd; "End position in chromosome of target/upper/this region"\n string targetName; "Identifier of target/upper/this region"\n string targetStrand; "Orientation of target/upper/this region: + or -. Use . if not applicable"\n\n )',u='table bigLink\n"bigLink pairwise alignment"\n (\n string chrom; "Reference sequence chromosome or scaffold"\n uint chromStart; "Start position in chromosome"\n uint chromEnd; "End position in chromosome"\n string name; "Name or ID of item, ideally both human readable and unique"\n uint qStart; "start of alignment on query sequence"\n )',h='table bedMaf\n"Bed3 with MAF block"\n (\n string chrom; "Reference sequence chromosome or scaffold"\n uint chromStart; "Start position in chromosome"\n uint chromEnd; "End position in chromosome"\n lstring mafBlock; "MAF block"\n )',m='table bigNarrowPeak\n"BED6+4 Peaks of signal enrichment based on pooled, normalized (interpreted) data."\n(\n string chrom; "Reference sequence chromosome or scaffold"\n uint chromStart; "Start position in chromosome"\n uint chromEnd; "End position in chromosome"\n string name;\t "Name given to a region (preferably unique). Use . if no name is assigned"\n uint score; "Indicates how dark the peak will be displayed in the browser (0-1000) "\n char[1] strand; "+ or - or . for unknown"\n float signalValue; "Measurement of average enrichment for the region"\n float pValue; "Statistical significance of signal value (-log10). Set to -1 if not used."\n float qValue; "Statistical significance with multiple-test correction applied (FDR -log10). Set to -1 if not used."\n int peak; "Point-source called for this peak; 0-based offset from chromStart. Set to -1 if no point-source called."\n)',l='table bigPsl\n"bigPsl pairwise alignment"\n (\n string chrom; "Reference sequence chromosome or scaffold"\n uint chromStart; "Start position in chromosome"\n uint chromEnd; "End position in chromosome"\n string name; "Name or ID of item, ideally both human readable and unique"\n uint score; "Score (0-1000)"\n char[1] strand; "+ or - indicates whether the query aligns to the + or - strand on the reference"\n uint thickStart; "Start of where display should be thick (start codon)"\n uint thickEnd; "End of where display should be thick (stop codon)"\n uint reserved; "RGB value (use R,G,B string in input file)"\n int blockCount; "Number of blocks"\n int[blockCount] blockSizes; "Comma separated list of block sizes"\n int[blockCount] chromStarts; "Start positions relative to chromStart"\n\n uint oChromStart;"Start position in other chromosome"\n uint oChromEnd; "End position in other chromosome"\n char[1] oStrand; "+ or -, - means that psl was reversed into BED-compatible coordinates"\n uint oChromSize; "Size of other chromosome."\n int[blockCount] oChromStarts; "Start positions relative to oChromStart or from oChromStart+oChromSize depending on strand"\n\n lstring oSequence; "Sequence on other chrom (or empty)"\n string oCDS; "CDS in NCBI format"\n\n uint chromSize;"Size of target chromosome"\n\n uint match; "Number of bases matched."\n uint misMatch; " Number of bases that don\'t match "\n uint repMatch; " Number of bases that match but are part of repeats "\n uint nCount; " Number of \'N\' bases "\n uint seqType; "0=empty, 1=nucleotide, 2=amino_acid"\n )',f='table defaultBedSchema\n"BED12"\n (\n string chrom; "The name of the chromosome (e.g. chr3, chrY, chr2_random) or scaffold (e.g. scaffold10671)."\n uint chromStart; "The starting position of the feature in the chromosome or scaffold. The first base in a chromosome is numbered 0."\n uint chromEnd; "The ending position of the feature in the chromosome or scaffold. The chromEnd base is not included in the display of the feature. For example, the first 100 bases of a chromosome are defined as chromStart=0, chromEnd=100, and span the bases numbered 0-99."\n string name; "Defines the name of the BED line."\n float score; "Feature score, doesn\'t care about the 0-1000 limit as in bed"\n char strand; "Defines the strand. Either \'.\' (=no strand) or \'+\' or \'-\'"\n uint thickStart; "The starting position at which the feature is drawn thickly (for example, the start codon in gene displays). When there is no thick part, thickStart and thickEnd are usually set to the chromStart position."\n uint thickEnd; "The ending position at which the feature is drawn thickly (for example the stop codon in gene displays)."\n string itemRgb; "An RGB value of the form R,G,B (e.g. 255,0,0). "\n uint blockCount; " The number of blocks (exons) in the BED line."\n uint[blockCount] blockSizes; " A comma-separated list of the block sizes. The number of items in this list should correspond to blockCount."\n uint[blockCount] blockStarts; "A comma-separated list of block starts. All of the blockStart positions should be calculated relative to chromStart. The number of items in this list should correspond to blockCount."\n )',d='table mafFrames\n"codon frame assignment for MAF components"\n (\n string chrom; "Reference sequence chromosome or scaffold"\n uint chromStart; "Start range in chromosome"\n uint chromEnd; "End range in chromosome"\n string src; "Name of sequence source in MAF"\n ubyte frame; "frame (0,1,2) for first base(+) or last bast(-)"\n char[1] strand; "+ or -"\n string name; "Name of gene used to define frame"\n int prevFramePos; "target position of the previous base (in transcription direction) that continues this frame, or -1 if none, or frame not contiguous"\n int nextFramePos; "target position of the next base (in transcription direction) that continues this frame, or -1 if none, or frame not contiguous"\n ubyte isExonStart; "does this start the CDS portion of an exon?"\n ubyte isExonEnd; "does this end the CDS portion of an exon?"\n )',p='table mafSummary\n"Positions and scores for alignment blocks"\n (\n string chrom; "Reference sequence chromosome or scaffold"\n uint chromStart; "Start position in chromosome"\n uint chromEnd; "End position in chromosome"\n string src; "Sequence name or database of alignment"\n float score; "Floating point score."\n char[1] leftStatus; "Gap/break annotation for preceding block"\n char[1] rightStatus; "Gap/break annotation for following block"\n )',g=Object.fromEntries(Object.entries(r).map((([e,t])=>[e,(0,o.parse)(t.trim())])));function b(e){const t=new Set(["uint","int","float","long"]);return{...e,fields:e.fields.map((e=>({...e,isArray:e.size&&"char"!==e.type,arrayIsNumeric:e.size&&t.has(e.type),isNumeric:!e.size&&t.has(e.type)}))).filter((e=>!!e.name))}}const S={".":0,"-":-1,"+":1};class y{constructor(e={}){if(e.autoSql)this.autoSql=b(i().parse(e.autoSql));else if(e.type){if(!g[e.type])throw new Error("Type not found");this.autoSql=b(g[e.type])}else this.autoSql=b(g.defaultBedSchema),this.attemptDefaultBed=!0}parseLine(e,t={}){const{autoSql:n}=this,{uniqueId:r}=t,o=Array.isArray(e)?e:e.split("\t");let i={};if(!this.attemptDefaultBed||this.attemptDefaultBed&&function(e){var t;return e.length>=12&&!Number.isNaN(parseInt(e[9],10))&&(null===(t=e[10])||void 0===t?void 0:t.split(",").filter((e=>!!e)).length)===parseInt(e[9],10)}(o))for(let e=0;e<n.fields.length;e++){const t=n.fields[e];let r=o[e];const{isNumeric:a,isArray:s,arrayIsNumeric:c,name:u}=t;if(null==r)break;if("."!==r){if(a){const e=Number(r);r=Number.isNaN(e)?r:e}else s&&(r=r.split(","),""===r[r.length-1]&&r.pop(),c&&(r=r.map(Number)));i[u]=r}}else{const e=["chrom","chromStart","chromEnd","name"];i=Object.fromEntries(o.map(((t,n)=>[e[n]||"field"+n,t]))),i.chromStart=+i.chromStart,i.chromEnd=+i.chromEnd,Number.isNaN(Number.parseFloat(i.field4))||(i.score=+i.field4,delete i.field4),"+"!==i.field5&&"-"!==i.field5||(i.strand=i.field5,delete i.field5)}return r&&(i.uniqueId=r),i.strand=S[i.strand]||0,i.chrom=decodeURIComponent(i.chrom),i}}}}]);
2 //# sourceMappingURL=972.c0d17685.chunk.js.map