Skip to content

gottacatchenall/SpeciesInteractionSamplers.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpeciesInteractionSamplers.jl

DOC

SpeciesInteractionSamplers.jl is a Julia package for simulating the process of sampling species interaction networks with spatiotemporal variation in species occurrence. It is built on SpeciesInteractionNetworks.jl, and uses NeutralLandscapes.jl and Distributions.jl to generate species ranges and phenologies that have prescribed statistical properties. This software is associated with the second preprinted version of Catchen et al. 2023.

SpeciesInteractionNetworks.jl makes use of UnicodePlots.jl to make the REPL experience more interactive. If you would like to turn this off, either to remove the slight added latency, or because you hate fun, you can set the variable SpeciesInteractionNetworks.INTERACTIVE_REPL = false.

The documentation can be found here

A Sampled Interaction Network from Scratch in 7 Lines

using SpeciesInteractionSamplers

feasible_network = generate(NicheModel())
relative_abundance = generate(NormalizedLogNormal=0.2), λ)

energy = 500
realization_rate = realizable(feasible_network, NeutrallyForbiddenLinks(energy), relative_abundance)
realized_network = realize(θ)

detectability_network = detectability(λ, RelativeAbundanceScaled(10.0), relative_abundance)
detected_network = detect(ζ, δ)

API Design

A thorough description of the SpeciesInteractionSamplers.jl API can be found in the documentation. A diagram conveying the essentials can be seen below.

About

simulating the sampling of spatiotemporally variable species interaction networks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages