1"use strict";(self.webpackChunkcov_spectrum_website=self.webpackChunkcov_spectrum_website||[]).push([[34],{34:(e,s,a)=>{a.r(s),a.d(s,{default:()=>i});var c=a(579),t=a(5043),r=a(9062),n=a(1908),o=a(4018);const l=(0,r.m)()({dialogContent:{width:"40em"}}),i=(0,r.o)((function(e){let{model:s,handleClose:a}=e;const{classes:i}=l(),[d,h]=(0,t.useState)(""),[u,p]=(0,t.useState)(!0),[x,C]=(0,t.useState)(!0),[g,k]=(0,t.useState)(!0);let m;try{new RegExp(d)}catch(j){m=j}return(0,c.jsxs)(r.a.Dialog,{maxWidth:"xl",open:!0,onClose:a,title:"Sequence search",children:[(0,c.jsxs)(r.D,{className:i.dialogContent,children:[(0,c.jsx)(r.T,{children:"Supply a sequence to search for. A track will be created with the resulting matches once submitted. You can also supply regex style expressions e.g. AACT(C|T)."}),(0,c.jsx)(r.c,{value:d,onChange:e=>{h(e.target.value)},helperText:"Sequence search pattern"}),(0,c.jsxs)(r.F,{children:[(0,c.jsx)(n.F,{control:(0,c.jsx)(o.C,{checked:u,onChange:e=>{p(e.target.checked)}}),label:"Search forward strand"}),(0,c.jsx)(n.F,{control:(0,c.jsx)(o.C,{checked:x,onChange:e=>{C(e.target.checked)}}),label:"Search reverse strand"}),(0,c.jsx)(n.F,{control:(0,c.jsx)(o.C,{checked:g,onChange:e=>{k(e.target.checked)}}),label:"Case insensitive"})]}),m?(0,c.jsx)(r.T,{color:"error",children:`${m}`}):null]}),(0,c.jsxs)(r.d,{children:[(0,c.jsx)(r.B,{onClick:()=>{var e;if(d){const a="sequence_search_"+ +Date.now(),c=r.u.getSession(s),{assemblyManager:t}=c,n=s.assemblyNames[0];r.u.isSessionWithAddTracks(c)&&(c.addTrackConf({trackId:a,name:`Sequence search ${d}`,assemblyNames:[n],type:"FeatureTrack",adapter:{type:"SequenceSearchAdapter",search:d,searchForward:u,searchReverse:x,caseInsensitive:g,sequenceAdapter
1:(0,r.e)(null===(e=t.get(n))||void 0===e?void 0:e.configuration.sequence.adapter)}}),s.showTrack(a))}a()},variant:"contained",color:"primary",children:"Submit"}),(0,c.jsx)(r.B,{onClick:()=>{a()},variant:"contained",color:"secondary",children:"Close"})]})]})}))}}]); 2//# sourceMappingURL=34.0862d281.chunk.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.