PageSourceSearch

https://www.uniprot.org/legacy.blast-result-page.dd1f65.js

js uniprot.org collected 2026-10-01 08:46:04 UTC 9,100 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkuniprot_website=self.webpackChunkuniprot_website||[]).push([[2041],{26524(e,t,r){r.r(t),r.d(t,{default:()=>L}),r(64317),r(65302),r(14758),r(99488),r(2795),r(36883),r(16667),r(17177),r(14211),r(16357),r(66993),r(8293),r(35737),r(62391),r(74495),r(93555),r(67622),r(80746),r(71119),r(38660),r(26177),r(36343),r(98398),r(76341),r(26979),r(36630),r(33768),r(5617),r(25800),r(2851),r(80755),r(4514);var n=r(97500),i=r.n(n),o=r(36371),s=r(71763),a=r(90896),c=r(79839),l=r(47853),u=r(65546),h=r(61072),f=r(54749),p=r(91987);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}var d=["sortable"];function m(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=x(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(e,t,r){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function S(e,t){return A(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||x(e,t)||j()}function j(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(e){if("string"==typeof e)return w(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){if(Array.isArray(e))return e}var O={hsp_identity:"Identity",hsp_score:"Score",hsp_expect:"E-value"},P={hsp_identity:"#014371",hsp_score:"#966336",hsp_expect:"#374343"},q=function(e){var t=e.hsp,r=e.queryLength,n=e.hitLength,c=e.setHspDetailPanel,l=e.hitAccession,h=e.selectedScoring,f=e.setSelectedScoring,y=e.maxScorings,d=t.hsp_query_from,m=t.hsp_query_to,b=(0,s.useCallback)(function(e){if(e){var r=+t[h],i=y[h];if(void 0!==i)switch(h){case"hsp_expect":r=1-+t[h]/(2*i);break;case"hsp_identity":r/=100;break;case"hsp_score":r/=i}var o=P[h];e.data=[{accession:(0,a.A)().toString(),start:1,end:t.hsp_query_from,shape:"line",color:o},{accession:(0,a.A)().toString(),start:t.hsp_query_from,end:t.hsp_query_to,color:o,opacity:r},{accession:(0,a.A)().toString(),start:t.hsp_query_to,end:n>t.hsp_query_to?n:t.hsp_query_to,shape:"line",color:o}]}},[t,h,n,y]);return(0,p.jsxs)("div",{className:"data-table__blast-hsp__tracks",children:[(0,p.jsx)("section",{className:"data-table__blast-hsp__blast-track",children:(0,p.jsx)(u.A,{"data-testid":"blast-summary-track",length:r,height:10,ref:b,t
1itle:"Start: ".concat(d,"\nEnd: ").concat(m,"\nHit length: ").concat(n),onClick:function(){c({hsp:t,hitAccession:l,onClose:function(){return null},queryLength:r,hitLength:n})}})}),(0,p.jsx)("span",{className:"data-table__blast-hsp__blast-params",children:Object.entries(O).map(function(e){var r=S(e,2),n=r[0],s=r[1];return(0,p.jsx)(o.vu,{compact:!0,title:s,className:i()(n,n===h?"primary":"secondary"),onClick:function(){return f(n)},children:"".concat(t[n]).concat("hsp_identity"===n?"%":"")},n)})})]})},k=function(e){var t,r=e.hsps,n=e.queryLength,i=e.hitLength,a=e.setHspDetailPanel,c=e.hitAccession,l=e.selectedScoring,u=e.setSelectedScoring,h=e.maxScorings,f=S((0,s.useState)(0),2),y=f[0],d=f[1],m=A(t=(0,s.useMemo)(function(){return Array.from(r).sort(function(e,t){return t.hsp_score-e.hsp_score})},[r]))||v(t)||x(t)||j(),b=m[0],g=w(m).slice(1);return(0,p.jsxs)("div",{className:"data-table__blast-hsp",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(q,{hsp:b,queryLength:n,hitLength:i,hitAccession:c,setHspDetailPanel:a,selectedScoring:l,setSelectedScoring:u,maxScorings:h}),g.slice(0,y).map(function(e){return(0,p.jsx)(q,{hsp:e,queryLength:n,hitLength:i,hitAccession:c,setHspDetailPanel:a,selectedScoring:l,setSelectedScoring:u,maxScorings:h},"hsp_".concat(e.hsp_num))})]}),y<g.length&&(0,p.jsx)(o.$n,{variant:"tertiary",onClick:function(){return d(function(e){return e+10})},children:"+".concat(g.length-y," more")})]})};const L=function(e){var t=e.data,r=e.setSelectedItemFromEvent,n=e.setHspDetailPanel,i=e.loading,a=e.namespace,u=(0,s.useRef)([]),y=S((0,s.useState)("hsp_identity"),2),b=y[0],_=y[1];if(!i){var j=null==t?void 0:t.hits.map(function(e){return g(g({},e),e.extra)});u.current=j||[]}var A,O=(0,f.A)(u.current.length?{first:25,max:u.current.length}:void 0),P=(0,s.useMemo)(function(){if(null==t||!t.hits)return{hsp_identity:100,hsp_score:1,hsp_expect:1};var e,r={hsp_identity:-1/0,hsp_score:-1/0,hsp_expect:-1/0},n=m(t.hits);try{for(n.s();!(e=n.n()).done;){var i,o=m(e.value.hit_hsps);try{for(o.s();!(i=o.n()).done;){var s=i.value;r.hsp_identity<s.hsp_identity&&(r.hsp_identity=s.hsp_identity),r.hsp_score<s.hsp_score&&(r.hsp_score=s.hsp_score),r.hsp_expect<s.hsp_expect&&(r.hsp_expect=s.hsp_expect)}}catch(e){o.e(e)}finally{o.f()}}}catch(e){n.e(e)}finally{n.f()}return r},[t]),q=null==t?void 0:t.query_len,L=S((0,h.A)(a),1)[0],I=null==L?void 0:L.map(function(e){return e.sortable,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,d)}),D={label:(0,p.jsx)("div",{className:"query-sequence-wrapper",children:(0,p.jsx)(l.A,{length:q,title:"Query",height:40,"margin-left":0,"margin-right":0})}),name:"alignment",width:"40vw",render:function(e){return(0,p.jsx)(k,{hsps:e.hit_hsps,queryLength:q||0,hitLength:e.hit_len,hitAccession:e.hit_acc,setHspDetailPanel:n,selectedScoring:b,setSelectedScoring:_,maxScorings:P})}},E=[].concat(function(e){if(Array.isArray(e))return w(e)}(A=I||[])||v(A)||x(A)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[D]);return i&&!u.current.length?(0,p.jsx)(o.aH,{}):u.current.length?(0,p.jsx)(o.bQ,{className:i?"loading-data-table":void 0,getIdKey:function(e){return e.hit_acc},density:"compact",columns:E,data:u.current.slice(0,O),onSelectionChange:r}):(0,p.jsx)(c.A,{})}},79839(e,t,r){var n=r(36371),i=r(71763),o=r(84026),s=r(68823),a=r(16833),c=r(75247),l=r(91987),u=(0,i.lazy)(function(){return r.e(1574).then(r.bind(r,68223))}),h=function(){return(0,l.jsx)(n.QB,{level:"info",children:(0,l.jsxs)("small",{children:[(0,l.jsx)("h1",{className:"small",children:"Sorry, no results were found!"}),(0,l.jsx)("span",{children:"Please try different criteria"})]})})};r.d(t,["A",0,function(e){var t=e.children,r=void 0===t?(0,l.jsx)(h,{}):t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.A,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex"})}),(0,l.jsx)(a.A,{artwork:(0,l.jsx)("img",{src:c,width:"400",height:"400",alt:""}),children:r}),(0,l.jsx)(o.A,{children:(0,l.jsx)(i.Suspense,{fallback:null,children:(0,l.jsx)(u,{})})})]})}])}}]);
2//# sourceMappingURL=legacy.blast-result-page.dd1f65.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.