import{j as e,r as s,B as r,F as p,S as l}from"./main-gLMaKCvr.js";import{A as c}from"./index-DUqcjVqJ.js";import{B as g}from"./index-Bv_pEOIo.js";import{T as d}from"./index-ZwmWfN3I.js";import"./index-Ci9o3BMm.js";import"./Table-CWRWFg95.js";import"./addEventListener-BwXlid1p.js";import"./Dropdown-CSp8FTqG.js";import"./index-B-_sZvQI.js";import"./index-Jdu54dr5.js";import"./index-DEhiFitC.js";import"./index-CjYZg4K2.js";import"./index-B__zS0KG.js";import"./index-BrNLqRge.js";import"./index-ByQpjXWK.js";import"./UpOutlined-CEatmWIN.js";import"./index-DDpcHwmR.js";import"./study-page-BLC-2qgz.js";import"./usePagination-DK-N3QaW.js";import"./index-Das8pPKs.js";import"./index-CWqFacgc.js";import"./callSuper-DlyBkZi7.js";import"./index-BpTPZbHm.js";import"./index-D1xRfB3g.js";import"./index-D2XNTdXQ.js";import"./DeleteOutlined-CBRh7405.js";import"./index-B6vjdRJB.js";import"./rgb-BwIoVOhg.js";import"./index-4ifBGcWk.js";const O=()=>e.jsxs(e.Fragment,{children:[e.jsx(d,{items:[{key:"gene_count",label:"gene_count",children:e.jsx(e.Fragment,{children:e.jsx(c,{analysisPipline:"gene_count",inputAnalysisMethod:[{name:"rna_seq",label:"RNA测序文件",inputKey:["V1_single_genome_NGS_RNA"],mode:"multiple"},{name:"genome_assembly",label:"基因组参考文件",inputKey:["ngs-individual-assembly","tgs_individual_assembly"],mode:"single"},{name:"prokka",label:"基因组注释文件",inputKey:["prokka"],mode:"single"}],analysisMethod:[{name:"bowtie2_RNA_mapping",label:"bowtie2_RNA_mapping",inputKey:["bowtie2_RNA_mapping"],mode:"multiple"},{name:"feature_counts_RNA_mapping",label:"feature_counts_RNA_mapping",inputKey:["feature_counts_RNA_mapping"],mode:"multiple"}],analysisType:"sample",children:e.jsx(x,{})})})}]}),e.jsx("p",{})]}),x=({resultTableList:t,plot:n,activeTabKey:o})=>{const[i,_]=s.useState([]);s.useEffect(()=>{if(console.log(t.feature_counts_RNA_mapping),t.feature_counts_RNA_mapping){const m=t.feature_counts_RNA_mapping.map(a=>({label:`${a.sample_key} `,value:`${a.id}`}));_(m)}},[t]);const u=m=>t[m].map(a=>a.content.log);return e.jsxs(e.Fragment,{children:[o=="bowtie2_RNA_mapping"&&e.jsx(e.Fragment,{children:e.jsx(g,{resultTableList:t,plot:n,analysisKey:"bowtie2_RNA_mapping"})}),o=="feature_counts_RNA_mapping"&&e.jsxs(e.Fragment,{children:[e.jsx(r,{type:"primary",onClick:()=>{n({saveAnalysisMethod:"feature_counts_RNA_mapping_stat",moduleName:"feature_counts_stat",params:{log_path_list:u("feature_counts_RNA_mapping")},tableDesc:`
                                `})},children:"基因计数统计"}),e.jsx(r,{type:"primary",onClick:()=>{n({name:"差异表达基因分析",saveAnalysisMethod:"feature_counts_RNA_deg",moduleName:"feature_counts_RNA_deg",params:{},formDom:e.jsxs(e.Fragment,{children:[e.jsx(p.Item,{label:"选择处理组",name:"treatment",children:e.jsx(l,{mode:"multiple",style:{maxWidth:"20rem"},allowClear:!0,options:i})}),e.jsx(p.Item,{label:"选择对照组",name:"control",children:e.jsx(l,{mode:"multiple",style:{maxWidth:"20rem"},allowClear:!0,options:i})})]}),tableDesc:`

                                `})},children:"差异表达基因分析"})]})]})};export{O as default};
