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 StochasticGene
If 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 StochasticGene
To test the installation:
julia> ] test StochasticGene
To update to the latest version:
julia> ] update StochasticGene
Biowulf 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
If you encounter Julia crashes after an update, remove your Julia depot and reinstall:
[username@biowulf ~]$ rm -r --force .julia
Then start Julia and re-add StochasticGene as above.
Requirements
- Julia 1.9.3 or higher
- Required packages will be automatically installed during installation