generated from mhausenblas/mkdocs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:cmc-aau/hpc-docs
- Loading branch information
Showing
10 changed files
with
124 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
https://sciencedata.dk/ | ||
https://cbs-hpc.github.io/HPC_Facilities/UCloud/#login-on-ucloud | ||
https://hpc.aau.dk/ | ||
|
||
download databases | ||
ARB: | ||
# create tmp folder for arb in our home folder and create the file | ||
arbtmp="${HOME}/.tmp/arb7" | ||
filename="names_start.dat" | ||
file_path="${arbtmp}/${filename}" | ||
mkdir -p "$arbtmp" | ||
touch "${file_path}" | ||
apptainer run -B ${file_path}:/opt/arb/lib/nas/names_start.dat -B ~/.Xauthority -B /projects /home/bio.aau.dk/ksa/projects/biocloud-software/containers/apptainer/arb/arb-7.0.sif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Setting up Git/GitHub | ||
|
||
|
||
|
||
## Repository specific deploy keys | ||
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/managing-deploy-keys#deploy-keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Downloading data from NCBI SRA | ||
https://bioinformatics.ccr.cancer.gov/docs/b4b/Module1_Unix_Biowulf/Lesson6/ | ||
|
||
## Download sra-tools container | ||
``` | ||
singularity pull docker://ncbi/sra-tools | ||
``` | ||
|
||
## Get data | ||
bioproject: PRJNA192924 | ||
sra: SRR1154613 | ||
prefetch first, then use fasterq-dump | ||
``` | ||
singularity run sra-tools_latest.sif prefetch SRR1154613 | ||
singularity run sra-tools_latest.sif fasterq-dump --threads $(nproc) --progress --split-3 SRR1154613 | ||
``` | ||
|
||
## Download SRA data from ENA instead | ||
https://www.ebi.ac.uk/ena/browser/view/SRR1154613 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
By default, VSCode wants to help you write code. So much so that it starts to get intrusive. When you type, the IntelliSense kicks in and immediately suggests code for you upon each keystroke. When you hover over your code, a popup definition appears. When you type an open parenthesis, it pops up another autocomplete suggestion window. When you type out a tag, a closing tag magically appears, but sometimes it's wrong. I get what VSCode is trying to do but it got to a point where it was annoying me and getting in the way. | ||
|
||
If you want VSCode to become more of a passive editor; if you enjoy typing the majority or all of your code, then add these to your settings.json to disable these autocomplete suggestions and pop ups: | ||
|
||
``` | ||
"editor.autoClosingBrackets": "never", | ||
"editor.suggestOnTriggerCharacters": false, | ||
"editor.quickSuggestions": false, | ||
"editor.hover.enabled": false, | ||
"editor.parameterHints.enabled": false, | ||
"editor.suggest.snippetsPreventQuickSuggestions": false, | ||
"html.suggest.html5": false | ||
``` | ||
|
||
Experiencing problems with vscode, hanging on remote connection etc. Log in on the particular login node and kill all vscode-server processes: | ||
``` | ||
ps ux | grep [.]vscode-server | awk '{print $2}' | xargs kill | ||
``` | ||
|
||
then try again. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Job composer | ||
Guide coming soon... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Multi-step jobs | ||
|
||
Many steps in a complex workflow will only run on a single thread regardless of whether you've asked for more. This leads to a waste of resources. You can submit separate jobs by writing down the commands in separate shell scripts, then submit them as individual jobs using sbatch with different resource requirements: | ||
|
||
**`launchscript.sh`** | ||
```bash | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
# Submit the first job step and capture its job ID | ||
step1_jobid=$(sbatch step1_script.sh | awk '{print $4}') | ||
|
||
# Submit the second job, ensuring it runs only after the first job completes successfully | ||
step2_jobid=$(sbatch --dependency=afterok:$step1_jobid step2_script.sh | awk '{print $4}') | ||
|
||
# Submit the third/last job, ensuring it runs only after the second job completes successfully | ||
sbatch --dependency=afterok:$step2_jobid step3_script.sh | ||
``` | ||
|
||
Types of Dependencies: | ||
- `afterok`: The dependent job runs if the first job completes successfully (exit code 0). | ||
- `afternotok`: The dependent job runs if the first job fails (non-zero exit code). | ||
- `afterany`: The dependent job runs after the first job completes, regardless of success or failure. | ||
- `after:<job_id>`: The dependent job starts when the first job begins execution. | ||
|
||
In this case, using `--dependency=afterok` ensures that the second job will only start if the first job finishes without errors. | ||
|
||
Submit using bash not sbatch. | ||
|
||
This can be repeated as many times as necessary. Any arguments can be passed on to the shell scripts in the exact same way as when invoking them using `bash script -i "some option" -o "some other option"` as usual. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Pre-installed software | ||
In addition to software management tools, there are a few things that are installed natively. | ||
|
||
The following software is pre-installed: | ||
|
||
- CLC (on `axomamma` only) | ||
|
||
## CLC Genomics Workbench | ||
As described here, you can run graphical apps in a SLURM job while the windows show up on your own computer by using the `--x11` option to `srun` and `salloc`, as described here https://cmc-aau.github.io/biocloud-docs/slurm/jobsubmission/#graphical-apps-gui. For example to run CLC you could login to a login node, then run: | ||
``` | ||
srun --cpus-per-task 4 --mem 4G --nodelist axomamma --x11 /usr/local/CLCGenomicsWorkbench24/clcgenomicswb24 | ||
``` | ||
|
||
## ARB | ||
ARB is old and unmaintained. Version 6 is available through conda, but the latest version 7 is not, and the only way to run it on servers running a later Ubuntu version than 20.04 is through a container: | ||
``` | ||
srun --cpus-per-task 4 --mem 4G --x11 apptainer run -B ~/.Xauthority -B /projects /home/bio.aau.dk/ksa/projects/biocloud-software/containers/apptainer/arb/arb-7.0.sif | ||
``` | ||
|
||
## Alphafold | ||
databases |