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
- Try updating your packages:
Pkg.update() - Check the GitHub issues for known problems
- Open a new issue if your problem persists
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 StochasticGeneIf 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