Skip to content

Commit

Permalink
HTML report debugged
Browse files Browse the repository at this point in the history
  • Loading branch information
freiburgermsu committed Jun 26, 2023
1 parent dfdb20b commit 0912574
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 91 deletions.
140 changes: 140 additions & 0 deletions examples/Community Modeling/smetana/commscores_report.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<title>SteadyCom Results</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css">
<script type="text/javascript" language="javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.min.js"></script>
<style>
h2, table, p {
padding-top: 40px;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 5px;
}
th {
text-align: center;
}
</style>
</head>
<body class="container">
<h1>SMETANA Results</h1>
<ul class="nav nav-tabs" id="nav-tab" role="tablist">
<li><a class="nav-item nav-link active" id="nav-table-tab" data-toggle="tab" href="#nav-table" role="tab" aria-controls="nav-table" aria-selected="true">Interaction table</a> </li>
<li><a class="nav-item nav-link" id="nav-heatmap-tab" data-toggle="tab" href="#nav-heatmap" role="tab" aria-controls="nav-heatmap" aria-selected="true">Interaction Heatmap</a> </li>
<!-- <li><a class="nav-item nav-link" id="nav-mets-tab" data-toggle="tab" href="#nav-mets" role="tab" aria-controls="nav-mets" aria-selected="true">Interacted mets</a> </li> -->
</ul>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-table" role="tabpanel" aria-labelledby="nav-summary-tab">
<p>The biomass yields are expressed in [gm/hr*(gm CDW)]</p>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>model1</th>
<th>model2</th>
<th>media</th>
<th>mro_model1</th>
<th>mro_model2</th>
<th>cip</th>
<th>mip_model1</th>
<th>mip_model2</th>
<th>pc</th>
<th>bss_model1</th>
<th>bss_model2</th>
<th>bit</th>
<th>gyd</th>
<th>RFC</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>Sphingobium_sp._AP49_2512564014.fna.RAST.fbamodel</td>
<td>Pseudomonas_sp._GM17_2511231006.fna.RAST.fbamodel</td>
<td>R2A_edition_003</td>
<td>0.84615 (33/39)</td>
<td>0.84615 (33/39)</td>
<td>22</td>
<td>10 (5)</td>
<td>4 (0)</td>
<td>0.60797</td>
<td>0.692308</td>
<td>0.641026</td>
<td>mutualism</td>
<td>0.16283</td>
<td>0.30420</td>
</tr>
</tbody>
</table>
</div>
<div class="tab-pane fade" id="nav-heatmap" role="tabpanel" aria-labelledby="nav-heatmap-tab">
<style type="text/css">
#T_e156e_row0_col0, #T_e156e_row0_col1, #T_e156e_row0_col2, #T_e156e_row0_col3, #T_e156e_row0_col4, #T_e156e_row0_col5, #T_e156e_row0_col6, #T_e156e_row0_col7, #T_e156e_row0_col8, #T_e156e_row0_col9 {
background-color: #fff7fb;
color: #000000;
}
</style>
<table id="T_e156e">
<thead>
<tr>
<th class="blank level0" >&nbsp;</th>
<th id="T_e156e_level0_col0" class="col_heading level0 col0" >mro_model1</th>
<th id="T_e156e_level0_col1" class="col_heading level0 col1" >mro_model2</th>
<th id="T_e156e_level0_col2" class="col_heading level0 col2" >cip</th>
<th id="T_e156e_level0_col3" class="col_heading level0 col3" >mip_model1</th>
<th id="T_e156e_level0_col4" class="col_heading level0 col4" >mip_model2</th>
<th id="T_e156e_level0_col5" class="col_heading level0 col5" >pc</th>
<th id="T_e156e_level0_col6" class="col_heading level0 col6" >bss_model1</th>
<th id="T_e156e_level0_col7" class="col_heading level0 col7" >bss_model2</th>
<th id="T_e156e_level0_col8" class="col_heading level0 col8" >gyd</th>
<th id="T_e156e_level0_col9" class="col_heading level0 col9" >RFC</th>
</tr>
<tr>
<th class="index_name level0" >model1 ++ model2 ___ Media</th>
<th class="blank col0" >&nbsp;</th>
<th class="blank col1" >&nbsp;</th>
<th class="blank col2" >&nbsp;</th>
<th class="blank col3" >&nbsp;</th>
<th class="blank col4" >&nbsp;</th>
<th class="blank col5" >&nbsp;</th>
<th class="blank col6" >&nbsp;</th>
<th class="blank col7" >&nbsp;</th>
<th class="blank col8" >&nbsp;</th>
<th class="blank col9" >&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<th id="T_e156e_level0_row0" class="row_heading level0 row0" >Sphingobium_sp._AP49_2512564014.fna.RAST.fbamodel ++ Pseudomonas_sp._GM17_2511231006.fna.RAST.fbamodel in R2A_edition_003</th>
<td id="T_e156e_row0_col0" class="data row0 col0" >0.846150</td>
<td id="T_e156e_row0_col1" class="data row0 col1" >0.846150</td>
<td id="T_e156e_row0_col2" class="data row0 col2" >22.000000</td>
<td id="T_e156e_row0_col3" class="data row0 col3" >10.000000</td>
<td id="T_e156e_row0_col4" class="data row0 col4" >4.000000</td>
<td id="T_e156e_row0_col5" class="data row0 col5" >0.607970</td>
<td id="T_e156e_row0_col6" class="data row0 col6" >0.692308</td>
<td id="T_e156e_row0_col7" class="data row0 col7" >0.641026</td>
<td id="T_e156e_row0_col8" class="data row0 col8" >0.162830</td>
<td id="T_e156e_row0_col9" class="data row0 col9" >0.304200</td>
</tr>
</tbody>
</table>

</div>
<!-- <div class="tab-pane fade" id="nav-mets" role="tabpanel" aria-labelledby="nav-mets-tab">
[{'mro_mets': [({'EX_cpd00205_e0', 'EX_cpd10515_e0', 'EX_cpd00654_e0', 'EX_cpd00644_e0', 'EX_cpd00007_e0', 'EX_cpd00107_e0', 'EX_cpd00058_e0', 'EX_cpd00136_e0', 'EX_cpd00119_e0', 'EX_cpd00069_e0', 'EX_cpd00048_e0', 'EX_cpd00254_e0', 'EX_cpd00051_e0', 'EX_cpd00066_e0', 'EX_cpd00017_e0', 'EX_cpd00063_e0', 'EX_cpd00793_e0', 'EX_cpd00028_e0', 'EX_cpd00034_e0', 'EX_cpd00156_e0', 'EX_cpd00220_e0', 'EX_cpd00065_e0', 'EX_cpd00149_e0', 'EX_cpd01017_e0', 'EX_cpd00322_e0', 'EX_cpd00030_e0', 'EX_cpd00104_e0', 'EX_cpd00099_e0', 'EX_cpd00264_e0', 'EX_cpd00215_e0', 'EX_cpd00393_e0', 'EX_cpd01080_e0', 'EX_cpd03847_e0'}, {'EX_cpd00066_e0': 0.015451949003134503, 'EX_cpd01017_e0': 0.008456496968391259, 'EX_cpd00205_e0': 0.000280615915959131, 'EX_cpd00030_e0': 0.0002806159159591311, 'EX_cpd00107_e0': 0.037538884754166196, 'EX_cpd00118_e0': 0.0002806159159591311, 'EX_cpd00065_e0': 0.004720191914502182, 'EX_cpd00156_e0': 0.03522331890916251, 'EX_cpd00060_e0': 0.011096446763321914, 'EX_cpd00058_e0': 0.000280615915959131, 'EX_cpd00099_e0': 0.00028061591595913103, 'EX_cpd00322_e0': 0.024179851033723502, 'EX_cpd00028_e0': 0.000280615915959131, 'EX_cpd00215_e0': 0.00028061591595913103, 'EX_cpd00254_e0': 0.00028061591595913103, 'EX_cpd00220_e0': 0.0008418477478773931, 'EX_cpd00034_e0': 0.0002806159159591311, 'EX_cpd00069_e0': 0.012067660460661201, 'EX_cpd00264_e0': 0.0002806159159591311, 'EX_cpd00794_e0': 0.23177487667155552, 'EX_cpd00793_e0': 0.00028061591595913103, 'EX_cpd00009_e0': 0.08097478546463521, 'EX_cpd00048_e0': 0.000280615915959131, 'EX_cpd00017_e0': 0.0019643114117139163, 'EX_cpd00039_e0': 0.028543802049017904, 'EX_cpd00104_e0': 0.000280615915959131, 'EX_cpd00277_e0': 0.0020247366767531506, 'EX_cpd03847_e0': 0.0025010597710894396, 'EX_cpd01080_e0': 0.024916275954454083, 'EX_cpd00007_e0': 1.1741528321247, 'EX_cpd00644_e0': 0.0005612318318672862, 'EX_cpd10515_e0': 0.0008418477478773931, 'EX_cpd00654_e0': 0.0011789605965904404, 'EX_cpd00136_e0': 0.00028061591595913103, 'EX_cpd00051_e0': 0.0246696822701341, 'EX_cpd00063_e0': 0.0002806159159591311, 'EX_cpd00393_e0': 0.0008418477478774252, 'EX_cpd00149_e0': 0.00028061591595913103, 'EX_cpd00119_e0': 0.1689771057483934}), ({'EX_cpd00205_e0', 'EX_cpd10515_e0', 'EX_cpd00654_e0', 'EX_cpd00644_e0', 'EX_cpd00007_e0', 'EX_cpd00107_e0', 'EX_cpd00058_e0', 'EX_cpd00136_e0', 'EX_cpd00119_e0', 'EX_cpd00069_e0', 'EX_cpd00048_e0', 'EX_cpd00254_e0', 'EX_cpd00051_e0', 'EX_cpd00066_e0', 'EX_cpd00017_e0', 'EX_cpd00063_e0', 'EX_cpd00793_e0', 'EX_cpd00028_e0', 'EX_cpd00034_e0', 'EX_cpd00156_e0', 'EX_cpd00220_e0', 'EX_cpd00065_e0', 'EX_cpd00149_e0', 'EX_cpd01017_e0', 'EX_cpd00322_e0', 'EX_cpd00030_e0', 'EX_cpd00104_e0', 'EX_cpd00099_e0', 'EX_cpd00264_e0', 'EX_cpd00215_e0', 'EX_cpd00393_e0', 'EX_cpd01080_e0', 'EX_cpd03847_e0'}, {'EX_cpd00066_e0': 0.015451949003134503, 'EX_cpd01017_e0': 0.008456496968442235, 'EX_cpd00209_e0': 0.4476081635841656, 'EX_cpd00205_e0': 0.00028061591595913103, 'EX_cpd00030_e0': 0.0002806159159591311, 'EX_cpd00107_e0': 0.03753888475401271, 'EX_cpd00065_e0': 0.00472019191450218, 'EX_cpd00156_e0': 0.035223318909502234, 'EX_cpd00355_e0': 1.1842235631392568, 'EX_cpd00058_e0': 0.00028061591595913103, 'EX_cpd00099_e0': 0.00028061591595913103, 'EX_cpd00322_e0': 0.0241798510337235, 'EX_cpd00028_e0': 0.00028061591595913103, 'EX_cpd00215_e0': 0.00028061591595913103, 'EX_cpd00254_e0': 0.00028061591595913103, 'EX_cpd00220_e0': 0.0008418477478773932, 'EX_cpd00034_e0': 0.00028061591595913103, 'EX_cpd00069_e0': 0.012067660460661201, 'EX_cpd00307_e0': 0.008410361565448629, 'EX_cpd00264_e0': 0.00028061591595913103, 'EX_cpd00793_e0': 0.000280615915959131, 'EX_cpd00048_e0': 0.00028061591595913103, 'EX_cpd00017_e0': 0.013060758175035837, 'EX_cpd00179_e0': 0.06274188137479428, 'EX_cpd00104_e0': 0.00028061591595913103, 'EX_cpd03847_e0': 0.002501059771089441, 'EX_cpd01080_e0': 0.024916275954454087, 'EX_cpd00311_e0': 0.01519312329644371, 'EX_cpd00007_e0': 0.0008418477478773933, 'EX_cpd00644_e0': 0.0005612318319182638, 'EX_cpd00438_e0': 0.0011917803122624656, 'EX_cpd10515_e0': 0.0008418477478773932, 'EX_cpd00654_e0': 0.005215640721434261, 'EX_cpd00136_e0': 0.00028061591595913103, 'EX_cpd00051_e0': 0.0246696822701341, 'EX_cpd00063_e0': 0.0002806159159591311, 'EX_cpd00393_e0': 0.000841847747877383, 'EX_cpd00119_e0': 0.007926360007371592, 'EX_cpd00149_e0': 0.00028061591595913103})]}, {'mip_mets': {'Sphingobium_sp._AP49_2512564014.fna.RAST.fbamodel': ['cpd00067', 'cpd00009', 'cpd00118', 'cpd00054', 'cpd00060', 'cpd00033', 'cpd00136', 'cpd00039', 'cpd00001', 'cpd00129'], 'Pseudomonas_sp._GM17_2511231006.fna.RAST.fbamodel': ['cpd00307', 'cpd00084', 'cpd00132', 'cpd00161']}}]
</div> -->
</div>
</body>
</html>
Loading

0 comments on commit 0912574

Please sign in to comment.