Simple cheatsheet for conda
- a package manager designed for scientists and HPCs, that works without root/sudo permissions.
The conda
manager is available for all platforms in two main versions:
#!/usr/bin/awk -f | |
## USAGE | |
## awk -f est2lgo.awk model_est.txt model.lgo | |
BEGIN {OFS="\t"} | |
# read EST file and save param values into array | |
# note: array includes also header, but that won't match, so nobody cares | |
NR==FNR {a[$1]=$2; next} |
name: base | |
channels: | |
- conda-forge | |
- bioconda | |
dependencies: | |
## TOOLS | |
- mamba # faster conda | |
- pip | |
- mawk # faster awk | |
- miller # data processor |
name: admix | |
channels: | |
- conda-forge | |
- bioconda | |
dependencies: | |
# R packages | |
- r-base=4 | |
- r-rcpp | |
- r-tidyverse | |
- r-igraph |
cd() { builtin cd "$@"; ll; } # Always list directory contents upon 'cd' (macOS style) |
#!/bin/bash | |
## Takes path as argument ($1) or uses current path instead (.) if no argument given. | |
path="${1:-.}" | |
## Gets size for items in path and reports the top 10 files and folders. | |
du -sh ${path}/* | sort -rh | head -n ${2:-10} |
Simple cheatsheet for conda
- a package manager designed for scientists and HPCs, that works without root/sudo permissions.
The conda
manager is available for all platforms in two main versions:
name: bigdata | |
channels: | |
- conda-forge | |
- bioconda | |
dependencies: | |
- mawk | |
- miller | |
- radian # jupyter/julia style R console | |
- r-base=4 | |
- r-essentials |
#!/bin/bash | |
## Launch interactive session for testing purposes (Torque PBS & PBS Pro / OpenPBS) | |
# set CPUs and RAM (defaults = 8, 16gb) | |
cores=${1:-8} | |
ram=${2:-16} | |
## Torque PBS | |
qsub -I -N ijob -d . -v PATH -l nodes=1:ppn=${cores},mem=${ram}gb,walltime=48:00:00 |
name: rbio | |
channels: | |
- conda-forge | |
dependencies: | |
- r-base=4 | |
- r-essentials | |
- r-magrittr | |
- r-ape | |
- r-seqinr | |
- r-poppr |
#!/bin/bash | |
## R in Jupyter Console | |
## Usage: | |
# ir.sh # jupyter-console | |
# ir.sh qt # jupyter-qtconsole | |
## Install Jupyter Console & R kernel (optional: install Jupyter Qtconsole too) | |
# conda install -c conda-forge jupyter_console r-base r-irkernel # qtconsole |