@rcsb/rcsb-statistics 0.3.41-dev.10 → 0.3.41-dev.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="RCSB Protein Data Bank: A Resource for Studying Biological Macromolecules"/><title>RCSB Statistics</title><script defer="defer" src="/static/js/main.93af4507.js"></script><link href="/static/css/main.a8ce960b.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript sto run this app.</noscript><div id="statsroot"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="RCSB Protein Data Bank: A Resource for Studying Biological Macromolecules"/><title>RCSB Statistics</title><script defer="defer" src="/static/js/main.9ebe783d.js"></script><link href="/static/css/main.a8ce960b.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript sto run this app.</noscript><div id="statsroot"></div></body></html>
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[109],{9109(e,n,t){t.r(n),t.d(n,{default:()=>l});var r=t(6540),i=t(2390);const a=[{year:2025,legacyArchiveSnapshot:"1583 GB for 246,905 PDB structures",versionedArchive:"298 GB",emdbCoreArchive:"29 TB for 52,944 EMDB entries"},{year:2024,legacyArchiveSnapshot:"1437 GB for 229,564 PDB structures",versionedArchive:"269 GB",emdbCoreArchive:"21 TB for 41,282 EMDB entries"},{year:2023,legacyArchiveSnapshot:"1242 GB for 214,121 PDB structures",versionedArchive:"231 GB",emdbCoreArchive:"13 TB for 32,033 EMDB entries"},{year:2022,legacyArchiveSnapshot:"1086 GB for 199,755 PDB structures",versionedArchive:"218 GB",emdbCoreArchive:"7.5 TB for 25,319 EMDB entries"},{year:2021,legacyArchiveSnapshot:"923 GB for 185,541 PDB structures",versionedArchive:"174 GB",emdbCoreArchive:"4.5 TB for 18,059 EMDB entries"},{year:2020,legacyArchiveSnapshot:"822 GB for 173,005 PDB structures",versionedArchive:"148 GB",emdbCoreArchive:"2.9 TB for 13,731 EMDB entries"},{year:2019,legacyArchiveSnapshot:"577 GB for 159,140 PDB structures",versionedArchive:"117 GB",emdbCoreArchive:"1.7 TB for 10,370 EMDB entries"},{year:2018,legacyArchiveSnapshot:"441 GB for 136,472 PDB structures",versionedArchive:"85 GB",emdbCoreArchive:"592 GB for 5,753 EMDB entries"}],o=[{year:2025,size:"366 TB"},{year:2024,size:"279 TB"},{year:2023,size:"232 TB"},{year:2022,size:"170 TB"},{year:2021,size:"109 TB"}],l=()=>r.createElement("article",{className:"col-12",style:{paddingTop:"22px"}},r.createElement(i.hx,null,"Data Storage Growth"),r.createElement("section",{className:"mb-5","aria-labelledby":"core-archive-holdings-title"},r.createElement("h3",{id:"core-archive-holdings-title",className:"h4"},"PDB Core Archive and Related Holdings (single copy)"),r.createElement("div",{className:"table-responsive"},r.createElement("table",{className:"table table-condensed table-bordered dt-responsive nowrap",cellSpacing:0,width:"100%"},r.createElement("caption",{className:"visually-hidden"},"Annual size of the PDB legacy archive snapshot, the PDB versioned archive, and the EMDB Core Archive."),r.createElement("thead",null,r.createElement("tr",{className:"light-gray"},r.createElement("th",{scope:"col"},"Year"),r.createElement("th",{scope:"col"},"Size of PDB legacy archive snapshot"),r.createElement("th",{scope:"col"},"Size of PDB versioned archive"),r.createElement("th",{scope:"col"},"Size of EMDB Core Archive"))),r.createElement("tbody",null,a.map(e=>r.createElement("tr",{key:e.year},r.createElement("td",null,e.year),r.createElement("td",null,e.legacyArchiveSnapshot),r.createElement("td",null,e.versionedArchive),r.createElement("td",null,e.emdbCoreArchive))))))),r.createElement("section",{"aria-labelledby":"total-storage-holdings-title"},r.createElement("h3",{id:"total-storage-holdings-title",className:"h4"},"Total Storage for RCSB PDB Holdings"),r.createElement("p",null,"All copies of the PDB Core Archive, including AWS, EMDB Core Archive RCSB PDB OneDep sessions, RCSB.org, PDB101.RCSB.org."),r.createElement("div",{className:"table-responsive"},r.createElement("table",{className:"table table-condensed table-bordered dt-responsive nowrap",cellSpacing:0,width:"100%"},r.createElement("caption",{className:"visually-hidden"},"Annual total size of all RCSB PDB storage holdings."),r.createElement("thead",null,r.createElement("tr",{className:"light-gray"},r.createElement("th",{scope:"col"},"Year"),r.createElement("th",{scope:"col"},"Size"))),r.createElement("tbody",null,o.map(e=>r.createElement("tr",{key:e.year},r.createElement("td",null,e.year),r.createElement("td",null,e.size))))))))},2390(e,n,t){t.d(n,{C:()=>ne,G:()=>_,Gw:()=>J,Kb:()=>M,MV:()=>F,NF:()=>U,Nk:()=>H,OV:()=>R,Q3:()=>j,RZ:()=>X,Tu:()=>O,VT:()=>V,Yg:()=>q,at:()=>Q,hf:()=>ie,hx:()=>K,ne:()=>L,ou:()=>W,ph:()=>Z,rI:()=>te,rh:()=>I,tJ:()=>re,tf:()=>ee,tt:()=>$,vE:()=>Y});var r,i,a,o,l,s,c,d,p,h,m,f,g,b,v,y,u,x,A,B,E,D,w,z,C,S,k,P=t(3679),N=t(1105);function G(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}const T=(0,P.i7)(r||(r=G(["\n from {\n opacity: .5;\n transform: translateZ(0) scale(0.999);\n }\n to {\n opacity: 1;\n transform: translateZ(0) scale(1);\n }\n"]))),$=P.Ay.div(i||(i=G(["\n animation: "," .5s ease-in;\n will-change: opacity, transform;\n"])),T),M=P.Ay.div(a||(a=G([" \n display: flex;\n justify-content: flex-end;\n margin-top: -10px;\n"]))),j=P.Ay.div.attrs(()=>({as:"div"}))(o||(o=G(["\n margin-top: 35px;\n padding-top: 10px;\n border-top: 1px solid #ccc;\n margin-right: 200px;\n"]))),R=P.Ay.button(l||(l=G(["\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid #e7e7e7;\n border-radius: 3px;\n padding: 3px 5px;\n\n & svg { \n margin-right: 5px; \n }\n"]))),H=P.Ay.div(s||(s=G(["\n padding-left: 25px;\n margin-top: 60px;\n"]))),_=(0,P.Ay)(N.A)(c||(c=G(["\n margin-top: 60px;\n"]))),O=P.Ay.div(d||(d=G(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 5px;\n"]))),Y=P.Ay.div(p||(p=G(["\n background-color: #f0f0f0;\n border: ",";\n padding: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n filter: ",";\n\n ","\n"])),e=>e.selected?"1px solid black":"1px solid #fff",e=>e.disabled?"#bbb":"#606060",e=>e.disabled?"grayscale(30%) blur(0.5px)":"none",e=>!e.disabled&&"\n &:hover {\n background-color: #e0e0e0;\n border: 1px solid #808080;\n cursor: pointer;\n }\n "),V=P.Ay.div(h||(h=G(["\n display: flex;\n align-items: center;\n margin-bottom: 5px;\n min-width: 170px;\n"]))),Z=P.Ay.input(m||(m=G(["\n margin-right: 20px;\n"]))),J=P.Ay.label(f||(f=G(["\n font-size: 12px;\n margin-left: 5px;\n font-weight: normal;\n margin-bottom: 0 !important;\n"]))),F=P.Ay.div(g||(g=G(["\n font-weight: bold;\n font-size: 1.2em;\n margin-bottom: 15px;\n"]))),I=P.Ay.div(b||(b=G(["\n width: auto;\n height: auto;\n min-height: ",";\n margin-bottom: 70px;\n margin-left: -15px;\n"])),e=>e.$isTable?"0":"550px"),K=P.Ay.h1(v||(v=G(["\n display: block;\n margin: 0;\n padding: 0 0 29px;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n font-size: 18px;\n font-weight: bold;\n color: #333;\n text-align: start;\n"]))),Q=P.Ay.div(y||(y=G(["\n position: relative;\n height: ",";\n"])),e=>{let n=e.$isTable,t=e.$fullscreen;return n?"auto":t?"calc(100% - 62px)":"calc(550px - 62px)"}),U=P.Ay.div(u||(u=G(["\n margin-top: 20px;\n min-width: 170px;\n label {\n font-size: 12px;\n font-weight: normal;\n margin-left: 5px;\n margin-bottom: 0 !important;\n margin-top: 4px !important;\n }\n .form-check {\n display: flex;\n align-items: center;\n }\n"]))),W=P.Ay.div(x||(x=G(["\n margin-bottom: 35px;\n"]))),q=P.Ay.div(A||(A=G(["\n font-weight: bold;\n margin-bottom: 5px;\n"]))),L=(P.Ay.div(B||(B=G(["\n width: 100%;\n\n\n .col-md-10{\n width: 90% !important;\n }\n\n .col-md-10 > div:first-child {\n height: 80vh !important;\n }\n\n .col-md-2{\n width: 0 !important;\n }\n"]))),P.Ay.div(E||(E=G(["\n display: block;\n font-size: 18px;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n font-weight: bold;\n color: #333;\n padding-top: 0;\n padding-bottom: 15px;\n text-align: start;\n margin-top: -2px;\n"])))),X=P.Ay.div(D||(D=G(["\n position: relative;\n display: inline-block;\n cursor: pointer;\n\n &:hover ul {\n display: block;\n top:-5px;\n margin-left:15px\n }\n"]))),ee=P.Ay.div(w||(w=G(["\n position: relative;\n display: inline-block;\n cursor: ",";\n opacity: ",";\n pointer-events: ",";\n filter: ",";\n color: ",";\n\n &:hover ul {\n display: ",";\n top: -5px;\n margin-left: 15px;\n }\n"])),e=>e.disabled?"not-allowed":"pointer",e=>e.disabled?.4:1,e=>e.disabled?"none":"auto",e=>e.disabled?"grayscale(30%) blur(0.5px)":"none",e=>e.disabled?"#bbb":"inherit",e=>e.disabled?"none":"block"),ne=P.Ay.div(z||(z=G(["\n display: flex;\n align-items: center;\n cursor: pointer;\n position: relative;\n\n .triangle {\n width: 8px;\n aspect-ratio: 1;\n clip-path: polygon(0 0, 100% 0, 50% 70%);\n background-color: #999;\n position: absolute;\n right: -9px;\n top: 50%;\n transform: translateY(-10%);\n transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);\n }\n\n &:hover .triangle {\n transform: translateY(0.2rem);\n }\n"]))),te=P.Ay.ul(C||(C=G(["\n display: none;\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1000;\n min-width: 160px;\n padding: 2px 0;\n margin: 0;\n font-size: 14px;\n color: #333;\n text-align: left;\n list-style: none;\n background-color: #fff;\n border: 1px solid rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n\n ",":hover & {\n display: block;\n }\n\n & > li.disabled {\n pointer-events: none;\n color: #ccc;\n }\n\n & > li:not(.disabled):hover {\n background-color: #f8f9fa;\n }\n"])),X),re=P.Ay.li(S||(S=G(["\n padding: 8px 20px;\n display: flex;\n align-items: center;\n cursor: pointer;\n white-space: nowrap;\n\n &:hover {\n background-color: #f1f1f1;\n }\n"]))),ie=P.Ay.span(k||(k=G(["\n margin-left: 8px;\n font-size: 14px;\n color: #333;\n margin-right: 5px;\n"])))},1105(e,n,t){t.d(n,{A:()=>c});var r=t(6942),i=t.n(r),a=t(6540),o=t(6519),l=t(4848);const s=a.forwardRef((e,n)=>{const[{className:t,...r},{as:a="div",bsPrefix:s,spans:c}]=function({as:e,bsPrefix:n,className:t,...r}){n=(0,o.oU)(n,"col");const a=(0,o.gy)(),l=(0,o.Jm)(),s=[],c=[];return a.forEach(e=>{const t=r[e];let i,a,o;delete r[e],"object"==typeof t&&null!=t?({span:i,offset:a,order:o}=t):i=t;const d=e!==l?`-${e}`:"";i&&s.push(!0===i?`${n}${d}`:`${n}${d}-${i}`),null!=o&&c.push(`order${d}-${o}`),null!=a&&c.push(`offset${d}-${a}`)}),[{...r,className:i()(t,...s,...c)},{as:e,bsPrefix:n,spans:s}]}(e);return(0,l.jsx)(a,{...r,ref:n,className:i()(t,!c.length&&s)})});s.displayName="Col";const c=s}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[317],{7317(e,t,r){r.r(t),r.d(t,{default:()=>q});var a=r(6540),n=r(3679),l=r(7638);const o=async(e,t)=>{var r;return(async(e,t)=>{const r="".concat(t.replace(/\/$/,""),"/rcsbsearch/v2/query"),a=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok)throw new Error(a.statusText);return a.json()})(e,null==t||null===(r=t.config)||void 0===r?void 0:r.searchApiUrl)},i={request_info:{query_id:"ligand_complex_stats_any_ligand",src:"ui"},request_options:{results_content_type:["experimental"]},return_type:"entry",query:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.nonpolymer_entity_count",operator:"greater",value:0}}},c=[i,{request_info:{query_id:"ligand_complex_stats_mv100",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"group",logical_operator:"and",nodes:[i.query,{type:"terminal",service:"text_chem",parameters:{attribute:"chem_comp.formula_weight",operator:"range",value:{from:100,to:300,include_lower:!0,include_upper:!0}}}]}},{request_info:{query_id:"ligand_complex_stats_mv300",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"group",logical_operator:"and",nodes:[i.query,{type:"terminal",service:"text_chem",parameters:{attribute:"chem_comp.formula_weight",operator:"range",value:{from:300,to:500,include_lower:!0,include_upper:!0}}}]}},{request_info:{query_id:"ligand_complex_stats_mv500",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"group",logical_operator:"and",nodes:[i.query,{type:"terminal",service:"text_chem",parameters:{attribute:"chem_comp.formula_weight",operator:"range",value:{from:500,to:1200,include_lower:!0,include_upper:!0}}}]}},{request_info:{query_id:"ligand_complex_stats_loi",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_nonpolymer_entity_annotation.comp_id",operator:"exists"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_nonpolymer_entity_annotation.type",operator:"exact_match",value:"SUBJECT_OF_INVESTIGATION"}}]}},{request_info:{query_id:"ligand_complex_stats_bird",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"terminal",service:"text_chem",parameters:{attribute:"pdbx_reference_molecule.prd_id",operator:"exists"}}},{request_info:{query_id:"ligand_complex_stats_branched_entities",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"terminal",service:"text",parameters:{attribute:"pdbx_entity_branch.type",operator:"exact_match",value:"oligosaccharide"}}}],s=["any non-polymer small molecules","non-polymer small molecules of 100-300 Da","non-polymer small molecules of 300-500 Da","non-polymer small molecules of 500-1200 Da","author-designated Ligand/s of Interest","a biologically interesting short oligomer or oligomer-like BIRD molecules","with branched entities of oligosaccharides"],u={request_options:{paginate:{start:0,rows:0},results_content_type:["experimental"],facets:[{filter:{type:"terminal",service:"text",parameters:{attribute:"exptl.method",operator:"exact_match",value:"ELECTRON MICROSCOPY"}},facets:[{filter:{type:"terminal",service:"text",parameters:{attribute:"pdbx_database_related.content_type",operator:"exact_match",value:"associated EM volume"}},facets:[{filter:{type:"terminal",service:"text",parameters:{attribute:"pdbx_database_related.db_name",operator:"exact_match",value:"EMDB"}},facets:[{name:"pdbx_database_related.db_id",aggregation_type:"cardinality",attribute:"pdbx_database_related.db_id"}]}]}]}]},return_type:"entry"},p={query:{type:"group",logical_operator:"and",nodes:[{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{operator:"exact_match",value:"ELECTRON MICROSCOPY",attribute:"exptl.method"}},{type:"terminal",service:"text",parameters:{operator:"exact_match",value:"EMDB",attribute:"pdbx_database_related.db_name"}},{type:"terminal",service:"text",parameters:{operator:"exact_match",value:"associated EM volume",attribute:"pdbx_database_related.content_type"}}]}]},return_type:"entry",request_options:{results_content_type:["experimental"]}},m=[{key:"exptl-data-counts-info",title:"Experimental Data Counts Info",description:"Experimental Data Counts Info Description",return_type:"entry",facets:[{name:"rcsb_repository_holdings_current.repository_content_types",aggregation_type:"terms",attribute:"rcsb_repository_holdings_current.repository_content_types"}]}],d=e=>{const t={type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_repository_holdings_current.repository_content_types",operator:"exact_match",value:e}}]},r={};return r.query=t,r.return_type="entry",r.request_info={src:"ui",query_id:"stats"},encodeURIComponent(JSON.stringify(r))},y={return_type:"entry",request_options:{facets:[{name:"rcsb_entry_info.experimental_method",aggregation_type:"terms",attribute:"rcsb_entry_info.experimental_method",facets:[{name:"rcsb_entry_info.selected_polymer_entity_types",aggregation_type:"terms",attribute:"rcsb_entry_info.selected_polymer_entity_types"}]}],paginate:{start:0,rows:0}}};function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,l,o,i=[],c=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=l.call(r)).done)&&(i.push(a.value),i.length!==t);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(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)?h(e,t):void 0}}(e,t)||function(){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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}const f=e=>e instanceof Error?e.message:String(e);var b,g=r(6637);function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}const x=["Protein (only)","Protein/Oligosaccharide","Protein/NA","Nucleic acid (only)","Other","Oligosaccharide (only)"],E=n.Ay.h1(b||(w=["\n display: block;\n font-size: 18px;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n font-weight: bold;\n color: #333;\n padding-top: 0;\n padding-bottom: 15px;\n text-align: start;\n margin-top: -2px;\n margin-bottom: 0;\n"],N||(N=w.slice(0)),b=Object.freeze(Object.defineProperties(w,{raw:{value:Object.freeze(N)}}))));var w,N;const S=e=>{let t=e.count,r=void 0===t?3:t;return a.createElement(a.Fragment,null,Array.from({length:r},(e,t)=>a.createElement(g.kD,{key:"summary-loading-row-".concat(t)})))},q=()=>{const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;const t=(0,l.t)().settings,r=_((0,a.useState)([]),2),n=r[0],i=r[1],h=_((0,a.useState)([]),2),b=h[0],g=h[1],v=_((0,a.useState)(null),2),x=v[0],E=v[1],w=_((0,a.useState)([]),2),N=w[0],S=w[1],q=_((0,a.useState)(!0),2),M=q[0],U=q[1],I=_((0,a.useState)(null),2),D=I[0],C=I[1];return(0,a.useEffect)(()=>{let r=!1;return(async()=>{const a=Math.max(1,Math.floor(Number.isFinite(e)?e:3)),n=new Array(c.length);let l,_,h=null,b=null;const v=()=>{b&&!r&&g(((e,t)=>{const r=[];return e.forEach(e=>{"structure factors"===e.label?r.push({label:"have a structure factor file",population:e.population,searchUrl:d(e.label)}):"NMR restraints V1"===e.label?r.push({label:"have an NMR restraint file",population:e.population,searchUrl:d(e.label)}):"NMR chemical shifts"===e.label?r.push({label:"have a chemical shifts file",population:e.population,searchUrl:d(e.label)}):"Combined NMR data (NEF)"===e.label&&r.push({label:"have NMR unified data files (NEF and/or NMR-STAR format files)",population:e.population,searchUrl:d(e.label)})}),t&&r.push({label:t.label,population:t.population,searchUrl:encodeURIComponent(JSON.stringify(t.searchUrl))}),r})(b,null!=h?h:void 0))},x=()=>{void 0===l||void 0===_||r||(h={label:"".concat(_.toLocaleString("en-US")," 3DEM maps were used for the determination of "),population:l,searchUrl:p},E(h),v())},w=m[0],N={return_type:w.return_type||"entry",request_options:{paginate:{rows:0},facets:w.facets}},q=y,M=c.map((e,a)=>({label:s[a],run:async()=>{var l;const c=await o(e,t);r||(n[a]={label:s[a],population:Number(null!==(l=c.total_count)&&void 0!==l?l:0),searchUrl:e},i(n.filter(Boolean)))}})),I=[{label:"experimental data counts",run:async()=>{var e,a;const n=await o(N,t);r||(b=null!==(e=null==n||null===(a=n.facets)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.buckets)&&void 0!==e?e:[],v())}},{label:"summary holdings data",run:async()=>{var e,a;const n=await o(q,t);if(r)return;const l=null!==(e=null==n||null===(a=n.facets)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.buckets)&&void 0!==e?e:[];S(l)}},M[0],{label:"EMDB-associated PDB structures",run:async()=>{var e;const a=await o(p,t);r||(l=Number(null!==(e=a.total_count)&&void 0!==e?e:0),x())}},{label:"unique 3DEM maps",run:async()=>{var e,a;const n=await o(u,t);r||(_=Number(null!==(e=null==n||null===(a=n.facets)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.value)&&void 0!==e?e:0),x())}},...M.slice(1)].filter(e=>Boolean(e));let D=I.length;U(!0),C(null),i([]),g([]),E(null),await(async()=>{let e=0;const t=Math.min(a,I.length);if(0===t)return void U(!1);const n=Array.from({length:t},async()=>{for(;!r;){const t=e;e+=1;const a=I[t];if(!a)return;try{await a.run()}catch(e){r||C(t=>{const r="".concat(a.label,": ").concat(f(e));return t?"".concat(t,"; ").concat(r):r})}finally{r||(D-=1,0===D&&U(!1))}}});await Promise.all(n)})()})().catch(e=>{r||(C(f(e)),U(!1))}),()=>{r=!0}},[t,e]),{ligandInfo:n,exptlInfo:b,emCounts:x,holdingsChartData:N,loading:M,error:D}}(3),t=e.ligandInfo,r=e.exptlInfo,n=e.emCounts,i=e.holdingsChartData,h=e.loading,b=e.error,g=e=>encodeURIComponent(JSON.stringify(e||{})),w=Boolean(n),N=w?r.slice(0,Math.max(0,r.length-1)):r,q=w?r[r.length-1]:null,M=Math.max(0,c.length-t.length),U=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,l,o,i=[],c=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=l.call(r)).done)&&(i.push(a.value),i.length!==t);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)({columnIndex:1,direction:"desc"}),2),I=U[0],D=U[1],C=(e,t)=>({type:"terminal",service:"text",parameters:{attribute:e,operator:"exact_match",value:t}}),T=e=>"/search?request=".concat(g((e=>({query:1===e.length?e[0]:{type:"group",logical_operator:"and",nodes:e},return_type:"entry",request_info:{src:"ui",query_id:"stats"}}))(e))),O=e=>{D(t=>t.columnIndex===e?{columnIndex:e,direction:"desc"===t.direction?"asc":"desc"}:{columnIndex:e,direction:"desc"})},A=(0,a.useMemo)(()=>{const e=x.map(e=>{const t=i.map(t=>((e,t)=>{var r,a,n;const l=(null!==(r=null==e||null===(a=e.facets)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.buckets)&&void 0!==r?r:[]).find(e=>e.label===t);return l?Number(null!==(n=l.population)&&void 0!==n?n:0):0})(t,e));return{molecularType:e,rowCounts:t,rowTotal:t.reduce((e,t)=>e+t,0)}}),t=I.columnIndex;return 0===t?[...e].sort((e,t)=>e.molecularType<t.molecularType?"asc"===I.direction?-1:1:e.molecularType>t.molecularType?"asc"===I.direction?1:-1:0):[...e].sort((e,r)=>{var a,n;const l=null!==(a=e.rowCounts[t-1])&&void 0!==a?a:0,o=null!==(n=r.rowCounts[t-1])&&void 0!==n?n:0;return"asc"===I.direction?l-o:o-l})},[i,I]);return a.createElement("div",null,a.createElement(E,null,"PDB Data Distribution Summary"),b&&a.createElement("p",{style:{color:"red"}},b),a.createElement("div",{className:"table-responsive"},a.createElement("table",{className:"table table-condensed table-bordered dt-responsive nowrap",cellSpacing:0,width:"100%"},a.createElement("thead",null,a.createElement("tr",{className:"light-gray"},a.createElement("th",{onClick:()=>O(0),style:{cursor:"pointer"}},"Molecular Type",0===I.columnIndex?"desc"===I.direction?" ▼":" ▲":""),i.map((e,t)=>a.createElement("th",{key:t,className:"text-end",onClick:()=>O(t+1),style:{cursor:"pointer"}},e.label,I.columnIndex===t+1?"desc"===I.direction?" ▼":" ▲":"")),a.createElement("th",{className:"fw-bold text-end"},"Total"))),a.createElement("tbody",null,A.map(e=>{return a.createElement("tr",{key:e.molecularType},a.createElement("td",null,e.molecularType),e.rowCounts.map((t,r)=>{return a.createElement("td",{key:"".concat(e.molecularType,"-").concat(r),className:"text-end"},t>0?a.createElement("a",{href:(n=i[r].label,l=e.molecularType,T([C("rcsb_entry_info.experimental_method",n),C("rcsb_entry_info.selected_polymer_entity_types",l)]))},t.toLocaleString("en-US")):0);var n,l}),a.createElement("td",{className:"text-end"},a.createElement("a",{href:(t=e.molecularType,T([C("rcsb_entry_info.selected_polymer_entity_types",t)]))},e.rowTotal.toLocaleString("en-US"))));var t})),a.createElement("tfoot",null,a.createElement("tr",{className:"bg-info"},a.createElement("td",null,"Total"),i.map((e,t)=>{var r,n;return a.createElement("td",{key:t,className:"text-end"},a.createElement("a",{href:(n=e.label,T([C("rcsb_entry_info.experimental_method",n)]))},Number(null!==(r=e.population)&&void 0!==r?r:0).toLocaleString("en-US")))}),a.createElement("td",{className:"text-end"},i.reduce((e,t)=>{var r;return e+Number(null!==(r=t.population)&&void 0!==r?r:0)},0).toLocaleString("en-US")))))),a.createElement("div",{className:"row",style:{marginTop:"10px"}},a.createElement("div",{className:"col-lg-12 col-md-12 col-sm-12"},a.createElement("p",null,a.createElement("strong",null,"Multiple Methods:")," Atomic structures substantially underpinned by more than one experimental method currently supported by the PDB archive (NMR, 3DEM, or crystallography/diffraction) with or without some additional data provided by currently unsupported methods."),a.createElement("p",null,a.createElement("strong",null,"Integrative Methods:")," Atomic structures with all data coming from currently unsupported methods by the PDB, or only partially underpinned by an experimental method currently supported by the PDB, or partially/entirely non-atomic structures supported by the PDB-IHM."))),a.createElement("div",{className:"row"},a.createElement("div",{className:"col-lg-6 col-md-6 col-sm-12"},a.createElement("h4",null,"PDB Structures with Experimental Data"),a.createElement("div",{className:"list-group"},r&&r.length>0?a.createElement(a.Fragment,null,N.map((e,t)=>a.createElement("div",{key:t},a.createElement("div",null,a.createElement("a",{href:"/search?request=".concat("string"==typeof e.searchUrl?e.searchUrl:g(e.searchUrl))},Number(e.population).toLocaleString("en-US"))),a.createElement("div",null,e.label))),q&&a.createElement("div",null,q.label," ",a.createElement("a",{href:"/search?request=".concat("string"==typeof q.searchUrl?q.searchUrl:g(q.searchUrl))},Number(q.population).toLocaleString("en-US"))," PDB structures"),h&&!q&&a.createElement(S,{count:1})):h?a.createElement(S,null):a.createElement("div",null,"No experimental data counts available."))),a.createElement("div",{className:"col-lg-6 col-md-6 col-sm-12"},a.createElement("h4",null,"PDB Structures with Small Molecule Data"),a.createElement("div",{className:"list-group"},t&&t.length>0?a.createElement(a.Fragment,null,t.map((e,t)=>a.createElement("div",{key:t},a.createElement("div",null,a.createElement("a",{href:"/search?request=".concat("string"==typeof e.searchUrl?e.searchUrl:g(e.searchUrl))},Number(e.population).toLocaleString("en-US"))),a.createElement("div",null,e.label))),h&&M>0&&a.createElement(S,{count:Math.min(3,M)})):h?a.createElement(S,null):a.createElement("div",null,"No ligand data available.")))))}}}]);
1
+ "use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[317],{7317(e,t,r){r.r(t),r.d(t,{default:()=>q});var a=r(6540),n=r(3679),l=r(7638);const o=async(e,t)=>{var r;return(async(e,t)=>{const r="".concat(t.replace(/\/$/,""),"/rcsbsearch/v2/query"),a=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok)throw new Error(a.statusText);return a.json()})(e,null==t||null===(r=t.config)||void 0===r?void 0:r.searchApiUrl)},i={request_info:{query_id:"ligand_complex_stats_any_ligand",src:"ui"},request_options:{results_content_type:["experimental"]},return_type:"entry",query:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.nonpolymer_entity_count",operator:"greater",value:0}}},c=[i,{request_info:{query_id:"ligand_complex_stats_mv100",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"group",logical_operator:"and",nodes:[i.query,{type:"terminal",service:"text_chem",parameters:{attribute:"chem_comp.formula_weight",operator:"range",value:{from:100,to:300,include_lower:!0,include_upper:!0}}}]}},{request_info:{query_id:"ligand_complex_stats_mv300",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"group",logical_operator:"and",nodes:[i.query,{type:"terminal",service:"text_chem",parameters:{attribute:"chem_comp.formula_weight",operator:"range",value:{from:300,to:500,include_lower:!0,include_upper:!0}}}]}},{request_info:{query_id:"ligand_complex_stats_mv500",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"group",logical_operator:"and",nodes:[i.query,{type:"terminal",service:"text_chem",parameters:{attribute:"chem_comp.formula_weight",operator:"range",value:{from:500,to:1200,include_lower:!0,include_upper:!0}}}]}},{request_info:{query_id:"ligand_complex_stats_loi",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_nonpolymer_entity_annotation.comp_id",operator:"exists"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_nonpolymer_entity_annotation.type",operator:"exact_match",value:"SUBJECT_OF_INVESTIGATION"}}]}},{request_info:{query_id:"ligand_complex_stats_bird",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"terminal",service:"text_chem",parameters:{attribute:"pdbx_reference_molecule.prd_id",operator:"exists"}}},{request_info:{query_id:"ligand_complex_stats_branched_entities",src:"ui"},return_type:"entry",request_options:{results_content_type:["experimental"]},query:{type:"terminal",service:"text",parameters:{attribute:"pdbx_entity_branch.type",operator:"exact_match",value:"oligosaccharide"}}}],s=["any non-polymer small molecules","non-polymer small molecules of 100-300 Da","non-polymer small molecules of 300-500 Da","non-polymer small molecules of 500-1200 Da","author-designated Ligand/s of Interest","a biologically interesting short oligomer or oligomer-like BIRD molecules","with branched entities of oligosaccharides"],u={request_options:{paginate:{start:0,rows:0},results_content_type:["experimental"],facets:[{filter:{type:"terminal",service:"text",parameters:{attribute:"exptl.method",operator:"exact_match",value:"ELECTRON MICROSCOPY"}},facets:[{filter:{type:"terminal",service:"text",parameters:{attribute:"pdbx_database_related.content_type",operator:"exact_match",value:"associated EM volume"}},facets:[{filter:{type:"terminal",service:"text",parameters:{attribute:"pdbx_database_related.db_name",operator:"exact_match",value:"EMDB"}},facets:[{name:"pdbx_database_related.db_id",aggregation_type:"cardinality",attribute:"pdbx_database_related.db_id"}]}]}]}]},return_type:"entry"},p={query:{type:"group",logical_operator:"and",nodes:[{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{operator:"exact_match",value:"ELECTRON MICROSCOPY",attribute:"exptl.method"}},{type:"terminal",service:"text",parameters:{operator:"exact_match",value:"EMDB",attribute:"pdbx_database_related.db_name"}},{type:"terminal",service:"text",parameters:{operator:"exact_match",value:"associated EM volume",attribute:"pdbx_database_related.content_type"}}]}]},return_type:"entry",request_options:{results_content_type:["experimental"]}},m=[{key:"exptl-data-counts-info",title:"Experimental Data Counts Info",description:"Experimental Data Counts Info Description",return_type:"entry",facets:[{name:"rcsb_repository_holdings_current.repository_content_types",aggregation_type:"terms",attribute:"rcsb_repository_holdings_current.repository_content_types"}]}],d=e=>{const t={type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_repository_holdings_current.repository_content_types",operator:"exact_match",value:e}}]},r={};return r.query=t,r.return_type="entry",r.request_info={src:"ui",query_id:"stats"},encodeURIComponent(JSON.stringify(r))},y={return_type:"entry",request_options:{facets:[{name:"rcsb_entry_info.experimental_method",aggregation_type:"terms",attribute:"rcsb_entry_info.experimental_method",facets:[{name:"rcsb_entry_info.selected_polymer_entity_types",aggregation_type:"terms",attribute:"rcsb_entry_info.selected_polymer_entity_types"}]}],paginate:{start:0,rows:0}}};function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,l,o,i=[],c=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=l.call(r)).done)&&(i.push(a.value),i.length!==t);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(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)?h(e,t):void 0}}(e,t)||function(){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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}const f=e=>e instanceof Error?e.message:String(e);var b,g=r(6637);function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}const x=["Protein (only)","Protein/Oligosaccharide","Protein/NA","Nucleic acid (only)","Other","Oligosaccharide (only)"],E=n.Ay.h1(b||(w=["\n display: block;\n font-size: 18px;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n font-weight: bold;\n color: #333;\n padding-top: 0;\n padding-bottom: 15px;\n text-align: start;\n margin-top: -2px;\n margin-bottom: 0;\n"],N||(N=w.slice(0)),b=Object.freeze(Object.defineProperties(w,{raw:{value:Object.freeze(N)}}))));var w,N;const S=e=>{let t=e.count,r=void 0===t?3:t;return a.createElement(a.Fragment,null,Array.from({length:r},(e,t)=>a.createElement(g.kD,{key:"summary-loading-row-".concat(t)})))},q=()=>{const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;const t=(0,l.t)().settings,r=_((0,a.useState)([]),2),n=r[0],i=r[1],h=_((0,a.useState)([]),2),b=h[0],g=h[1],v=_((0,a.useState)(null),2),x=v[0],E=v[1],w=_((0,a.useState)([]),2),N=w[0],S=w[1],q=_((0,a.useState)(!0),2),M=q[0],U=q[1],I=_((0,a.useState)(null),2),D=I[0],C=I[1];return(0,a.useEffect)(()=>{let r=!1;return(async()=>{const a=Math.max(1,Math.floor(Number.isFinite(e)?e:3)),n=new Array(c.length);let l,_,h=null,b=null;const v=()=>{b&&!r&&g(((e,t)=>{const r=[];return e.forEach(e=>{"structure factors"===e.label?r.push({label:"have a structure factor file",population:e.population,searchUrl:d(e.label)}):"NMR restraints V1"===e.label?r.push({label:"have an NMR restraint file",population:e.population,searchUrl:d(e.label)}):"NMR chemical shifts"===e.label?r.push({label:"have a chemical shifts file",population:e.population,searchUrl:d(e.label)}):"Combined NMR data (NEF)"===e.label&&r.push({label:"have NMR unified data files (NEF and/or NMR-STAR format files)",population:e.population,searchUrl:d(e.label)})}),t&&r.push({label:t.label,population:t.population,searchUrl:encodeURIComponent(JSON.stringify(t.searchUrl))}),r})(b,null!=h?h:void 0))},x=()=>{void 0===l||void 0===_||r||(h={label:"".concat(_.toLocaleString("en-US")," 3DEM maps were used for the determination of "),population:l,searchUrl:p},E(h),v())},w=m[0],N={return_type:w.return_type||"entry",request_options:{paginate:{rows:0},facets:w.facets}},q=y,M=c.map((e,a)=>({label:s[a],run:async()=>{var l;const c=await o(e,t);r||(n[a]={label:s[a],population:Number(null!==(l=c.total_count)&&void 0!==l?l:0),searchUrl:e},i(n.filter(Boolean)))}})),I=[{label:"experimental data counts",run:async()=>{var e,a;const n=await o(N,t);r||(b=null!==(e=null==n||null===(a=n.facets)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.buckets)&&void 0!==e?e:[],v())}},{label:"summary holdings data",run:async()=>{var e,a;const n=await o(q,t);if(r)return;const l=null!==(e=null==n||null===(a=n.facets)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.buckets)&&void 0!==e?e:[];S(l)}},M[0],{label:"EMDB-associated PDB structures",run:async()=>{var e;const a=await o(p,t);r||(l=Number(null!==(e=a.total_count)&&void 0!==e?e:0),x())}},{label:"unique 3DEM maps",run:async()=>{var e,a;const n=await o(u,t);r||(_=Number(null!==(e=null==n||null===(a=n.facets)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.value)&&void 0!==e?e:0),x())}},...M.slice(1)].filter(e=>Boolean(e));let D=I.length;U(!0),C(null),i([]),g([]),E(null),await(async()=>{let e=0;const t=Math.min(a,I.length);if(0===t)return void U(!1);const n=Array.from({length:t},async()=>{for(;!r;){const t=e;e+=1;const a=I[t];if(!a)return;try{await a.run()}catch(e){r||C(t=>{const r="".concat(a.label,": ").concat(f(e));return t?"".concat(t,"; ").concat(r):r})}finally{r||(D-=1,0===D&&U(!1))}}});await Promise.all(n)})()})().catch(e=>{r||(C(f(e)),U(!1))}),()=>{r=!0}},[t,e]),{ligandInfo:n,exptlInfo:b,emCounts:x,holdingsChartData:N,loading:M,error:D}}(3),t=e.ligandInfo,r=e.exptlInfo,n=e.emCounts,i=e.holdingsChartData,h=e.loading,b=e.error,g=e=>encodeURIComponent(JSON.stringify(e||{})),w=Boolean(n),N=w?r.slice(0,Math.max(0,r.length-1)):r,q=w?r[r.length-1]:null,M=Math.max(0,c.length-t.length),U=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,l,o,i=[],c=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=l.call(r)).done)&&(i.push(a.value),i.length!==t);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)({columnIndex:1,direction:"desc"}),2),I=U[0],D=U[1],C=(e,t)=>({type:"terminal",service:"text",parameters:{attribute:e,operator:"exact_match",value:t}}),T=e=>"/search?request=".concat(g((e=>({query:1===e.length?e[0]:{type:"group",logical_operator:"and",nodes:e},return_type:"entry",request_info:{src:"ui",query_id:"stats"}}))(e))),O=e=>{D(t=>t.columnIndex===e?{columnIndex:e,direction:"desc"===t.direction?"asc":"desc"}:{columnIndex:e,direction:"desc"})},A=(0,a.useMemo)(()=>{const e=x.map(e=>{const t=i.map(t=>((e,t)=>{var r,a,n;const l=(null!==(r=null==e||null===(a=e.facets)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.buckets)&&void 0!==r?r:[]).find(e=>e.label===t);return l?Number(null!==(n=l.population)&&void 0!==n?n:0):0})(t,e));return{molecularType:e,rowCounts:t,rowTotal:t.reduce((e,t)=>e+t,0)}}),t=I.columnIndex;return 0===t?[...e].sort((e,t)=>e.molecularType<t.molecularType?"asc"===I.direction?-1:1:e.molecularType>t.molecularType?"asc"===I.direction?1:-1:0):[...e].sort((e,r)=>{var a,n;const l=null!==(a=e.rowCounts[t-1])&&void 0!==a?a:0,o=null!==(n=r.rowCounts[t-1])&&void 0!==n?n:0;return"asc"===I.direction?l-o:o-l})},[i,I]);return a.createElement("div",null,a.createElement(E,null,"PDB Data Distribution Summary"),b&&a.createElement("p",{style:{color:"red"}},b),a.createElement("div",{className:"table-responsive"},a.createElement("table",{className:"table table-condensed table-bordered dt-responsive nowrap",cellSpacing:0,width:"100%"},a.createElement("thead",null,a.createElement("tr",{className:"light-gray"},a.createElement("th",{onClick:()=>O(0),style:{cursor:"pointer"}},"Molecular Type",0===I.columnIndex?"desc"===I.direction?" ▼":" ▲":""),i.map((e,t)=>a.createElement("th",{key:t,className:"text-end",onClick:()=>O(t+1),style:{cursor:"pointer"}},e.label,I.columnIndex===t+1?"desc"===I.direction?" ▼":" ▲":"")),a.createElement("th",{className:"fw-bold text-end"},"Total"))),a.createElement("tbody",null,A.map(e=>{return a.createElement("tr",{key:e.molecularType},a.createElement("td",null,e.molecularType),e.rowCounts.map((t,r)=>{return a.createElement("td",{key:"".concat(e.molecularType,"-").concat(r),className:"text-end"},t>0?a.createElement("a",{href:(n=i[r].label,l=e.molecularType,T([C("rcsb_entry_info.experimental_method",n),C("rcsb_entry_info.selected_polymer_entity_types",l)]))},t.toLocaleString("en-US")):0);var n,l}),a.createElement("td",{className:"text-end"},a.createElement("a",{href:(t=e.molecularType,T([C("rcsb_entry_info.selected_polymer_entity_types",t)]))},e.rowTotal.toLocaleString("en-US"))));var t})),a.createElement("tfoot",null,a.createElement("tr",{className:"table-light fw-bold"},a.createElement("th",{scope:"row"},"Total"),i.map((e,t)=>{var r,n;return a.createElement("td",{key:t,className:"text-end"},a.createElement("a",{href:(n=e.label,T([C("rcsb_entry_info.experimental_method",n)]))},Number(null!==(r=e.population)&&void 0!==r?r:0).toLocaleString("en-US")))}),a.createElement("td",{className:"text-end"},i.reduce((e,t)=>{var r;return e+Number(null!==(r=t.population)&&void 0!==r?r:0)},0).toLocaleString("en-US")))))),a.createElement("div",{className:"row",style:{marginTop:"10px"}},a.createElement("div",{className:"col-lg-12 col-md-12 col-sm-12"},a.createElement("p",null,a.createElement("strong",null,"Multiple Methods:")," Atomic structures substantially underpinned by more than one experimental method currently supported by the PDB archive (NMR, 3DEM, or crystallography/diffraction) with or without some additional data provided by currently unsupported methods."),a.createElement("p",null,a.createElement("strong",null,"Integrative Methods:")," Atomic structures with all data coming from currently unsupported methods by the PDB, or only partially underpinned by an experimental method currently supported by the PDB, or partially/entirely non-atomic structures supported by the PDB-IHM."))),a.createElement("div",{className:"row"},a.createElement("div",{className:"col-lg-6 col-md-6 col-sm-12"},a.createElement("h4",null,"PDB Structures with Experimental Data"),a.createElement("div",{className:"list-group"},r&&r.length>0?a.createElement(a.Fragment,null,N.map((e,t)=>a.createElement("div",{key:t},a.createElement("div",null,a.createElement("a",{href:"/search?request=".concat("string"==typeof e.searchUrl?e.searchUrl:g(e.searchUrl))},Number(e.population).toLocaleString("en-US"))),a.createElement("div",null,e.label))),q&&a.createElement("div",null,q.label,a.createElement("a",{href:"/search?request=".concat("string"==typeof q.searchUrl?q.searchUrl:g(q.searchUrl))},Number(q.population).toLocaleString("en-US"))," PDB structures"),h&&!q&&a.createElement(S,{count:1})):h?a.createElement(S,null):a.createElement("div",null,"No experimental data counts available."))),a.createElement("div",{className:"col-lg-6 col-md-6 col-sm-12"},a.createElement("h4",null,"PDB Structures with Small Molecule Data"),a.createElement("div",{className:"list-group"},t&&t.length>0?a.createElement(a.Fragment,null,t.map((e,t)=>a.createElement("div",{key:t},a.createElement("div",null,a.createElement("a",{href:"/search?request=".concat("string"==typeof e.searchUrl?e.searchUrl:g(e.searchUrl))},Number(e.population).toLocaleString("en-US"))),a.createElement("div",null,e.label))),h&&M>0&&a.createElement(S,{count:Math.min(3,M)})):h?a.createElement(S,null):a.createElement("div",null,"No ligand data available.")))))}}}]);