#%Module1.0
## Example module of CulebrONT 5 for a cluster: adapt prefix, version and the prerequisite modules.
## Installed by the administrator with:
##   python3 -m venv $prefix/venv && $prefix/venv/bin/pip install culebrONT==$version
##   $prefix/venv/bin/culebrONT install --profile $prefix/profile --sif-dir $prefix/images --with-ltr

set     prefix       /shared/culebrONT
set     version      "5.0.0"

if {![file exists $prefix]} {
    puts stderr "\t[module-info name] Load Error: $prefix does not exist"
    exit 1
}

## prerequisite modules of your cluster
module load apptainer

set     description  "\n\tCulebrONT $version: long-read assemblers side by side, polishing, correction, quality and report.\n"
set     externalurl  "\n\thttps://culebront.readthedocs.io/en/latest/\n"

proc ModulesHelp { } {
  global description externalurl
  puts stderr "Description - $description"
  puts stderr "More Docs   - $externalurl"
}

module-whatis   "loads the [module-info name] environment"

prepend-path PATH              $prefix/venv/bin
setenv       CULEBRONT_PROFILE $prefix/profile
setenv       CULEBRONT_TOOLS   $prefix/profile/tools_path.yaml
