Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtibochab committed Sep 11, 2024
2 parents c3fd864 + 0a0ae51 commit abbf7d6
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ modules/02-sequencing/ref
modules/02-sequencing/tmp
**/*.h5ad
**/*.ipynb_checkpoints
# pixi environments
.pixi
*.egg-info
4 changes: 2 additions & 2 deletions env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ dependencies:
- bioconda::bcftools>=1.15
- bioconda::bedtools>=2.30.0
- bioconda::picard>=2.27.4
- bioconda::gatk4
# - bioconda::gatk4
- bioconda::fastqc
- bioconda::multiqc
# - bioconda::multiqc
# Python
- conda-forge::python>=3.7
- conda-forge::pip
Expand Down
38 changes: 27 additions & 11 deletions modules/06-dataviz/R_viz.ipynb

Large diffs are not rendered by default.

34 changes: 27 additions & 7 deletions setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,40 @@

set -eu

if [ ! -e "$HOME/Miniforge3-Linux-x86_64.sh" ]; then
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -P $HOME
if [ ! -d "$HOME/.oh-my-bash" ]; then
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
fi

if [ ! -e "$HOME/miniforge3" ]; then
if [ ! -f "$HOME/.pixi/bin/pixi" ]; then
curl -fsSL https://pixi.sh/install.sh | bash
touch ~/.bashrc
echo 'eval "$(pixi completion --shell bash)"' >> ~/.bashrc
fi

source ~/.bashrc

pixi g i git gh zellij ripgrep dust bat sd

sd 'OSH_THEME="font"' 'OSH_THEME="axin"' ~/.bashrc

if [ ! -f "$HOME/Miniforge3-Linux-x86_64.sh" ]; then
wget --timeout=5 -t 5 -P $HOME \
https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
fi

if [ ! -d "$HOME/miniforge3" ]; then
bash $HOME/Miniforge3-Linux-x86_64.sh -b
fi

export PATH="$HOME/miniforge3/bin:$PATH"

script_dir=$(realpath "$0") && dirname "$script_dir"
mamba env create -f $script_dir/env.yml -y
mamba run -n bootcamp ipython kernel install --user --name=python_bootcamp --display-name="Python 3 (bootcamp)"
mamba run -n bootcamp Rscript -e 'IRkernel::installspec(name="R_bootcamp", displayname="R (bootcamp)")'
if [ ! -d "$HOME/miniforge3/envs/bootcamp" ]; then
echo Installing bootcamp environment
script_dir=$(realpath "$0" | xargs dirname)
mamba env create -f $script_dir/env.yml -y
mamba run -n bootcamp ipython kernel install --user --name=python_bootcamp --display-name="Python 3 (bootcamp)"
mamba run -n bootcamp Rscript -e 'IRkernel::installspec(name="R_bootcamp", displayname="R (bootcamp)")'
fi

mamba init
source ~/.bashrc
Expand Down

0 comments on commit abbf7d6

Please sign in to comment.