Commit c1b34823 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

set defaults in physicochemical filters table if values not available

parent 45e752dd
......@@ -63,44 +63,44 @@
</tr>
<tr>
<th scope="row">MW</th>
<td class="text-right {% status_class compound.lipinsky_mw %}" title="Molecular weight <= 500g/mol">{{ compound.molecular_weight }}g/mol</td>
<td class="text-right {% status_class compound.lipinsky_mw %}" title="Molecular weight <= 500g/mol">{{ compound.molecular_weight | default_if_none:"not available" }}g/mol</td>
<td class="table-light"></td>
<td class="table-light"></td>
</tr>
<tr>
<th scope="row">HBA</th>
<td class="text-right {% status_class compound.lipinsky_hba %}" title="HBA <= 10">{{ compound.nb_acceptor_h }}</td>
<td class="text-right {% status_class compound.lipinsky_hba %}" title="HBA <= 10">{{ compound.nb_acceptor_h | default_if_none:"not available" }}</td>
<td class="table-light"></td>
<td class="table-light"></td>
</tr>
<tr>
<th scope="row">HBD</th>
<td class="text-right {% status_class compound.lipinsky_hbd %}" title="HBD <= 5">{{ compound.nb_donor_h }}</td>
<td class="text-right {% status_class compound.lipinsky_hbd %}" title="HBD <= 5">{{ compound.nb_donor_h | default_if_none:"not available" }}</td>
<td class="table-light"></td>
<td class="table-light"></td>
</tr>
<tr>
<th scope="row">HBA + HBD</th>
<td class="table-light"></td>
<td class="text-right {% status_class compound.veber_hba_hbd %}" title="HBD + HBA <= 12">{{ compound.hba_hbd }}</td>
<td class="text-right {% status_class compound.veber_hba_hbd %}" title="HBD + HBA <= 12">{{ compound.hba_hbd | default_if_none:"not available" }}</td>
<td class="table-light"></td>
</tr>
<tr>
<th scope="row">AlogP</th>
<td class="text-right {% status_class compound.lipinsky_a_log_p %}" title="AlogP <= 5">{{ compound.a_log_p }}</td>
<td class="text-right {% status_class compound.lipinsky_a_log_p %}" title="AlogP <= 5">{{ compound.a_log_p | default_if_none:"not available" }}</td>
<td class="table-light"></td>
<td class="text-right {% status_class compound.pfizer_a_log_p %}" title="AlogP <= 3">{{ compound.a_log_p }}</td>
<td class="text-right {% status_class compound.pfizer_a_log_p %}" title="AlogP <= 3">{{ compound.a_log_p | default_if_none:"not available" }}</td>
</tr>
<tr>
<th scope="row">TPSA</th>
<td class="table-light"></td>
<td class="text-right {% status_class compound.veber_tpsa %}" title="TPSA <= 140">{{ compound.tpsa }}</td>
<td class="text-right {% status_class compound.pfizer_tpsa %}" title="TPSA >= 75">{{ compound.tpsa }}</td>
<td class="text-right {% status_class compound.veber_tpsa %}" title="TPSA <= 140">{{ compound.tpsa | default_if_none:"not available" }}</td>
<td class="text-right {% status_class compound.pfizer_tpsa %}" title="TPSA >= 75">{{ compound.tpsa | default_if_none:"not available" }}</td>
</tr>
<tr>
<th scope="row">RB</th>
<td class="table-light"></td>
<td class="text-right {% status_class compound.veber_rb %}" title="RB <= 10">{{ compound.nb_rotatable_bonds }}</td>
<td class="text-right {% status_class compound.veber_rb %}" title="RB <= 10">{{ compound.nb_rotatable_bonds | default_if_none:"not available"}}</td>
<td class="table-light"></td>
</tr>
</tbody>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment