this.webpackChunk([51],{2068:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return v}));var r=n(9),a=n(3),c=n(5),i=n.n(c),u=n(12),o=n(13),s=n(15),f=n(17),d=n(18),p=n(55),w=n(80),l=n(58),h=n(4),b=n(450),v=function(e){Object(f.a)(n,e);var t=Object(d.a)(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).windowSize=1e3,e.windowDelta=1e3,e.gcMode="content",e}return Object(s.a)(n,[{key:"configure",value:function(){var e=Object(u.a)(i.a.mark((function e(){var t,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(h.readConfObject)(this.config,"sequenceAdapter"),e.next=3,null===(t=this.getSubAdapter)||void 0===t?void 0:t.call(this,n);case 3:if(r=e.sent){e.next=6;break}throw new Error("Error getting subadapter");case 6:return e.abrupt("return",r.dataAdapter);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getRefNames",value:function(){var e=Object(u.a)(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.configure();case 2:return t=e.sent,e.abrupt("return",t.getRefNames());case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(e,t){var n=this;return this.windowSize=1e3,this.windowDelta=1e3,this.gcMode="content",Object(w.ObservableCreate)(function(){var c=Object(u.a)(i.a.mark((function c(u){var o,s,f,d,p,w,h,v,g,O,j,k,x,m,y,S,z,A;return i.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,n.configure();case 2:if(o=c.sent,s=1===n.windowSize?1:n.windowSize/2,f=1===n.windowSize,d=e.start,p=e.end,d=Math.max(0,d-s),!((p+=s)<0||d>p)){c.next=11;break}return u.complete(),c.abrupt("return");case 11:return w=o.getFeatures(Object(a.a)(Object(a.a)({},e),{},{start:d,end:p}),t),c.next=14,w.pipe(Object(b.a)()).toPromise();case 14:for(h=c.sent,v=Object(r.a)(h,1),g=v[0],O=g.get("seq"),j=s;j<O.length-s;j+=n.windowDelta){for(k=f?O[j]:O.slice(j-s,j+s),x=0,m=0,y=0,S=0;S<k.length;S++)"c"===k[S]||"C"===k[S]?x++:"g"!==k[S]&&"G"!==k[S]||m++,"N"!==k[S]&&y++;z=d,A=void 0,"content"===n.gcMode?A=(m+x)/(y||1):"skew"===n.gcMode&&(A=(m-x)/(m+x||1)),u.next(new l.a({uniqueId:"".concat(n.id,"_").concat(z+j),start:z+j,end:z+j+n.windowDelta,score:A}))}u.complete();case 20:case"end":return c.stop()}}),c)})));return function(e){return c.apply(this,arguments)}}())}},{key:"freeResources",value:function(){}}]),n}(p.BaseFeatureDataAdapter);v.capabilities=["hasLocalStats"]}});
//# sourceMappingURL=51.755b57b40b029263b59b.worker.js.map