PageSourceSearch

https://www.refine.bio/_next/static/chunks/632-9324e0c6ae6522ec.js

js refine.bio collected 2026-09-24 19:38:14 UTC 21,776 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[632],{420:function(e,t,n){n.d(t,{I:function(){return D}});var a=n(9499),r=n(29),i=n(7794),s=n.n(i),l=n(7294),o=n(1163),c=n(2580),d=n(975),m=n(9019),u=n(9858),x=n(253),p=n(7084),h=n(6432),g=n(6034),f=n(367),j=n(8087),b=n(9521),v=n(1464),y=n(5893),w=(0,b.default)(h.z).withConfig({displayName:"AdvancedOptionsToggle__Button",componentId:"sc-bhgg0i-0"})(["",""],function(e){var t=e.theme;return(0,b.css)(["&:hover,&:focus{border:1px solid ",";box-shadow:none;outline:none;}"],t.global.colors.brand)}),S=function(e){var t=e.toggle,n=e.setToggle,a=(0,x.F)().setResponsive;return(0,y.jsx)(d.x,{margin:{top:a("small","none")},onClick:function(){return n(!t)},children:(0,y.jsxs)(d.x,{align:"center",direction:"row",children:[(0,y.jsx)(w,{"aria-controls":"nav-menu","aria-expanded":t,"aria-haspopup":"true",color:"brand",gap:"none",label:"Advanced Options",margin:{left:a("none","medium"),right:"xsmall"},style:{padding:"0"}}),(0,y.jsx)(j.x,{color:"brand",children:(0,y.jsx)(v.J,{name:t?"ChevronDown":"ChevronUp",size:"xsmall"})})]})})},_=n(5195),k=n(3563);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var D=function(e){var t,n,i,j=e.dataset,b=e.buttonLabel,v=void 0===b?"Download":b,w=e.onOptionsChange,O=void 0===w?null:w,D=(0,o.useRouter)().push,Z=(0,u.x)(),C=Z.createDataset,R=Z.updateDataset,F=(0,x.F)().setResponsive,P=(0,l.useState)(j.quantile_normalize),E=P[0],I=P[1],T=(t=(0,r.Z)(s().mark(function e(t){var n,a,r;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=z(z({},j),t),e.t0=R,!O){e.next=8;break}return e.next=5,C();case 5:e.t1=e.sent,e.next=9;break;case 8:e.t1=j.id;case 9:return e.t2=e.t1,e.t3=n,e.next=13,(0,e.t0)(e.t2,e.t3);case 13:a=e.sent,r=O?"/dataset/".concat(a.id):"/download",O&&p.Z.trackRegeneratedDataset(j,a),D({pathname:r,query:{start:!0}},r);case 17:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),X=(n=(0,r.Z)(s().mark(function e(t,n){var r;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(0,a.Z)({},t,n),!O){e.next=5;break}O(r),e.next=7;break;case 5:return e.next=7,R(j.id,z(z({},j),r));case 7:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)});return(0,y.jsx)(d.x,{border:{side:"bottom"},children:j&&(0,y.jsx)(c.J9,{initialValues:{aggregate_by:j.aggregate_by,data:j.data,scale_by:j.scale_by,quantile_normalize:j.quantile_normalize},onSubmit:(i=(0,r.Z)(s().mark(function e(t,n){var a;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.setSubmitting,e.next=3,T(t);case 3:a(!1);case 4:case"end":return e.stop()}},e)})),function(e,t){return i.apply(this,arguments)}),children:function(e){var t=e.handleChange,n=e.handleSubmit,a=e.isSubmitting,r=e.values;return(0,y.jsx)(m.l,{onSubmit:n,children:(0,y.jsxs)(g.X,{direction:F("column","column","row"),children:[(0,y.jsxs)(d.x,{children:[(0,y.jsxs)(g.X,{align:F("start","center"),justify:"start",children:[(0,y.jsx)(_.Q,{value:r.aggregate_by,handleChange:t,handleUpdateDownloadOptions:X}),(0,y.jsx)(k.T,{value:r.scale_by,handleChange:t,handleUpdateDownloadOptions:X}),(0,y.jsx)(d.x,{margin:{top:F("xsmall","none"),left:F("none","xsmall")},children:(0,y.jsx)(S,{toggle:E,setToggle:I})})]}),(0,y.jsx)(f.F,{id:j.id,values:r,toggle:!E,handleChange:t,handleUpdateDownloadOptions:X})]}),(0,y.jsx)(h.z,{label:v,isLoading:a,primary:!0,responsive:!0,margin:{bottom:F("small","small","none")},type:"submit"})]})})}})})}},3140:function(e,t,n){n.d(t,{E:function(){return k}});var a=n(7294),r=n(7670),i=n(975),s=n(8087),l=n(253),o=n(9419),c=n(441),d=n(3471),m=function(e){var t=(0,d.Z)(e.aggregate_by),n=Object.keys(e.data).length,a=Object.keys(e.organism_samples).length,r="Experiment"===t?n:a;return{files:[{title:"".concat(r," Gene Expression Matrices"),description:"1 file per ".concat(t),format:"tsv"},{title:"".concat(r," Sample Metadata Files"),description:"1 file per ".concat(t),format:"tsv"},{title:"1 ".concat(t," Metadata File"),description:"1 file per download",format:"json"}]}},u=n(4784),x=n(3586),p=n(9499),h=n(6432),g=n(420),f=n(4794),j=n(5893);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(n),!0).forEach(function(t){(0,p.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var y=function(e){var t=e.dataset,n=e.regeneratedDataset,r=e.setRegeneratedDataset,l=(0,a.useState)(!1),o=l[0],c=l[1];return(0,j.jsxs)(i.x,{margin:{bottom:"small"},children:[!o&&(0,j.jsxs)(i.x,{direction:"row",gap:"xlarge",children:[(0,j.jsxs)(s.x,{weight:"bold",children:["Aggregate by: ",(0,d.Z)(t.aggregate_by)]}),(0,j.jsxs)(s.x,{weight:"bold",children:["Transformation: ",(0,d.Z)(t.scale_by)]}),!t.quantile_normalize&&(0,j.jsx)(s.x,{weight:"bold",children:"Quantile Normalization Skipped for RNA-seq samples"}),(0,j.jsx)(s.x,{weight:"bold",children:(0,j.jsx)(h.z,{label:"Change",link:!0,linkFontSize:"16px",onClick:function(){return c(!0)}})})]}),n&&(0,j.jsx)(f.P,{duration:"1.2s",expand:o,children:(0,j.jsx)(g.I,{dataset:n,buttonLabel:"Regenerate Dataset",onOptionsChange:function(e){r(function(t){return v(v({},t),e)})}})})]})},w=n(8925),S=n(6034),_=function(e){var t=e.description,n=e.format,a=e.index,o=e.title,c=(0,l.F)().setResponsive;return(0,j.jsxs)(x.s,{align:"center",background:"white",elevation:"medium",pad:"medium",margin:{left:a?c("none","none","large"):"none",bottom:c("large","large","none")},children:[(0,j.jsx)(r.X,{level:5,margin:{bottom:"small"},responsive:!1,children:o}),(0,j.jsxs)(i.x,{direction:"row",justify:"between",fill:!0,children:[(0,j.jsx)(s.x,{children:t}),(0,j.jsxs)(s.x,{children:["Format: ",n]})]})]})},k=function(e){var t=e.dataset,n=(0,l.F)().setResponsive,s=(0,c.Z)(t).isProcessed,d=(0,a.useState)(s?t:null),x=d[0],p=d[1],h=m(x||t);return(0,j.jsxs)(i.x,{margin:{top:"large"},children:[(0,j.jsx)(r.X,{level:2,margin:{bottom:"small"},children:"Download Files Summary"}),s&&(0,j.jsx)(y,{dataset:t,regeneratedDataset:x,setRegeneratedDataset:p}),(0,j.jsx)(S.X,{direction:n("column","column","row"),margin:{bottom:"medium"},children:h.files.map(function(e,t){return(0,j.jsx)(_,{description:e.description,format:e.format,index:t,title:e.title},e.title)})}),(0,j.jsx)(w.g,{label:(0,j.jsxs)(j.Fragment,{children:["All data you download from refine.bio has been uniformly processed and normalized."," ",(0,j.jsx)(u.e,{href:o.Ok.refinebio_docs_standard_pipeline,label:"Learn More",rel:"noopener noreferrer",target:"_blank"})]}),fontSize:"medium",margin:{right:"xsmall",bottom:n("xsmall","none")}})]})}},427:function(e,t,n){n.d(t,{w:function(){return X}});var a=n(7294),r=n(975),i=n(7670),s=n(9213),l=n(6184),o=n(253),c=n(8087),d=n(932),m=n(9858),u=n(3639),x=n(1311),p=n(9838),h=n.n(p),g=n(4784),f=n(6432),j=n(2454),b=n(5893),v=function(e){var t=e.text;return(0,b.jsx)(c.x,{size:"inherit",style:{textTransform:"capitalize"},children:t})},y=n(2725),w=n(9247),S=function(e){var t=e.dataset,n=e.modalTitle,a=e.isImmutable,s=(0,o.F)().setResponsive,l=(0,j.d)().openModal,c="view-samples-".concat(t.id,"-").concat(n);return(0,b.jsx)(y.u,{id:c,button:(0,b.jsx)(f.z,{label:"View Samples",secondary:!0,responsive:!0,onClick:function(){return l(c)}}),modalView:!0,fullHeight:!0,height:"98.8vh",width:"99.2vw",children:(0,b.jsxs)(r.x,{pad:{horizontal:s("small","medium","large")},children:[(0,b.jsx)(r.x,{margin:{bottom:"medium"},children:(0,b.jsxs)(i.X,{level:2,size:"small",children:["My Dataset - ",(0,b.jsx)(v,{text:n})," Samples"]})}),(0,b.jsx)(w.P,{dataset:t,modalView:!0,isImmutable:a})]})})},_=n(8962),k=n(8207),O=n(6034),z=n(1640),D=function(e){var t=e.dataset,n=e.experiment,a=e.isImmutable,s=(0,m.x)(),l=s.loading,p=s.formatSampleMetadata,j=s.removeExperiment,v=(0,o.F)().setResponsive,y=function(e){j(e,!0)},w=n.accession_code,D=t.data[w];return(0,b.jsx)(d.z,{query:{dataset_id:t.id,experiment_accession_code:w},children:(0,b.jsxs)(r.x,{animation:{type:"fadeIn",duration:800},children:[(0,b.jsxs)(r.x,{margin:{bottom:"xsmall"},width:{max:"640px"},children:[(0,b.jsx)(i.X,{level:5,responsive:!1,weight:"700",children:(0,b.jsx)(g.e,{href:"/experiments/".concat(w,"/").concat(h()(n.title)),label:n.title})}),"RNA-SEQ"===n.technology&&!t.quantile_normalize&&(0,b.jsx)(r.x,{margin:{vertical:"xsmall"},children:(0,b.jsx)(k.D,{label:"Quantile Normalization will be skipped",status:"info"})})]}),(0,b.jsxs)(O.X,{children:[(0,b.jsxs)(r.x,{children:[(0,b.jsxs)(r.x,{direction:v("column","column","row"),gap:v("small","small","xlarge"),margin:{top:v("xsmall","none")}
1,children:[(0,b.jsx)(_.G,{name:"Accession",label:w,size:"medium"}),(0,b.jsx)(_.G,{label:"".concat((0,u.Z)(D.length)," Downloadable ").concat(D.length>1?"Samples":"Sample"),name:"Samples",size:"medium"}),(0,b.jsx)(_.G,{label:n.organism_names.map(function(e){return(0,x.Z)(e)}).join(", "),name:"Organism",size:"medium"})]}),(0,b.jsxs)(r.x,{margin:{top:"large",bottom:"medium"},children:[(0,b.jsx)(i.X,{level:5,responsive:!1,weight:"500",children:"Sample Metadata Fields"}),(0,b.jsx)(r.x,{direction:"row",margin:{top:"xsmall"},children:n.sample_metadata.length>0?(0,b.jsx)(c.x,{children:p(n.sample_metadata).join(", ")}):(0,b.jsx)(z.M,{text:"No sample metadata fields"})})]}),D.length>0&&(0,b.jsx)(S,{dataset:t,modalTitle:w,isImmutable:a})]}),!a&&(0,b.jsx)(f.z,{isLoading:l,label:"Remove",margin:{top:v("small","none")},responsive:!0,tertiary:!0,onClick:function(){return y([w])}})]})]})})},Z=n(7812),C=n(1992),R=function(e){var t=e.dataset,n=e.defaultOption,a=e.organism,i=e.setOrganism,s=(0,o.F)().setResponsive,l=[n].concat((0,Z.Z)(Object.keys(t.organism_samples).map(function(e){return{label:(0,x.Z)(e),value:e}})));return(0,b.jsxs)(r.x,{direction:"row",margin:{bottom:"small",horizontal:s("none","small")},children:[(0,b.jsx)(c.x,{margin:{right:"small"},children:"Show"}),(0,b.jsx)(C.S,{direction:"row",options:l,name:"organism-filter",value:a,onChange:function(e){return i(e.target.value)}})]})},F=function(e){var t=e.dataset,n=e.isImmutable,i={label:"All Speciess",value:"ALL"},s=(0,a.useState)(i.value),l=s[0],o=s[1],c=t.experiments.filter(function(e){return l===i.value||e.organism_names.includes(l)});return(0,a.useEffect)(function(){o(i.value)},[t]),(0,b.jsxs)(b.Fragment,{children:[Object.keys(t.organism_samples).length>1&&(0,b.jsx)(R,{dataset:t,defaultOption:i,organism:l,setOrganism:o}),(0,b.jsx)(r.x,{elevation:"medium",pad:"medium",children:c.map(function(e,a,i){return(0,b.jsx)(r.x,{margin:{bottom:a!==i.length-1?"small":"0"},pad:{bottom:a!==i.length-1?"small":"0"},border:{color:"gray-shade-40",side:"bottom",style:"solid",size:a!==i.length-1?"1px":"none"},children:(0,b.jsx)(D,{dataset:t,experiment:e,isImmutable:n})},e.accession_code)})})]})},P=function(e){var t=e.dataset,n=e.organismName,a=e.isImmutable,s=(0,m.x)(),l=s.loading,p=s.removeSamples,h=(0,o.F)().setResponsive,g=t.organism_samples[n].length,j=(0,u.Z)(g),y=t.experiments.filter(function(e){return e.organism_names.includes(n)}),w=y.some(function(e){return"RNA-SEQ"===e.technology}),_=y.reduce(function(e,n){var a=n.accession_code;return t.data[a]&&(e[a]=t.data[a]),e},{});return(0,b.jsx)(d.z,{query:{dataset_id:t.id,organism__name:n},children:(0,b.jsxs)(r.x,{animation:{type:"fadeIn",duration:800},children:[(0,b.jsx)(i.X,{level:2,children:(0,b.jsx)(v,{text:(0,b.jsxs)(b.Fragment,{children:[(0,x.Z)(n)," Samples"]})})}),w&&!t.quantile_normalize&&(0,b.jsx)(r.x,{margin:{top:"small"},children:(0,b.jsx)(k.D,{label:"Quantile Normalization will be skipped for RNA-seq samples",status:"info"})}),(0,b.jsxs)(O.X,{margin:{top:"small"},children:[(0,b.jsxs)(r.x,{children:[(0,b.jsxs)(c.x,{margin:{bottom:"small"},children:[j," ",g>1?"Samples":"Sample"]}),(0,b.jsx)(S,{dataset:t,modalTitle:(0,x.Z)(n),isImmutable:a,isSpeciesView:!0})]}),!a&&(0,b.jsx)(f.z,{isLoading:l,label:"Remove",margin:{top:h("small","none")},responsive:!0,tertiary:!0,onClick:function(){return p(_,!0)}})]})]})})},E=function(e){var t=e.dataset,n=e.isImmutable,a=Object.keys(t.organism_samples);return(0,b.jsx)(r.x,{elevation:"medium",pad:"medium",children:a.map(function(e,a,i){return(0,b.jsx)(r.x,{margin:{bottom:a!==i.length-1?"small":"0"},pad:{bottom:a!==i.length-1?"small":"0"},border:{color:"gray-shade-40",side:"bottom",style:"solid",size:a!==i.length-1?"1px":"none"},children:(0,b.jsx)(P,{dataset:t,organismName:e,isImmutable:n})},e)})})},I=n(7084),T=function(){var e=(0,m.x)(),t=e.loading,n=e.clearDataset,a=(0,j.d)(),s=a.closeModal,l=a.openModal,c=(0,o.F)().setResponsive,d="remove-all";return(0,b.jsx)(y.u,{id:d,button:(0,b.jsx)(f.z,{isLoading:t,label:"Remove All",tertiary:!0,responsive:!0,onClick:function(){return l(d)}}),fullHeight:!1,children:(0,b.jsxs)(r.x,{pad:{bottom:"small",horizontal:"large"},children:[(0,b.jsx)(r.x,{width:{max:c("none","none","450px")},margin:{bottom:"medium"},children:(0,b.jsx)(i.X,{level:1,children:"Are you sure you want to remove all samples?"})}),(0,b.jsxs)(O.X,{gap:"small",children:[(0,b.jsx)(f.z,{label:"Yes, remove all samples",tertiary:!0,responsive:!0,onClick:function(){n(),s(d),I.Z.trackDatasetAction("RemoveAllButton")}}),(0,b.jsx)(f.z,{label:"No, keep all samples",secondary:!0,responsive:!0,onClick:function(){return s(d)}})]})]})})},X=function(e){var t=e.dataset,n=e.isImmutable,c=(0,o.F)().setResponsive,d=(0,a.useState)(0),m=d[0],u=d[1],x=[{label:"Species View",component:(0,b.jsx)(E,{dataset:t,isImmutable:n})},{label:"Experiment View",component:(0,b.jsx)(F,{dataset:t,isImmutable:n})}];return(0,b.jsxs)(r.x,{margin:{top:"large"},children:[(0,b.jsxs)(O.X,{margin:{bottom:c("medium","none")},children:[(0,b.jsx)(i.X,{level:2,margin:{bottom:"small"},children:"Samples"}),!n&&(0,b.jsx)(T,{})]}),(0,b.jsx)(r.x,{margin:{bottom:"medium"},children:(0,b.jsx)(s.m,{activeIndex:m,justify:"start",onActive:function(e){return u(e)},children:x.map(function(e){return(0,b.jsx)(l.O,{title:e.label,children:(0,b.jsx)(r.x,{pad:{top:"small"},children:e.component})},e.label)})})})]})}},8853:function(e,t,n){n.d(t,{o:function(){return Z}});var a=n(975),r=n(7670),i=n(3121),s=n(4730),l=n(29),o=n(7794),c=n.n(o),d=n(7294),m=n(9332),u=n(2580),x=n(9019),p=n(7084),h=n(9419),g=n(9858),f=n(156),j=n(253),b=n(7276),v=n(6432),y=n(3586),w=n(939),S=n(4018),_=n(6034),k=n(8970),O=n(5893),z=["terms"],D=function(e){var t,n,r=e.dataset,i=(0,j.F)().setResponsive,o=(0,m.useRouter)().push,D=(0,g.x)(),Z=D.email,C=D.startProcessingDataset,R=(0,f.r)(),F=R.acceptedTerms,P=R.setA
1cceptedTerms,E=h.Kk.DatasetStartProcessingFormSchema,I=(0,d.useState)(null),T=I[0],X=I[1],A=(t=(0,l.Z)(c().mark(function e(){var t,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!T.email_ccdl_ok){e.next=5;break}return e.next=3,(0,b.Z)(T.email_address);case 3:"error"!==e.sent.status&&p.Z.trackEmailSubscription("DatasetStartProcessingForm");case 5:return e.next=7,C(T,r.id);case 7:t=e.sent.id,o({pathname:n="/dataset/".concat(t)},n),p.Z.trackDatasetDownloadOptions(r);case 12:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,d.useEffect)(function(){F&&T&&A()},[F,T]),(0,O.jsx)(u.J9,{initialValues:{aggregate_by:r.aggregate_by,data:r.data,scale_by:r.scale_by,quantile_normalize:r.quantile_normalize,email_address:Z||"",email_ccdl_ok:!0,terms:F},validationSchema:E,validateOnChange:!1,onSubmit:(n=(0,l.Z)(c().mark(function e(t,n){var a,r;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=n.setSubmitting,r=t.terms,X((0,s.Z)(t,z)),P(r),a(!1);case 5:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)}),children:function(e){var t=e.errors,n=e.handleChange,r=e.handleSubmit,s=e.isSubmitting,l=e.touched,o=e.values;return(0,O.jsxs)(x.l,{onSubmit:r,children:[(0,O.jsxs)(_.X,{children:[(0,O.jsx)(y.s,{fill:!0,basis:"1",children:(0,O.jsx)(w.f,{error:t.email_address,touched:l.email_address,value:o.email_address,handleChange:n})}),(0,O.jsx)(v.z,{label:"Start Processing",isLoading:s,margin:{left:i("none","small"),top:i("small","none")},primary:!0,responsive:!0,type:"submit"})]}),(0,O.jsxs)(a.x,{margin:{top:"small"},children:[!F&&(0,O.jsx)(k.G,{error:t.terms,touched:l.terms,value:o.terms,handleChange:n}),(0,O.jsx)(S.u,{value:o.email_ccdl_ok,handleChange:n})]})]})}})},Z=function(e){var t=e.dataset;return(0,O.jsxs)(a.x,{align:"center",alignSelf:"center",width:"640px",children:[(0,O.jsx)(r.X,{level:1,margin:{bottom:"medium"},children:"We're almost ready to start putting your download files together!"}),(0,O.jsx)(i.n,{size:"22px",children:"Enter your email and we will send you the download link when your files are ready. It usually takes about 15-20 minutes."}),(0,O.jsx)(a.x,{margin:{top:"medium"},alignSelf:"start",children:(0,O.jsx)(D,{dataset:t})}),(0,O.jsx)(a.x,{margin:{top:"basex8",bottom:"xlarge"},"aria-hidden":!0,background:{image:"url('/illustration-download-start.svg')",position:"center",repeat:"no-repeat",size:"contain"},height:"172px",width:"100%"})]})}},4509:function(e,t,n){n.d(t,{B:function(){return v}});var a=n(7294),r=n(975),i=n(7670),s=n(9462),l=n(2941),o=n(3896),c=n(6839),d=n(310),m=n(8087),u=n(253),x=n(3639),p=n(1311),h=n(3416),g=n(9858),f=n(5893),j=function(e){var t=e.dataset,n=(0,g.x)(),r=n.getTotalExperiments,i=n.getTotalSamples,s=(0,a.useMemo)(function(){return[i(t.data),r(t.data)]},[t.data,i,r]);return(0,f.jsxs)(o.S,{children:[(0,f.jsx)(c.p,{children:"Total"}),s.map(function(e){return(0,f.jsx)(c.p,{children:(0,f.jsx)(m.x,{color:"brand",children:(0,x.Z)(e)})},(0,h.x0)())})]})},b=n(6034),v=function(e){var t=e.dataset,n=(0,u.F)().setResponsive,h=t.experiments,g=t.organism_samples,v=(0,a.useMemo)(function(){return h.map(function(e){return e.organism_names}).flat().reduce(function(e,t){return e[t]=(e[t]||0)+1,e},{})},[h]);return(0,f.jsxs)(r.x,{margin:{top:"large"},children:[(0,f.jsx)(i.X,{level:2,margin:{bottom:"small"},children:"Dataset Summary"}),(0,f.jsx)(b.X,{elevation:"medium",fill:!0,direction:n("column","column","row"),margin:{bottom:"medium"},pad:{horizontal:n("small","medium"),vertical:"xsmall"},children:(0,f.jsxs)(s.i,{children:[(0,f.jsx)(l.x,{style:{fontSize:n("16px","18px")},children:(0,f.jsxs)(o.S,{children:[(0,f.jsx)(c.p,{}),(0,f.jsx)(c.p,{children:"Samples"}),(0,f.jsx)(c.p,{children:"Experiments"})]})}),(0,f.jsxs)(d.R,{style:{fontSize:n("16px","18px")},children:[Object.keys(g).map(function(e){return(0,f.jsxs)(o.S,{children:[(0,f.jsx)(c.p,{children:(0,p.Z)(e)}),(0,f.jsx)(c.p,{children:(0,f.jsx)(m.x,{color:"brand",children:(0,x.Z)(g[e].length)})}),(0,f.jsx)(c.p,{children:(0,f.jsx)(m.x,{color:"brand",children:(0,x.Z)(v[e])})})]},e)}),(0,f.jsx)(j,{dataset:t})]})]})})]})}},9248:function(e,t,n){n.d(t,{m:function(){return y}});var a=n(6835),r=n(7294),i=n(975),s=n(7670),l=n(7084),o=n(2454),c=n(253),d=n(4842),m=n(29),u=n(7794),x=n.n(u),p=function(){var e,t=(0,r.useState)(null),n=t[0],a=t[1];return[n,(e=(0,m.Z)(x().mark(function e(t){var n;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(n=navigator)&&void 0!==n&&n.clipboard){e.next=3;break}return console.warn("Clipboard not supported"),e.abrupt("return",!1);case 3:return e.prev=3,e.next=6,navigator.clipboard.writeText(t);case 6:return a(t),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(3),console.warn("Copy failed",e.t0),a(null),e.abrupt("return",!1);case 15:case"end":return e.stop()}},e,null,[[3,10]])})),function(t){return e.apply(this,arguments)})]},h=n(6806),g=n(6432),f=n(8925),j=n(2725),b=n(3914),v=n(5893),y=function(e){var t=e.dataset,n=(0,o.d)().openModal,m=(0,c.F)().setResponsive,u=(0,d.w)(function(){_(!1)},3e3),x=u.startTimer,y=u.clearTimer,w=(0,r.useState)(!1),S=w[0],_=w[1],k=p(null),O=(0,a.Z)(k,2),z=O[0],D=O[1],Z="shareable-link_".concat(t.id),C="".concat((0,h.Z)(),"/dataset/").concat(t.id,"?ref=share");return(0,r.useEffect)(function(){return x(),function(){return y()}},[S]),(0,v.jsx)(j.u,{id:Z,button:(0,v.jsx)(g.z,{label:"Share Dataset",secondary:!0,responsive:!0,onClick:function(){n(Z)}}),fullHeight:!1,children:(0,v.jsxs)(i.x,{margin:{bottom:"medium"},pad:{bottom:"small",horizontal:"large"},width:"625px",children:[(0,v.jsx)(s.X,{level:1,children:"Shareable Link"}),(0,v.jsx)(i.x,{height:"24px",margin:{vertical:"2px"},children:z&&(0,v.jsx)(i.x,{animation:{type:S?"fadeIn":"fadeOut",duration:300},children:(0,v.jsx)(f.g,{type:"success",label:"Copied to clipboard",iconSize:"medium"})})}),(0,v.jsxs)(i.x,{direction:m("column","row"),gap:"small",children:[(0,v.jsx)(i.x,{flex:{grow:1},children:(0,v.jsx)(b.o,{value:C})}),(0,v.jsx)(i.x,{children:(0,v.jsx)(g.z,{label:"Copy",primary:!0,responsive:!0,onClick:function(){D(C),_(!0),l.Z.trackSharedDataset(t)}})})]})]})})}},4842:function(e,t,n){n.d(t,{w:function(){return r}});var a=n(7294),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,a.useState)(null),r=n[0],i=n[1],s=function(){i(clearTimeout(r))};return(0,a.useEffect)(function(){return function(){return s()}},[]),{startTimer:function(){i(setTimeout(function(){return e()},t))},clearTimer:s}}}}]);

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.