This is a tiny environment management script.
tiny_env
is written in Rust, so you'll need to grab a Rust installation to compile it.
cargo build --release
An example config is in the examples
folder.
conda = "/work/software/conda3/"
[minimap2]
PATH = "/work/software/minimap2/bin"
[hts]
conda = "/work/software/hts/hts-conda3"
[samtools]
require = ["hts"]
When running command tiny_env -c example.config.toml samtools minimap2
, will genreate a file named env.profile
.
# software config is "examples/example.config.toml" activate modules {"hts", "samtools", "minimap2"}
source /work/software/conda3/bin/activate /work/software/hts/hts-conda3
export PATH=/work/software/minimap2/bin:$PATH
- Find base conda environment by conda cli.
- Add
conflict
keywords. - Add
version
to deal with different versions.