File tree Expand file tree Collapse file tree 2 files changed +25
-9
lines changed
client/src/workflows/metagenomics/results Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,28 @@ export const RunFaQCs = (props) => {
3232 />
3333 < Collapse isOpen = { ! collapseCard } >
3434 < CardBody >
35+ { props . result . stats && (
36+ < >
37+ < StatsTable data = { props . result . stats } headers = { [ ] } />
38+ </ >
39+ ) }
3540 { props . result . report && (
3641 < >
37- < a href = { url + props . result . report } target = "_blank" rel = "noreferrer" >
38- [QC Report]
42+ < a href = { ` ${ url } ${ props . result . report } ` } target = "_blank" rel = "noreferrer" >
43+ [Detailed QC Report]
3944 </ a >
45+ < div key = { 'readsQC-summary' } >
46+ < embed
47+ key = { 'readsQC-summary-report' }
48+ src = { `${ url } ${ props . result . summaryPlots } ` }
49+ className = "edge-iframe"
50+ title = { 'qc summary' }
51+ />
52+ </ div >
4053 < br > </ br >
4154 < br > </ br >
4255 </ >
4356 ) }
44- { props . result . stats && (
45- < >
46- < StatsTable data = { props . result . stats } headers = { [ ] } />
47- </ >
48- ) }
4957 </ CardBody >
5058 </ Collapse >
5159 </ Card >
Original file line number Diff line number Diff line change @@ -130,9 +130,17 @@ const generateWorkflowResult = (proj) => {
130130 if ( fs . existsSync ( statsJsonFile ) ) {
131131 result . stats = JSON . parse ( fs . readFileSync ( statsJsonFile ) ) ;
132132 }
133- const reportFile = `${ outdir } /final_report.pdf` ;
133+ const summaryPlotsFile = `${ outdir } /QC_summary_plots.html` ;
134+ if ( fs . existsSync ( summaryPlotsFile ) ) {
135+ result . summaryPlots = `${ workflowList [ projectConf . workflow . name ] . outdir } /QC_summary_plots.html` ;
136+ }
137+ const reportFile = `${ outdir } /QC_final_report.html` ;
134138 if ( fs . existsSync ( reportFile ) ) {
135- result . report = `${ workflowList [ projectConf . workflow . name ] . outdir } /final_report.pdf` ;
139+ result . report = `${ workflowList [ projectConf . workflow . name ] . outdir } /QC_final_report.html` ;
140+ }
141+ const reportLongReadsFile = `${ outdir } /NanoPlot-report.html` ;
142+ if ( fs . existsSync ( reportLongReadsFile ) ) {
143+ result . report = `${ workflowList [ projectConf . workflow . name ] . outdir } /NanoPlot-report.html` ;
136144 }
137145 } else if ( projectConf . workflow . name === 'assembly' ) {
138146 const statsFile = `${ outdir } /contigs_stats.txt` ;
You can’t perform that action at this time.
0 commit comments