some minor changes to increase readability
This commit is contained in:
parent
b5d8408ed6
commit
7f2487509e
|
|
@ -29,25 +29,20 @@
|
|||
<span id=cam_setup_name>???</span>.
|
||||
</p>
|
||||
<p>
|
||||
The sample volume V<sub>Sample</sub> = <span id="sample_volume">???</span> uL
|
||||
divided by the size of the coverslip A<sub>coverslip</sub> =
|
||||
Dividing the sample volume V<sub>Sample</sub> = <span id="sample_volume">???</span> uL
|
||||
by the size of the coverslip A<sub>coverslip</sub> =
|
||||
<span id="coverslip_height">???</span> mm x <span id="coverslip_width">???</span> mm
|
||||
yield an observed height of
|
||||
<br><br>
|
||||
h<sub>observed</sub> = V<sub>Sample</sub> / A<sub>coverslip</sub> =
|
||||
<span id="observed_height"></span> um.
|
||||
<br><br>
|
||||
Multipilcation with the size of the
|
||||
the field of view A<sub>FoV</sub> = <span id="FoV_height">???</span> um x
|
||||
<span id="FoV_width">???</span> um yield
|
||||
an observed Volume of
|
||||
<br><br>
|
||||
V<sub>observed</sub> = h<sub>observed</sub> * A<sub>FoV</sub> = <span id="observed_volume">???</span> uL per FoV.
|
||||
yields the observed height h<sub>observed</sub> = V<sub>Sample</sub> / A<sub>coverslip</sub> =
|
||||
<span id="observed_height"></span> um. Multipilcation with the size of the the field of view
|
||||
A<sub>FoV</sub> = <span id="FoV_height">???</span> um x
|
||||
<span id="FoV_width">???</span> um
|
||||
yields the observed Volume V<sub>observed</sub> =
|
||||
h<sub>observed</sub> * A<sub>FoV</sub> = <span id="observed_volume">???</span> uL per FoV.
|
||||
The volume of organisms per FoV is multiplied with the
|
||||
dilution Factor F<sub>dilution</sub> = <span id="dilution_factor">???</span>
|
||||
and devided by V<sub>observed</sub> to calculate the abundance per uL.
|
||||
</p>
|
||||
<p>
|
||||
The volume of organisms per FoV is multiplied with the
|
||||
dilution Factor F<sub>dilution</sub> = <span id="dilution_factor">???</span>
|
||||
and devided by V<sub>observed</sub> to calculate the abundance per uL.<br>
|
||||
F<sub>multiplication</sub> = F<sub>dilution</sub> * 1 uL / V<sub>observed</sub> = <span id="factor">???</span>
|
||||
</p>
|
||||
|
||||
|
|
@ -76,29 +71,21 @@
|
|||
<div id="bacteria_scan_div">
|
||||
<h2> Bacteria Scan</h2>
|
||||
<p>
|
||||
The bacteria scan has been performed on <span id="bact_scan_datetime">???</span>. <br>
|
||||
The bacteria scan has been performed on <span id="bact_scan_datetime">???</span>.
|
||||
Dividing the sample volume V<sub>Sample</sub> = <span id="sample_volume_bact">???</span> uL
|
||||
by the size of the coverslip A<sub>coverslip</sub> =
|
||||
<span id="coverslip_height_bact">???</span> mm x <span id="coverslip_width_bact">???</span> mm
|
||||
yields the observed height h<sub>observed</sub> = V<sub>Sample</sub> / A<sub>coverslip</sub> =
|
||||
<span id="observed_height_bact"></span> um. Multipilcation with the size of the
|
||||
the field of view A<sub>FoV</sub> = <span id="FoV_height_bact">???</span> um x
|
||||
<span id="FoV_width_bact">???</span> um yields the observed Volume
|
||||
V<sub>observed</sub> = h<sub>observed</sub> * A<sub>FoV</sub> = <span id="observed_volume_bact">???</span> uL per FoV. The volume of organisms per FoV is multiplied with the
|
||||
dilution Factor F<sub>dilution</sub> = <span id="dilution_factor_bact">???</span>
|
||||
and devided by V<sub>observed</sub> to calculate the abundance per uL:
|
||||
</p>
|
||||
<p>
|
||||
The sample volume V<sub>Sample</sub> = <span id="sample_volume_bact">???</span> uL
|
||||
divided by the size of the coverslip A<sub>coverslip</sub> =
|
||||
<span id="coverslip_height_bact">???</span> mm x <span id="coverslip_width_bact">???</span> mm
|
||||
yield an observed height of
|
||||
<br><br>
|
||||
h<sub>observed</sub> = V<sub>Sample</sub> / A<sub>coverslip</sub> =
|
||||
<span id="observed_height_bact"></span> um.
|
||||
<br><br>
|
||||
Multipilcation with the size of the
|
||||
the field of view A<sub>FoV</sub> = <span id="FoV_height_bact">???</span> um x
|
||||
<span id="FoV_width_bact">???</span> um yield
|
||||
an observed Volume of
|
||||
<br><br>
|
||||
V<sub>observed</sub> = h<sub>observed</sub> * A<sub>FoV</sub> = <span id="observed_volume_bact">???</span> uL per FoV.
|
||||
<p>
|
||||
The volume of organisms per FoV is multiplied with the
|
||||
dilution Factor F<sub>dilution</sub> = <span id="dilution_factor_bact">???</span>
|
||||
and devided by V<sub>observed</sub> to calculate the abundance per uL.<br>
|
||||
F<sub>multiplication</sub> = F<sub>dilution</sub> * 1 uL / V<sub>observed</sub> = <span id="factor_bact">???</span>
|
||||
</p>
|
||||
F<sub>multiplication</sub> = F<sub>dilution</sub> * 1 uL / V<sub>observed</sub> = <span id="factor_bact">???</span>
|
||||
</p>
|
||||
|
||||
<h3> Bacteria Table </h3>
|
||||
<table class="table" id = "bact_scan_table" style="width:100%">
|
||||
|
|
@ -257,11 +244,14 @@
|
|||
};
|
||||
|
||||
function write_sample_description(sample){
|
||||
let latLon = sample.Place.split(', ');
|
||||
let lat = Number(latLon[0]);
|
||||
let lon = Number(latLon[1]);
|
||||
document.querySelector("#sample_id").textContent = sample_chooser.value;
|
||||
document.querySelector("#sample_name").textContent = sample.Name;
|
||||
document.querySelector("#sample_type").textContent = sample.Type;
|
||||
document.querySelector("#sample_date").textContent = sample.Date_Collected;
|
||||
document.querySelector("#sample_location").textContent = sample.Place;
|
||||
document.querySelector("#sample_date").textContent = sample.Date_Collected.toDateString() + ' at ' + sample.Date_Collected.toLocaleTimeString();
|
||||
document.querySelector("#sample_location").textContent = lat.toFixed(4) + ', ' + lon.toFixed(4);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -276,7 +266,8 @@
|
|||
|
||||
multiplication_factor_main_scan = main_result.dilution / observed_volume;
|
||||
|
||||
document.querySelector("#main_scan_datetime").textContent = main_result.datetime;
|
||||
document.querySelector("#main_scan_datetime").textContent = main_result.datetime.toDateString() + ' at ' + main_result.datetime.toLocaleTimeString();
|
||||
sample.Date_Collected.toDateString() + ' at ' + sample.Date_Collected.toLocaleTimeString();
|
||||
document.querySelector("#prep_protocol_name").textContent = prep_protocol.name;
|
||||
document.querySelector("#cam_setup_name").textContent = microscope_setup.name;
|
||||
document.querySelector("#coverslip_height").textContent = microscope_setup.Slip_Height;
|
||||
|
|
@ -289,7 +280,7 @@
|
|||
document.querySelector("#observed_volume").textContent = observed_volume.toExponential(2);
|
||||
document.querySelector("#dilution_factor").textContent = main_result.dilution;
|
||||
|
||||
document.querySelector("#factor").textContent = multiplication_factor_main_scan;
|
||||
document.querySelector("#factor").textContent = multiplication_factor_main_scan.toFixed(2);
|
||||
|
||||
}
|
||||
// get results of the main scan + prep_protocol and microscope_setup
|
||||
|
|
@ -470,14 +461,14 @@
|
|||
case "Actinobacteria":
|
||||
newRow.insertCell(0).innerHTML = key ;
|
||||
// get
|
||||
newRow.insertCell(1).innerHTML = (mean * Math.pow(10, -6) * multiplication_factor_main_scan).toExponential(2);
|
||||
newRow.insertCell(2).innerHTML = (stdev/mean * 100);
|
||||
newRow.insertCell(1).innerHTML = (mean * Math.pow(10, -6) * multiplication_factor_main_scan).toFixed(2);
|
||||
newRow.insertCell(2).innerHTML = (stdev/mean * 100).toFixed(2);
|
||||
break
|
||||
default:
|
||||
newRow.insertCell(0).innerHTML = key;
|
||||
|
||||
newRow.insertCell(1).innerHTML = mean * multiplication_factor_main_scan;
|
||||
newRow.insertCell(2).innerHTML = (stdev/mean * 100);
|
||||
newRow.insertCell(1).innerHTML = (mean * multiplication_factor_main_scan).toFixed(2);
|
||||
newRow.insertCell(2).innerHTML = (stdev/mean * 100).toFixed(2);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -541,7 +532,7 @@
|
|||
}
|
||||
function write_nema_scan_description(result, protocol, setup){
|
||||
multiplication_factor_nema_scan = (result.dilution / protocol.Sample_Size) * Math.pow(10,3);
|
||||
document.querySelector("#nema_scan_datetime").innerHTML = result.datetime;
|
||||
document.querySelector("#nema_scan_datetime").innerHTML = result.datetime.toDateString() + ' at ' + result.datetime.toLocaleTimeString();
|
||||
document.querySelector("#dilution_nema").innerHTML = result.dilution;
|
||||
document.querySelector("#samplesize_nema").innerHTML = protocol.Sample_Size;
|
||||
document.querySelector("#multiplication_factor_nema").innerHTML = multiplication_factor_nema_scan;
|
||||
|
|
@ -640,7 +631,7 @@ function write_bact_scan_description(result, protocol, setup){
|
|||
|
||||
multiplication_factor_bact_scan = result.dilution / observed_volume_bact;
|
||||
|
||||
document.querySelector("#bact_scan_datetime").textContent = result.datetime;
|
||||
document.querySelector("#bact_scan_datetime").textContent = result.datetime.toDateString() + " at " + result.datetime.toLocaleTimeString();
|
||||
document.querySelector("#prep_protocol_name_bact").textContent = protocol.name;
|
||||
document.querySelector("#cam_setup_name_bact").textContent = setup.name;
|
||||
document.querySelector("#coverslip_height_bact").textContent = setup.Slip_Height;
|
||||
|
|
@ -653,7 +644,7 @@ function write_bact_scan_description(result, protocol, setup){
|
|||
document.querySelector("#observed_volume_bact").textContent = observed_volume_bact.toExponential(2);
|
||||
document.querySelector("#dilution_factor_bact").textContent = result.dilution;
|
||||
|
||||
document.querySelector("#factor_bact").textContent = multiplication_factor_bact_scan;
|
||||
document.querySelector("#factor_bact").textContent = multiplication_factor_bact_scan.toFixed(2);
|
||||
|
||||
|
||||
|
||||
|
|
@ -699,18 +690,13 @@ function render_bact_scan_table(result){
|
|||
for (let i=0; i<means.length; i+=2){
|
||||
render_bact_scan_table_row(keys[i], [means[i],means[i+1]], [sds[i],sds[i+1]]);
|
||||
}
|
||||
bact_mass = means[1] + means[3] + means[5]
|
||||
bact_sd = sds[1] + sds[3] + sds[5];
|
||||
bact_mass = means[1] + means[3] + means[5];
|
||||
fungi_mass = Number(result_table.children[1].children[0].children[1].innerHTML);
|
||||
fungi_sd = Number(result_table.children[1].children[0].children[2].innerHTML)*
|
||||
Number(result_table.children[1].children[0].children[1].innerHTML);
|
||||
|
||||
document.querySelector("#bacterial_biomass").textContent = bact_mass.toFixed(2) +
|
||||
" +/- " + bact_sd.toFixed(2);
|
||||
document.querySelector("#fungal_biomass").textContent = fungi_mass.toFixed(2) +
|
||||
" +/- " + fungi_sd.toFixed(2);
|
||||
document.querySelector("#bacterial_biomass").textContent = bact_mass.toFixed(2)
|
||||
document.querySelector("#fungal_biomass").textContent = fungi_mass.toFixed(2)
|
||||
|
||||
document.querySelector("#f_to_b_biomass").textContent = (fungi_mass / bact_mass).toFixed(2)
|
||||
document.querySelector("#f_to_b_biomass").textContent = (fungi_mass / bact_mass).toFixed(5)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue