diff --git a/docs/404.html b/docs/404.html index ac0aeb3..81ea269 100644 --- a/docs/404.html +++ b/docs/404.html @@ -12,7 +12,7 @@ - + @@ -20,7 +20,7 @@ - + @@ -1601,7 +1601,7 @@
=p?A=!0:(D=f.charCodeAt(m++))===va?S=!0:D===fd&&(S=!0,f.charCodeAt(m)===va&&++m),f.slice(I+1,B-1).replace(/""/g,'"')}for(;m
9999?"+"+Lt(e,6):Lt(e,4)}function qC(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":jC(e.getUTCFullYear())+"-"+Lt(e.getUTCMonth()+1,2)+"-"+Lt(e.getUTCDate(),2)+(i?"T"+Lt(t,2)+":"+Lt(n,2)+":"+Lt(r,2)+"."+Lt(i,3)+"Z":r?"T"+Lt(t,2)+":"+Lt(n,2)+":"+Lt(r,2)+"Z":n||t?"T"+Lt(t,2)+":"+Lt(n,2)+"Z":"")}function N1(e){var t=new RegExp('["'+e+` +\r]`),n=e.charCodeAt(0);function r(f,h){var d,p,m=i(f,function(y,w){if(d)return d(y,w-1);p=y,d=h?$C(y,h):L1(y)});return m.columns=p||[],m}function i(f,h){var d=[],p=f.length,m=0,y=0,w,A=p<=0,S=!1;f.charCodeAt(p-1)===Aa&&--p,f.charCodeAt(p-1)===dd&&--p;function _(){if(A)return fd;if(S)return S=!1,P1;var B,I=m,D;if(f.charCodeAt(I)===hd){for(;m++
=p?A=!0:(D=f.charCodeAt(m++))===Aa?S=!0:D===dd&&(S=!0,f.charCodeAt(m)===Aa&&++m),f.slice(I+1,B-1).replace(/""/g,'"')}for(;m
1)r=o8(e,t,n);else for(i=0,r=new Array(o=e.arcs.length);i ${i.summary} Source: NCBI RefSeq Gene0))return u;let l;do u.push(l=new Date(+o)),t(o,a),e(o);while(l(e[t]=1+n,e),{});const L8={[Ta]:Ln,[Ia]:Ca.every(3),[Ba]:Ca,[Da]:_a,[Fa]:zr,[_c]:zr,[xd]:zr,[Ra]:xc,[Ma]:yc,[Pa]:cr,[Sc]:Ho},O8={[Ta]:On,[Ia]:ka.every(3),[Ba]:ka,[Da]:Sa,[Fa]:Oi,[_c]:Oi,[xd]:Oi,[Ra]:vc,[Ma]:wc,[Pa]:cr,[Sc]:Ho};function N8(e){return L8[e]}function z8(e){return O8[e]}function vd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ad(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function La(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function eb(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,u=e.shortMonths,l=Oa(i),c=Na(i),f=Oa(o),h=Na(o),d=Oa(s),p=Na(s),m=Oa(a),y=Na(a),w=Oa(u),A=Na(u),S={a:ve,A:Le,b:Ne,B:et,c:null,d:sb,e:sb,f:l4,g:y4,G:x4,H:o4,I:s4,j:a4,L:ab,m:u4,M:c4,p:Ce,q:ke,Q:db,s:pb,S:f4,u:h4,U:d4,V:p4,w:g4,W:m4,x:null,X:null,y:b4,Y:w4,Z:v4,"%":hb},_={a:gt,A:jt,b:He,B:L,c:null,d:ub,e:ub,f:S4,g:P4,G:O4,H:A4,I:E4,j:_4,L:cb,m:C4,M:k4,p:P,q,Q:db,s:pb,S:T4,u:I4,U:B4,V:D4,w:F4,W:R4,x:null,X:null,y:M4,Y:L4,Z:N4,"%":hb},k={a:G,A:O,b:ne,B:ie,c:he,d:ib,e:ib,f:t4,g:rb,G:nb,H:ob,I:ob,j:X8,L:e4,m:Q8,M:K8,p:M,q:Y8,Q:r4,s:i4,S:J8,u:$8,U:j8,V:q8,w:V8,W:W8,x:ge,X:Re,y:rb,Y:nb,Z:Z8,"%":n4};S.x=B(n,S),S.X=B(r,S),S.c=B(t,S),_.x=B(n,_),_.X=B(r,_),_.c=B(t,_);function B($,Y){return function(C){var v=[],V=-1,W=0,ue=$.length,te,ce,qt;for(C instanceof Date||(C=new Date(+C));++V0))return u;let l;do u.push(l=new Date(+o)),t(o,a),e(o);while(l(e[t]=1+n,e),{});const L8={[Ia]:On,[Ba]:ka.every(3),[Da]:ka,[Fa]:Sa,[Ra]:Or,[Sc]:Or,[xd]:Or,[Ma]:xc,[Pa]:wc,[La]:cr,[Cc]:Vo},O8={[Ia]:Nn,[Ba]:Ta.every(3),[Da]:Ta,[Fa]:Ca,[Ra]:Mi,[Sc]:Mi,[xd]:Mi,[Ma]:Ac,[Pa]:vc,[La]:cr,[Cc]:Vo};function N8(e){return L8[e]}function z8(e){return O8[e]}function Ad(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ed(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Oa(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function nb(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,u=e.shortMonths,l=Na(i),c=za(i),f=Na(o),h=za(o),d=Na(s),p=za(s),m=Na(a),y=za(a),w=Na(u),A=za(u),S={a:xe,A:Le,b:Ne,B:et,c:null,d:lb,e:lb,f:l4,g:y4,G:v4,H:o4,I:s4,j:a4,L:ub,m:u4,M:c4,p:Ce,q:ke,Q:gb,s:mb,S:f4,u:h4,U:d4,V:p4,w:g4,W:m4,x:null,X:null,y:b4,Y:w4,Z:x4,"%":pb},_={a:gt,A:jt,b:Ve,B:L,c:null,d:fb,e:fb,f:S4,g:P4,G:O4,H:A4,I:E4,j:_4,L:hb,m:C4,M:k4,p:P,q,Q:gb,s:mb,S:T4,u:I4,U:B4,V:D4,w:F4,W:R4,x:null,X:null,y:M4,Y:L4,Z:N4,"%":pb},k={a:G,A:O,b:ne,B:ie,c:he,d:sb,e:sb,f:t4,g:ob,G:ib,H:ab,I:ab,j:X8,L:e4,m:Q8,M:K8,p:M,q:Y8,Q:r4,s:i4,S:J8,u:$8,U:j8,V:q8,w:V8,W:W8,x:ge,X:Re,y:ob,Y:ib,Z:Z8,"%":n4};S.x=B(n,S),S.X=B(r,S),S.c=B(t,S),_.x=B(n,_),_.X=B(r,_),_.c=B(t,_);function B($,Y){return function(C){var x=[],V=-1,W=0,ue=$.length,te,ce,qt;for(C instanceof Date||(C=new Date(+C));++V((e+(t-1))/t|0)*t;function EI(e,t,n,r){if(t||n){r=r||1;const o=e.length/4;return function(s){let a=0,u=0;for(let l=0;l((e+(t-1))/t|0)*t;function vI(e,t,n,r){if(t||n){r=r||1;const o=e.length/4;return function(s){let a=0,u=0;for(let l=0;l0;){if(l=dd(s,a,n),l===u)return r[i]=s,r[o]=a,t(r);if(l>0)s=Math.floor(s/l)*l,a=Math.ceil(a/l)*l;else if(l<0)s=Math.ceil(s*l)/l,a=Math.floor(a*l)/l;else break;u=l}return e},e}function Dw(){var e=Iw();return e.copy=function(){return Ka(e,Dw())},Un.apply(e,arguments),Zi(e)}function Fw(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,C0),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Fw(e).unknown(t)},e=arguments.length?Array.from(e,C0):[0,1],Zi(n)}function Rw(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return oMath.pow(e,t)}function WB(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Lw(e){return(t,n)=>-e(-t,n)}function T0(e){const t=e(Mw,Pw),n=t.domain;let r=10,i,o;function s(){return i=WB(r),o=qB(r),n()[0]<0?(i=Lw(i),o=Lw(o),e(VB,$B)):e(Mw,Pw),t}return t.base=function(a){return arguments.length?(r=+a,s()):r},t.domain=function(a){return arguments.length?(n(a),s()):n()},t.ticks=a=>{const u=n();let l=u[0],c=u[u.length-1];const f=c0;){if(l=gd(s,a,n),l===u)return r[i]=s,r[o]=a,t(r);if(l>0)s=Math.floor(s/l)*l,a=Math.ceil(a/l)*l;else if(l<0)s=Math.ceil(s*l)/l,a=Math.floor(a*l)/l;else break;u=l}return e},e}function Tw(){var e=Cw();return e.copy=function(){return Ja(e,Tw())},Un.apply(e,arguments),Wi(e)}function Iw(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,F0),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Iw(e).unknown(t)},e=arguments.length?Array.from(e,F0):[0,1],Wi(n)}function Bw(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return oMath.pow(e,t)}function jB(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Rw(e){return(t,n)=>-e(-t,n)}function M0(e){const t=e(Dw,Fw),n=t.domain;let r=10,i,o;function s(){return i=jB(r),o=$B(r),n()[0]<0?(i=Rw(i),o=Rw(o),e(GB,HB)):e(Dw,Fw),t}return t.base=function(a){return arguments.length?(r=+a,s()):r},t.domain=function(a){return arguments.length?(n(a),s()):n()},t.ticks=a=>{const u=n();let l=u[0],c=u[u.length-1];const f=cA&&(i[k]=A),u[k]o)o=A;else{a=!0,console.debug("Items (vertices) are not ordered properly. Disabling binned index.");return}const _=n(w),k=r(w);if(_A&&(i[D]=A),u[D]{const _=h(w,!1),k=h(A,!0),B=i[_],I=Math.max(u[k],B);return S[0]=B,S[1]=I,S},y=()=>{if(a)return;for(let A=1;AA&&(i[k]=A),u[k]o)o=A;else{a=!0,console.debug("Items (vertices) are not ordered properly. Disabling binned index.");return}const _=n(w),k=r(w);if(_A&&(i[D]=A),u[D]{const _=h(w,!1),k=h(A,!0),B=i[_],I=Math.max(u[k],B);return S[0]=B,S[1]=I,S},y=()=>{if(a)return;for(let A=1;Aa===void 0)){const a=this.getChromosome(r);return a?[a.continuousStart,a.continuousEnd]:void 0}const i=n[3]||r,o=parseInt(n[2].replace(/,/g,"")),s=n[4]!==void 0?parseInt(n[4].replace(/,/g,"")):o;return[this.toContinuous(r,o-1),this.toContinuous(i,s)]}}}function L5(e){return XC(e).map(([t,n])=>({name:t,size:parseInt(n)}))}function yv(e){return At(e)&&"chrom"in e}function O5(e){return e.every(yv)}function fp(e){return At(e)&&("name"in e||hp(e)||wv(e))}function hp(e){return fp(e)&&"url"in e}function wv(e){return fp(e)&&"contigs"in e}class Al extends Array{constructor(){super(),this.type=void 0}extend(t){return this}extendAll(t){if(t instanceof Al&&t.type!=this.type)throw new Error(`Cannot combine different types of domains: ${this.type} and ${t.type}`);for(const n of t)this.extend(n);return this}extendAllWithAccessor(t,n){for(const r of t)this.extend(n(r));return this}}class dp extends Al{constructor(){super(),this.type="quantitative"}extend(t){return t==null||Number.isNaN(t)?this:(t=+t,this.length?ta===void 0)){const a=this.getChromosome(r);return a?[a.continuousStart,a.continuousEnd]:void 0}const i=n[3]||r,o=parseInt(n[2].replace(/,/g,"")),s=n[4]!==void 0?parseInt(n[4].replace(/,/g,"")):o;return[this.toContinuous(r,o-1),this.toContinuous(i,s)]}}}function MR(e){return ZC(e).map(([t,n])=>({name:t,size:parseInt(n)}))}function gx(e){return xt(e)&&"chrom"in e}function PR(e){return e.every(gx)}function bp(e){return xt(e)&&("name"in e||yp(e)||mx(e))}function yp(e){return bp(e)&&"url"in e}function mx(e){return bp(e)&&"contigs"in e}class El extends Array{constructor(){super(),this.type=void 0}extend(t){return this}extendAll(t){if(t instanceof El&&t.type!=this.type)throw new Error(`Cannot combine different types of domains: ${this.type} and ${t.type}`);for(const n of t)this.extend(n);return this}extendAllWithAccessor(t,n){for(const r of t)this.extend(n(r));return this}}class wp extends El{constructor(){super(),this.type="quantitative"}extend(t){return t==null||Number.isNaN(t)?this:(t=+t,this.length?ts[1])&&(le(this,Js,o),le(this,Vu,r),i(o))}}Ks=new WeakMap,Js=new WeakMap,ea=new WeakMap,Vu=new WeakMap;class zM extends Cl{constructor(t,n){const r={channel:"x",windowSize:7e3,debounce:200,debounceMode:"window",...t};if(super(n,r.channel),this.params=r,!this.params.url)throw new Error("No URL provided for IndexedFastaSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(i=>{Promise.all([Promise.resolve().then(()=>m2),Promise.resolve().then(()=>zO),Promise.resolve().then(()=>Dl)]).then(([{Buffer:o},{IndexedFasta:s},{RemoteFile:a}])=>{typeof window<"u"&&(window.Buffer??(window.Buffer=o));const u=l=>new a(_l(l,this.view.getBaseUrl()));this.fasta=new s({fasta:u(this.params.url),fai:u(this.params.indexUrl??this.params.url+".fai")}),i()})})}async loadInterval(t){const n=await this.discretizeAndLoad(t,async(r,i)=>this.fasta.getSequence(r.chrom,r.startPos,r.endPos,{signal:i}).then(o=>({chrom:r.chrom,start:r.startPos,sequence:o})));n&&this.publishData([n])}}class UM extends Cl{constructor(n,r){const i={pixelsPerBin:2,channel:"x",debounce:200,debounceMode:"window",...n},o=yf(r.paramMediator,i,s=>{s.includes("url")?X(this,$u,n1).call(this).then(()=>this.reloadLastDomain()):s.includes("pixelsPerBin")&&this.reloadLastDomain()});super(r,o.channel);Z(this,$u);Z(this,ta,[]);Z(this,na,void 0);if(this.params=o,!this.params.url)throw new Error("No URL provided for BigWigSource");this.setupDebouncing(this.params),X(this,$u,n1).call(this)}async onDomainChanged(n){await this.initializedPromise;const r=this.getAxisLength()||700,i=GM(n,r,z(this,ta)),o=Math.max(i*r,5e3);this.callIfWindowsChanged(n,o,s=>this.loadInterval(s,i))}async loadInterval(n,r){const i=.5/r/Zt(this.params.pixelsPerBin),o=await this.discretizeAndLoad(n,(s,a)=>z(this,na).getFeatures(s.chrom,s.startPos,s.endPos,{scale:i,signal:a}).then(u=>u.map(l=>({chrom:s.chrom,start:l.start,end:l.end,score:l.score}))));o&&this.publishData(o)}}ta=new WeakMap,na=new WeakMap,$u=new WeakSet,n1=function(){return this.initializedPromise=new Promise((n,r)=>{Promise.all([Promise.resolve().then(()=>pS),Promise.resolve().then(()=>Dl)]).then(([{BigWig:i},{RemoteFile:o}])=>{le(this,na,new i({filehandle:new o(_l(Zt(this.params.url),this.view.getBaseUrl()))})),this.setLoadingStatus("loading"),z(this,na).getHeader().then(s=>{le(this,ta,s.zoomLevels.map(a=>a.reductionLevel).reverse()),z(this,ta).push(1),this.setLoadingStatus("complete"),n()}).catch(s=>{this.load(),this.setLoadingStatus("error",`${Zt(this.params.url)}: ${s.message}`),r(s)})})}),this.initializedPromise};function GM(e,t,n){const r=(e[1]-e[0])/t;return n.find(i=>is[1])&&(ae(this,Js,o),ae(this,Vu,r),i(o))}}Ks=new WeakMap,Js=new WeakMap,ea=new WeakMap,Vu=new WeakMap;class N9 extends kl{constructor(t,n){const r={channel:"x",windowSize:7e3,debounce:200,debounceMode:"window",...t};if(super(n,r.channel),this.params=r,!this.params.url)throw new Error("No URL provided for IndexedFastaSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(i=>{Promise.all([Promise.resolve().then(()=>p2),Promise.resolve().then(()=>NL),Promise.resolve().then(()=>Dl)]).then(([{Buffer:o},{IndexedFasta:s},{RemoteFile:a}])=>{typeof window<"u"&&(window.Buffer??(window.Buffer=o));const u=l=>new a(Sl(l,this.view.getBaseUrl()));this.fasta=new s({fasta:u(this.params.url),fai:u(this.params.indexUrl??this.params.url+".fai")}),i()})})}async loadInterval(t){const n=await this.discretizeAndLoad(t,async(r,i)=>this.fasta.getSequence(r.chrom,r.startPos,r.endPos,{signal:i}).then(o=>({chrom:r.chrom,start:r.startPos,sequence:o})));n&&this.publishData([n])}}class z9 extends kl{constructor(n,r){const i={pixelsPerBin:2,channel:"x",debounce:200,debounceMode:"window",...n},o=wf(r.paramMediator,i,s=>{s.includes("url")?X(this,$u,s1).call(this).then(()=>this.reloadLastDomain()):s.includes("pixelsPerBin")&&this.reloadLastDomain()});super(r,o.channel);Z(this,$u);Z(this,ta,[]);Z(this,na,void 0);if(this.params=o,!this.params.url)throw new Error("No URL provided for BigWigSource");this.setupDebouncing(this.params),X(this,$u,s1).call(this)}async onDomainChanged(n){await this.initializedPromise;const r=this.scaleResolution.getAxisLength()||700,i=U9(n,r,z(this,ta)),o=Math.max(i*r,5e3);this.callIfWindowsChanged(n,o,s=>this.loadInterval(s,i))}async loadInterval(n,r){const i=.5/r/Zt(this.params.pixelsPerBin),o=await this.discretizeAndLoad(n,(s,a)=>z(this,na).getFeatures(s.chrom,s.startPos,s.endPos,{scale:i,signal:a}).then(u=>u.map(l=>({chrom:s.chrom,start:l.start,end:l.end,score:l.score}))));o&&this.publishData(o)}}ta=new WeakMap,na=new WeakMap,$u=new WeakSet,s1=function(){return this.initializedPromise=new Promise((n,r)=>{Promise.all([Promise.resolve().then(()=>f_),Promise.resolve().then(()=>Dl)]).then(([{BigWig:i},{RemoteFile:o}])=>{ae(this,na,new i({filehandle:new o(Sl(Zt(this.params.url),this.view.getBaseUrl()))})),this.setLoadingStatus("loading"),z(this,na).getHeader().then(s=>{ae(this,ta,s.zoomLevels.map(a=>a.reductionLevel).reverse()),z(this,ta).push(1),this.setLoadingStatus("complete"),n()}).catch(s=>{this.load(),this.setLoadingStatus("error",`${Zt(this.params.url)}: ${s.message}`),r(s)})})}),this.initializedPromise};function U9(e,t,n){const r=(e[1]-e[0])/t;return n.find(i=>i
- ${i.map(([u,l])=>qe`
+ ${i.map(([u,l])=>We`