Skip to content

Instantly share code, notes, and snippets.

@cbohn4
Last active September 25, 2024 14:06
Show Gist options
  • Select an option

  • Save cbohn4/1c8a84d77cc05ad0f62ddf90305216d2 to your computer and use it in GitHub Desktop.

Select an option

Save cbohn4/1c8a84d77cc05ad0f62ddf90305216d2 to your computer and use it in GitHub Desktop.

Login to Swan

ssh username@swan.unl.edu

Or use Swan OpenOndemand -> Sign in -> "Clusters" tab at top -> Swan Shell Access

Conda environment setup:

cd $WORK
mkdir nf-training 
cd nf-training
cp /work/demo/hccdemo/public/environment.yml .
srun --qos=short --mem=5gb --time=03:00:00 --pty $SHELL
module purge
module load miniforge  nano
mamba env create -n nf-training -f environment.yml

Download Data:

wget --content-disposition https://ndownloader.figshare.com/files/28531743
tar xvf data.tar.gz 
rm data.tar.gz

Scripts:

wget https://github.com//carpentries-incubator/workflows-nextflow/archive/main.zip 

unzip main.zip 'workflows-nextflow-main/episodes/files/scripts*' -d . 

mv workflows-nextflow-main/episodes/files/scripts . 

rm -r workflows-nextflow-main main.zip

Verify everything is setup

pwd

/work/group/username/nf-training

ls

data environment.yml scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment