Code changes
We welcome advanced users who want to do one of:
- Implement new biomarkers or variants of them
- Develop custom feature sets
- Contribute to the code in any other way
For that we recommend to clone VascX repo and install in development mode (-e flag) in a clean environment:
git clone git@github.com:Eyened/retinalysis-vascx.git rtnls_vascx
cd rtnls_vascx
pip install -e .
After that, you are able to locally:
- Change or add biomarker implementations by working on the features folder. Biomarkers must
- Change or add "feature sets", or sets of biomarkers to extract from an image by working on the feature_sets folder.
- Keep using the extraction notebooks and the
vascx calc-biomarkerscommand to run experiments.
Ready-to-run feature sets are available under vascx/fundus/feature_sets and can be selected by name. Use extract_in_parallel when only an in-memory DataFrame is needed:
from vascx.utils.analysis import extract_in_parallel
df = extract_in_parallel(examples, "od_centered", n_jobs=8)