These scripts require python>=3.6..
The following dependencies need to be installed with brew on macOS:
mongodbzbar
Then:
Run make install in a terminal window at the root of the project.
Run . ./env/bin/activate from the same terminal window.
Run deactivate from the same terminal window.
Run python mask.py --help to see what kind of commands you can run and what kind of flags you can use.
Run python straighten.py --help to see what kind of commands you can run and what kind of flags you can use.
Run python tipmask.py --help to see what kind of commands you can run and what kind of flags you can use.
Run python append.py --help to see what kind of options you can use.
- supply
-kand-v: appends the key/value pair to the filename - supply
-kand-vwherekalready exists: overrides the key/value pair in the filename - supply
-dk: removes the key/value pair from the filename - supply
-kand-nk: overrides 'key' with 'new key'
Run python visualize.py --help to see what kind of options you can use.
Run python phenotype.py --help to see what kind of options you can use.
Run python acquire.py --help to see what kind of options you can use.
Run make acquisition-preview tmp=/path/to/tmp/folder to fire up the acquisition preview.
full mongolite documentation here
-
install mongolite:
install.packages("mongolite") -
load package
library(mongolite) -
connect to database / collection
m <- mongo(collection = "test_collection", db = "test_database", url = "mongodb://localhost/") -
fire up a query
m$find("{}")--> will return all documents from the collection
The follwing configurations can be made in the config.json file:
scalebar_length- the length of the scalebar in mm.camera_maker- the name of the camera maker. Runconfig.py --camerasto get a list of available cameras.camera_model- the name of the camera model.lens_maker- the name of the lens maker. Runconfig.py --lensesto get a list of available lenses.lens_model- the name of the lens modelfile_format- the format of the file. Defaults to.png.