text: (this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[40,10],{2433:function(e,n,t){"use strict";t.r(n),t.d(n,"parseSTARFusionBuffer",(function(){return c}));var r=t(88),a=t.n(r),u=t(91),s=t(382);function o(e){var n=e.split(":");return{refName:n[0],pos:parseInt(n[1],10),strand:"-"===n[2]?-1:1}}var i={SpanningFragCount:!0,FFPM:!0,LeftBreakEntropy:!0,RightBreakEntropy:!0,JunctionReadCount:!0};function c(e,n){return m.apply(this,arguments)}function m(){return(m=Object(u.a)(a.a.mark((function e(n,t){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(s.parseTsvBuffer)(n,{hasColumnNameLine:!0,columnNameLineNumber:1,selectedAssemblyName:t.selectedAssemblyName,isValidRefName:function(){return!1}});case 2:return(r=e.sent).columns[0].name=r.columns[0].name.replace("#",""),r.columns.forEach((function(e){i[e.name]&&(e.dataType={type:"Number"})})),r.rowSet.rows.forEach((function(e,n){var t={};e.cells.forEach((function(e,n){var a=e.text,u=r.columns[n];if("LeftBreakpoint"===u.name&&a){var s=o(a),c=s.refName,m=s.pos,f=s.strand;t.refName=c,t.start=m,t.end=m,t.strand=f}else if("RightBreakpoint"===u.name&&a){var l=o(a),p=l.refName,d=l.pos,N=l.strand;t.mate={refName:p,start:d,end:d,strand:N}}else a&&i[u.name]?t[u.name]=parseFloat(a):t[u.name]=a})),t.uniqueId="sf-".concat(n+1),e.extendedData={feature:t}})),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},382:function(e,n,t){"use strict";t.r(n),t.d(n,"bufferToString",(function(){return f})),t.d(n,"parseCsvBuffer",(function(){return N})),t.d(n,"parseTsvBuffer",(function(){return b}));var r=t(88),a=t.n(r),u=t(91),s=t(82),o=t(90),i=t(603),c=t.n(i),m=t(83);function f(e){return new TextDecoder("utf-8",{fatal:!0}).decode(e)}function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c()(Object(o.a)({noheader:!0,output:"csv"},n)).fromString(f(e))}function p(e,n,t){var r,a=e.rows[0].cells[n].text||"",u="Text";try{r=Object(m.parseLocString)(a,t)}catch(s){}return r&&r.refName&&"number"===typeof r.start?u="LocString":/^\d+(\.\d+)?$/.test(a)&&(u="Number"),u}function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{hasColumnNameLine:!1,columnNameLineNumber:1,isValidRefName:function(){return!1}},t=0,r={isLoaded:!0,rows:e.map((function(e,r){var a=r+(n.hasColumnNameLine?0:1);return e.length>t&&(t=e.length),{id:String(a),cells:e.map((function(e,n){return{columnNumber:n,text:e}}))}}))},a={};if(n.hasColumnNameLine&&void 0!==n.columnNameLineNumber){var u=r.rows.splice(n.columnNameLineNumber-1,1),o=Object(s.a)(u,1),i=o[0];i&&i.cells.forEach((function(e,n){a[n]=e.text||""}))}for(var c=[],f=[],l=function(e){f.push(e);var t=p(r,e,n.isValidRefName);"LocString"===t&&r.rows.forEach((function(t){var r=t.cells[e];r.extendedData=Object(m.parseLocString)(r.text,n.isValidRefName)})),c[e]={name:a[e],dataType:{type:t}}},d=0;d<t;d+=1)l(d);return{rowSet:r,columnDisplayOrder:f,hasColumnNames:!!n.hasColumnNameLine,columns:c,assemblyName:n.selectedAssemblyName}}function N(e){return h.apply(this,arguments)}function h(){return(h=Object(u.a)(a.a.mark((function e(n){var t,r,u=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>1&&void 0!==u[1]?u[1]:{hasColumnNameLine:!1,columnNameLineNumber:1,isValidRefName:function(){return!1}},e.next=3,l(n);case 3:return r=e.sent,e.abrupt("return",d(r,t));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return(v=Object(u.a)(a.a.mark((function e(n){var t,r,u=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>1&&void 0!==u[1]?u[1]:{hasColumnNameLine:!1,columnNameLineNumber:1,isValidRefName:function(){return!1}},e.next=3,l(n,{delimiter:"\t"});case 3:return r=e.sent,e.abrupt("return",d(r,t));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}}]);
  //# sourceMappingURL=40.e7b5f848.chunk.js.map