Skip to content

agporto/Appendometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appendometer

This is the source code for the machine learning based version of the drosophila Appendometer. It performs landmark prediction in drosophila images using the ml-morph pipeline.

Install

  1. Clone the repo:
git clone https://github.com/agporto/Appendometer && cd Appendometer/
  1. Create a clean virtual environment
conda create -n append python=3.7
conda activate append
  1. Install dependencies
python -m pip install --upgrade pip
pip install -r requirements.txt

Usage

Once the packages are installed, you can use the codebase by running the appendML.py command line interface. This file takes in several optional arguments, which are described below:

  • -i or --input-dir: (optional) The input directory (default = images)
  • -p or --predictor: (optional) The trained shape prediction model (default = resources/predictor.dat)
  • -o or --out-file: (optional) The output filename suffix (default = output.xml)
  • -l or --ignore-list: (optional) prevents landmarks of choice from being output

Example prompt:

python appendML.py -i images/ -p resources/predictor.dat

The resulting output.xml file can be used to visualize the predicted landmarks in imglab.

Note that appendML.py will automatically sort images files according to their inferred prediction error. The images with the highest error will be shown first.

Citation

Coming soon!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages