Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outline easy-mode workflow #17

Open
petrelharp opened this issue Nov 30, 2022 · 0 comments
Open

outline easy-mode workflow #17

petrelharp opened this issue Nov 30, 2022 · 0 comments

Comments

@petrelharp
Copy link
Collaborator

Input data:

  • data frame of spatial locations of samples and labels
  • data frame of heterozygosities and diversities
  • data frame of coordinates of corners of range polygon, counter-clockwise

Input parameters:

  • epsilon
  • mesh resolution
  • regularization strengths (four of these?)
  • filenames of the three input data files
  • output directory basename

Steps:

  1. (make the range polygon)
  2. run the method
  3. (do crossvalidation?)
  4. tweak plots (?)

Output:

  1. optimization diagnostics: history of parameter values and loss values, messages
  2. optimal ellipse and vector fields:
    • images (png or pdf)
    • optimized equation (including mesh, function space, optimal values, etc) (if pickle-able??)
  3. crossvalidation error (?)
    • plot
    • values in csv

Advanced parameters:

  • scipy-minimize tolerances and other options

To do crossvalidation:

  • command to make one crossvalidation subdirectory
  • script/notebook to make bash script to run lots of crossvalidation things
  • script/notebook to collate results from many subdirectories

How to get the range polygon?

  • raster file -> gdal-contour -> polygon
  • ellipse/rectangle etc with meshr -> ??
  • should standardize coordinates, at least internally?
  • "convex hull" can get counter-clockwise points
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant