Skip to content

Commit

Permalink
rebuild site
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-french committed Aug 8, 2024
1 parent 274c1e0 commit 6bb0756
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 102 deletions.
2 changes: 1 addition & 1 deletion docs/reference/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Functions for processing data.
| [coords_to_sample_dict](coords_to_sample_dict.qmd#spaceprime.coords_to_sample_dict) | Convert sample coordinates to sample dictionaries for simulation and analysis. Can optionally include empirical data, which is accepted as a path to a VCF file. |
| [create_raster](create_raster.qmd#spaceprime.create_raster) | Creates a raster dataset from a numpy array and reference raster and writes it to a new GeoTiff file. |
| [mtp_thresh_from_coords](mtp_thresh_from_coords.qmd#spaceprime.mtp_thresh_from_coords) | This function takes the coordinates of empirical sampling localities, finds which raster cells they belong to, extracts the values of the first layer for those localities, and finds the minimum value. |
| [raster_to_demes](raster_to_demes.qmd#spaceprime.raster_to_demes) | Converts a raster to a 2D np.ndarray of deme sizes using either linear, threshold, or sigmoid transformation functions. For more detail about transformation functions, see [this brief overview](background/trans-fns.md). |
| [raster_to_demes](raster_to_demes.qmd#spaceprime.raster_to_demes) | Converts a raster to a 2D np.ndarray of deme sizes using either linear, threshold, or sigmoid transformation functions. For more detail about transformation functions, see [this brief overview](transformation-functions.qmd). |
| [split_landscape_by_pop](split_landscape_by_pop.qmd#spaceprime.split_landscape_by_pop) | Uses nearest-neighbor interpolation to classify a landscape raster based on the ancestral population assigned to sampled individuals. |

## Demography
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/raster_to_demes.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`raster_to_demes(raster, transformation='linear', max_local_size=1000, normalize=False, threshold=None, thresh_norm=False, inflection_point=0.5, slope=0.05)`

Converts a raster to a 2D np.ndarray of deme sizes using either linear, threshold, or sigmoid transformation functions. For more detail about transformation functions, see [this brief overview](background/trans-fns.md).
Converts a raster to a 2D np.ndarray of deme sizes using either linear, threshold, or sigmoid transformation functions. For more detail about transformation functions, see [this brief overview](transformation-functions.qmd).
Raster data should be continuous and positive.
This function was created with the idea of taking in habitat suitability rasters scaled from 0 to 1, where 0 is no suitability and 1 is the highest suitability.
However, it is flexible enough to accommodate other continuous rasters that can be coaxed to a 0 to 1 scale with the operation `(data - np.min(data)) / (np.max(data) - np.min(data))` by setting the `normalize` flag to `True`.
Expand Down
100 changes: 0 additions & 100 deletions mkdocs.yml

This file was deleted.

0 comments on commit 6bb0756

Please sign in to comment.