# openSMAPPjs
My little SMAPP should be based on javascript and work without a backend server. The backend is only used to persist data and send it to the lab.

It should be possible to use the app as is - without the backend side. 

For this data is stored in the local-storage of the browser. 

## Configure The App
+ create the database

### Sample Preparation Protocol
+ settling time (default 15 s)
+ dilution (main default 1:5 and bacterial default 1:500)
+ sample Volume (1 mL)
+ shaking time (30x shakes in 30s)

### Microscope Camera Setup
+ width / height of FoV [um]
+ objective magnification (default 40x)
+ eypiece Number 
+ size of slide width x height

## Sample Intake Form
+ type (compost)
+ place
+ date + time of taking the sample
+ notes (when was the last rain event)


## Sample Preparation
After the microscope and the preparation protocol is defined we can start taking in samples. 


### Sample Preparation
+ dilution (main 1:5)
+ shaking time (30x shakes in 30s)
+ settling time (15 s)

### Slide Preparation
+ size of slide
+ sample size [uL]

## Sample Analysis
The analysis consists of a Nematode scan the main assessment for protozoa and filamentous organisms and a bacteria count.

### Nematode Scan
Take multiple pictures of each Nematode and calssify to functional group. 
Bacterial- / Fungal- / Rootfeeding and Predatory Nematodes.

### Main Assessment
Take multiple pictures per FoV and count all organisms in the FoV. Mark them and store the picture and list of organisms.

+ as many as needed pictures per FoV. 
+ 5 or more FoV per reading. 
+ 5 or more readings. 

### Bacterial Count
For the bacterial count another dilution is used. Then bacteria are counted. 

## Results Page
From the different parts of the analysis the F:B ratio is calculated and Number of Protozoa / Fungal and Bacterial Biomass per mL of soil is calculated.