Installation
Prerequisites
- Julia version 1.9.3 or higher
- Git (for development installation)
Basic Installation
To install StochasticGene.jl, open the Julia REPL and run:
using Pkg
Pkg.add("StochasticGene")Development Installation
To install the development version:
using Pkg
Pkg.develop(url="https://github.com/nih-niddk-mbs/StochasticGene.jl")Required Packages
The following packages will be automatically installed as dependencies:
- Distributions
- StatsBase
- DataFrames
- CSV
- Plots
- ProgressMeter
- MCMCChains
- Turing
- DifferentialEquations
- Optim
- ForwardDiff
- SpecialFunctions
- Random
- Statistics
- LinearAlgebra
Verification
To verify the installation, run:
using StochasticGeneIf no errors occur, the package is installed correctly.
Troubleshooting
If you encounter any issues during installation:
- Ensure you have the correct Julia version (1.9.3 or higher)
- Try updating your package registry:
using Pkg Pkg.update() - If problems persist, check the GitHub Issues page for known issues
- For additional help, open a new issue on GitHub
Local Installation
To install StochasticGene on your computer:
julia> ] add StochasticGeneTo test the installation:
julia> ] test StochasticGeneTo update to the latest version:
julia> ] update StochasticGeneBiowulf Installation (NIH HPC)
- Start an interactive session:
[username@biowulf ~]$ sinteractive --constraint=x2695 --mem=64G- Load Julia:
[username@biowulf ~]$ module load julialang
[username@biowulf ~]$ julia -t 1- Install StochasticGene:
julia> ] add StochasticGene- Next: for swarm files,
makeswarm, merging single-unit rates for coupled fits, and the recommended individual-units-then-merge workflow, read Cluster and batch workflows in this manual (also linked from the documentation home page).
If you encounter Julia crashes after an update, remove your Julia depot and reinstall:
[username@biowulf ~]$ rm -r --force .juliaThen start Julia and re-add StochasticGene as above.
Requirements
- Julia 1.9.3 or higher
- Required packages will be automatically installed during installation