diff --git a/docs/_config.yml b/docs/_config.yml index 918b56c..06c28c3 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -13,3 +13,5 @@ nav_external_links: url: https://github.com/aicjanelia/LLSM hide_icon: false # set to true to hide the external link icon - defaults to false opens_in_new_tab: true # set to true to open this link in a new tab - defaults to false + +math: mathjax diff --git a/docs/_includes/head_custom.html b/docs/_includes/head_custom.html new file mode 100644 index 0000000..00338b9 --- /dev/null +++ b/docs/_includes/head_custom.html @@ -0,0 +1,6 @@ +{% assign math = page.math | default: layout.math | default: site.math %} + +{% case math %} + {% when "mathjax" %} + {% include mathjax.html %} +{% endcase %} \ No newline at end of file diff --git a/docs/_includes/mathjax.html b/docs/_includes/mathjax.html new file mode 100644 index 0000000..90c6db3 --- /dev/null +++ b/docs/_includes/mathjax.html @@ -0,0 +1,9 @@ + + + + + diff --git a/docs/_layouts/mathjax.html b/docs/_layouts/mathjax.html new file mode 100644 index 0000000..a0c6c17 --- /dev/null +++ b/docs/_layouts/mathjax.html @@ -0,0 +1,12 @@ +--- +layout: default +math: mathjax +--- +
+ +{{ content }} diff --git a/docs/assets/js/mathjax-script-type.js b/docs/assets/js/mathjax-script-type.js new file mode 100644 index 0000000..afc73f9 --- /dev/null +++ b/docs/assets/js/mathjax-script-type.js @@ -0,0 +1,18 @@ +// Copied from https://docs.mathjax.org/en/latest/upgrading/v2.html#changes-in-the-mathjax-api +MathJax = { + options: { + renderActions: { + findScript: [10, function (doc) { + for (const node of document.querySelectorAll('script[type^="math/tex"]')) { + const display = !!node.type.match(/; *mode=display/); + const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display); + const text = document.createTextNode(''); + node.parentNode.replaceChild(text, node); + math.start = {node: text, delim: '', n: 0}; + math.end = {node: text, delim: '', n: 0}; + doc.math.push(math); + } + }, ''] + } + } +}; diff --git a/docs/flatfield/flatfield.md b/docs/flatfield/flatfield.md index b5af1f7..241139b 100644 --- a/docs/flatfield/flatfield.md +++ b/docs/flatfield/flatfield.md @@ -24,7 +24,7 @@ When averaging the collected calibration images, it is best to use ImageJ's 32-b To use, run the `flatfield_inputs.ijm` macro. A GUI will open, as shown in the figure below. You can specify the darkfield image in multiple ways: (i) use the `Browse` button to find the stack of darkfield images, (ii) copy the full path into the box, or (iii) simply drag and drop the image file onto the darkfield line of the GUI. Repeat this process for the flatfield stacks. Any channel entries without files will be ignored. The macro will average the stacks and save a file called *DarkAverage.tif* in the same folder as the input darkfield stack. The macro will then continue to perform the $I_N$ calculation, saving one *I_N_###.tif* file per channel in the same folder, with *###* specified by the values in the Channel input line of the macro GUI. These files can then be specified in the paths section of the pipeline configuration file to run the flatfield correction module. -![](FlatFieldGUI.png) +![](https://github.com/aicjanelia/LLSM/blob/master/docs/flatfield/FlatFieldGUI.png) ## Reference $^1$ Hobson, C. M., Guo, M., Vishwasrao, H. D., Wu, Y., Shroff, H. and Chew, T.-L. (2022). Practical considerations for quantitative light sheet fluorescence microscopy. Nat Methods 1-12. [doi:10.1038/s41592-022-01632-x](https://doi.org/10.1038/s41592-022-01632-x) @@ -35,20 +35,22 @@ $^1$ Hobson, C. M., Guo, M., Vishwasrao, H. D., Wu, Y., Shroff, H. and Chew, T.- This is an example portion of a configuration file that sets up the inputs to the flatfield module and enables the module. ```json -"paths": { - "root": "/aic/instruments/llsm/pipeline-test/", - "flatfield": { - "dir": "Calibration", - "dark": "DarkAverage.tif", - "laser": { - "488": "I_N_488.tif", - "560": "I_N_560.tif" - } - } -}, -"flatfield": { - "bit-depth": 16 -} +{ + "paths": { + "root": "/aic/instruments/llsm/pipeline-test/", + "flatfield": { + "dir": "Calibration", + "dark": "DarkAverage.tif", + "laser": { + "488": "I_N_488.tif", + "560": "I_N_560.tif" + } + } + }, + "flatfield": { + "bit-depth": 16 + } +} ``` ### Command Line Example diff --git a/docs/mip/mip.md b/docs/mip/mip.md index 2ffae26..da5f98d 100644 --- a/docs/mip/mip.md +++ b/docs/mip/mip.md @@ -9,7 +9,7 @@ nav_order: 7 The `mip` module is run together with the other processing modules and will create MIPs for key modules that are run. For example, if running both `deskew` and `decon`, MIPs will be made for both. The subfolder created by `mip` will contain subfolders indicating which input images were used to create them (e.g., a `decon` subfolder). Inside this folder will be files that end with `mip_x`, `mip_y`, and `mip_z`. The dimension in the file name is the axes over which the images have been projected. -| Modules Enabled | MIPs created | +| Modules Enabled | MIPs Created | | ----- | ----- | | mip only | input images | | flatfield| flatfield |