import{j as e,r as i,B as r,F as p,S as l}from"./index-BT6xGZJ2.js";import{A as c}from"./index-CBZATGQG.js";import{B as g}from"./index-mIRgl97M.js";import{T as d}from"./index-BLVx9eCn.js";import"./index-GyOG3fhK.js";import"./Table-DToc2eAE.js";import"./addEventListener-keZ10fsH.js";import"./index-B8dMEHii.js";import"./index-DhrsRx8L.js";import"./index-DbUQ2vkP.js";import"./index-ZwQ_cfLa.js";import"./index-CZyOcRSJ.js";import"./index-B10G697B.js";import"./index-Bw31C-LM.js";import"./index-ThqNjMmR.js";import"./index-BtaRUSBQ.js";import"./index-3P32b7zB.js";import"./index-B0T9HVny.js";const D=()=>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:m})=>{const[o,_]=i.useState([]);i.useEffect(()=>{if(console.log(t.feature_counts_RNA_mapping),t.feature_counts_RNA_mapping){const s=t.feature_counts_RNA_mapping.map(a=>({label:`${a.sample_key} `,value:`${a.id}`}));_(s)}},[t]);const u=s=>t[s].map(a=>a.content.log);return e.jsxs(e.Fragment,{children:[m=="bowtie2_RNA_mapping"&&e.jsx(e.Fragment,{children:e.jsx(g,{resultTableList:t,plot:n,analysisKey:"bowtie2_RNA_mapping"})}),m=="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:o})}),e.jsx(p.Item,{label:"选择对照组",name:"control",children:e.jsx(l,{mode:"multiple",style:{maxWidth:"20rem"},allowClear:!0,options:o})})]}),tableDesc:`

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