PageSourceSearch

https://www.uniprot.org/modern.id-mapping-result-page.4a977e.js

js uniprot.org collected 2026-09-24 08:33:30 UTC 6,364 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkuniprot_website=self.webpackChunkuniprot_website||[]).push([[3291],{73621(e,t,s){s.r(t),s.d(t,{default:()=>N}),s(74495),s(67622),s(80746),s(38660),s(29833),s(36967),s(91482),s(11207),s(84160),s(31511),s(19675),s(87870),s(21862),s(64636),s(69516),s(80329),s(61284),s(37930),s(99453),s(50906),s(79747),s(3731),s(14357),s(99469),s(36411),s(43462),s(69992);var a=s(97500),r=s.n(a),n=s(36371),i=s(58924),o=s(71763),l=s(66532),d=s(85399),c=s(87912),p=s(9297),h=s(55680),m=s(21208),u=s(52871),g=s(5968),j=s(69429),b=s(38335);s(98660),s(68907),s(20206);var v=s(92716),x=s(6447),I=s(61540),P=s(44032),f=s(73578),U=s(91193),D=s(98510),C=s(3431),_=s(73947);const w="CaPBE";var y=s(91987);const N=({namespaceOverride:e,resultsDataObject:t,detailsData:s,notCustomisable:a=!1,inputParamsData:N})=>{const[A,$,R]=(0,g.A)(),k=(0,l.W6)(),O=(0,x.A)(s?.ids),S=O?.length||0,E=t.failedIds?.length||0,M=t.suggestedIds?.length||0,X=t.obsoleteCount||0,L=S-E-M,B=L-X,q=S<=25e3,[G,T]=(0,i.A)(t.suggestedIds,({to:e})=>U.oY.test(e)),K=[...new Set(G?.map(({to:e})=>e))],V=s?.redirectURL&&(0,I.fI)(s.redirectURL.replace("/results/","/results/stream/"),{query:(0,I._b)({active:!1}),format:m.D1[b.o.list],compressed:!1}),{data:F}=(0,u.A)(t.obsoleteCount&&q?V:void 0),W=(0,o.useMemo)(()=>F?F.split("\n").filter(Boolean):[],[F]);T?.length&&v.R8("Non-UniParc IDs have been suggested for an ID Mapping job.");const Y=(0,C.t)(s?.from);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(p.A,{total:t.total||0,loadedTotal:t.allResults.length,obsoleteCount:t.obsoleteCount,selectedEntries:A,namespaceOverride:e,disableCardToggle:!0,base:s?.redirectURL,notCustomisable:a||e===j.g$.idmapping,jobType:D.j.ID_MAPPING,inputParamsData:N}),O&&(0,y.jsxs)(n.gL,{className:"c9q_S",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:(0,y.jsx)(n.Ig,{children:L})})," ",(0,P.aX)("ID",L)," mapped to"," ",(0,y.jsx)("strong",{children:(0,y.jsx)(n.Ig,{children:t.total||0})})," ",(0,P.aX)("result",t.total||0)]}),E>0&&(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:(0,y.jsx)(n.Ig,{children:E})})," ",(0,P.aX)("ID",E)," not mapped:",(0,y.jsx)(n.hG,{descriptionString:"IDs",numberCollapsedItems:0,className:w,children:t.failedIds})]}),G.length>0&&(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:(0,y.jsx)(n.Ig,{children:M})})," ",(0,P.aX)("ID",M)," mapped to UniParc:",(0,y.jsx)("br",{}),(0,y.jsxs)("div",{className:r()("button-group","aY8KN"),children:[(0,y.jsx)(n.$n,{variant:"tertiary",onClick:()=>((e,t="data.tsv")=>{if(!e?.length)return;const s=Object.keys(e[0]),a=[s.join("\t"),...e.map(e=>s.map(t=>e[t]??"").join("\t"))].join("\n"),r=new Blob([a],{type:"text/tab-separated-values;charset=utf-8;"}),n=URL.createObjectURL(r),i=document.createElement("a");i.href=n,i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(n)})(G,N?.from?`${N.from}_to_UniParc.tsv`:"mapped_to_UniParc.tsv"),children:"Download TSV"})," | ",K.length<=78?(0,y.jsxs)(d.N_,{to:{pathname:c.qg[c.aZ.UniParcResults],search:`query=${K.map(e=>`upi:${e}`).join(" OR ")}`},className:"button tertiary",children:["View ",K.length," UniParc entries"]}):(0,y.jsxs)(d.N_,{to:{pathname:c.qg[c.aZ.IDMapping],search:(0,I._b)({ids:K.join(","),from:"UniParc",to:"UniParc"})},children:["Submit ID mapping job to view"," ",K.length," UniParc entries"]})]}),(0,y.jsx)(n.hG,{descriptionString:"IDs",numberCollapsedItems:2,className:w,children:G?.map(({from:e,to:t})=>(0,y.jsxs)("span",{children:[e," →"," ",(0,y.jsx)(d.N_,{to:(0,c.u3)(j.g$.uniparc,t,f.l.Entry),children:t})]},`${e}|${t}`))})]}),T.length>0&&(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:(0,y.jsx)(n.Ig,{children:T.length})})," ",(0,P.aX)("ID",T.length)," mapped to another UniProt DB:",(0,y.jsx)(n.hG,{descriptionString:"IDs",numberCollapsedItems:0,className:w,children:T?.map(({from:e,to:t})=>(0,y.jsxs)("span",{children:[e," → ",t]},`${e}|${t}`))})]}),X>0&&(0,y.jsxs)("div",{children:[B?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("strong",{children:(0,y.jsx)(n.Ig,{children:B})})," ",q?(0,y.jsx)(d.N_,{to:e=>({...e,search:(0,I._b)({query:"active:true"})}),children:"active"}):"active"," ",(0,P.aX)("entry",B,"entries")," and"," "]}):null,(0,y.jsx)("strong",{children:(0,y.jsx)(n.Ig,{children:X})})," ",q?(0,y.jsx)(d.N_,{to:e=>({...e,search:(0,I._b)({query:"active:false"})}),children:"obsolete"}):"obsolete"," ",(0,P.aX)("entry",X,"entries")," ",(0,P.aX)("is",L,"are")," found"," ","(",q&&W?(0,y.jsxs)(n.$n,{variant:"tertiary",onClick:e=>{e.stopPropagation(),k.push((0,c.wE)(D.j.ID_MAPPING),{parameters:{ids:W,from:"UniProtKB_AC-ID",to:"UniParc"}})},children:["map the ",X," obsolete UniProtKB entries to UniParc"]}
1):(0,y.jsxs)(n.$n,{variant:"tertiary",onClick:e=>{e.stopPropagation(),k.push((0,c.wE)(D.j.ID_MAPPING),{parameters:{ids:O,from:"UniProtKB_AC-ID",to:"UniParc"}})},children:["map all ",S," ",(0,P.aX)("ID",S)," to UniParc"]}),")"]})]}),(0,y.jsx)(_.X.Provider,{value:Y,children:(0,y.jsx)(h.A,{resultsDataObject:t,setSelectedItemFromEvent:e===j.g$.idmapping?void 0:$,setSelectedEntries:e===j.g$.idmapping?void 0:R,namespaceOverride:e,displayIdMappingColumns:!0,disableCardToggle:!0})})]})}},10269(e,t,s){s(74495),s(29833),s(36967),s(91482),s(11207),s(84160),s(31511),s(19675),s(87870),s(21862),s(64636),s(69516),s(80329),s(61284),s(37930),s(99453),s(50906),s(79747),s(3731),s(14357),s(99469),s(36411),s(43462),s(69992),s(98660),s(68907),s(20206);var a=s(71763),r=s(66532),n=s(79523),i=s(61540),o=s(2217),l=s(13603);const d=new Set(["cards","table",null]);s.d(t,["A",0,(e,t=!1)=>{const{fromUrl:s}=(0,o.A)({namespaceOverride:e}),[c,p]=(0,l.A)("view-mode",null),h=(0,r.W6)(),m=(0,r.zy)().search;let u,g=(e=>"cards"!==e&&"table"!==e?0===e?"table":"cards"===e?"cards":null:e)(c),j=!1;const{view:b,...v}=Object.fromEntries(new URLSearchParams(m));t?g="table":b?"string"==typeof b&&d.has(b)?(g=b,j=!0):u={parameter:"view",value:b}:s&&(g="table"),(0,a.useEffect)(()=>{g&&(0,n.WN)("render",g)},[g]);const x=(0,a.useCallback)(e=>{j?h.push({pathname:h.location.pathname,search:(0,i._b)({...v,view:e})}):p(e)},[j,h,p,v]);return{viewMode:g,setViewMode:x,invalidUrlViewMode:u,fromUrl:j}}])},6447(e,t,s){s(67622),s(80746);const a=/[\s,]+/;s.d(t,["A",0,(e="",t=a)=>e.split(t).filter(Boolean)])}}]);
2//# sourceMappingURL=modern.id-mapping-result-page.4a977e.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.