AFM-SPM / TopoStats

An AFM image analysis program to batch process data and obtain statistics from images
https://afm-spm.github.io/TopoStats/
GNU Lesser General Public License v3.0
58 stars 10 forks source link

Continue refactoring internals of processing.py #648

Open SylviaWhittle opened 1 year ago

SylviaWhittle commented 1 year ago

I propose further modularisation internally.

This would entail being able to utilise the modular internal functions to TopoStats to create different data processing workflows.

For example, someone might make a config file:

TOPO_DATA_FLOW_CONFIGURATION
------ START
image_flattened = flatten_data
grain_masks_01 = grain_finding(image_flattened, config_01.yaml)
grainstats_01 = grainstats(grain_masks_01)
grain_masks_02 = grain_finding(image_flattened, config_02.yaml)
grainstats_02 = grainstats(grain_masks_02)
intersection = intersect_grain_masks(grain_masks_01, grain_masks_02)
intersection_stats(intersection)
------ END

But also this is a really complex thing to add...

Maybe this is something that just has to be in a notebook, as any detailed specification for data flow becomes a programming language 😆

SylviaWhittle commented 1 year ago

https://www.nextflow.io/