Skip to content

Commit e714246

Browse files
committed
Updated course so is ready for next session
1 parent c79f647 commit e714246

File tree

3 files changed

+30
-16
lines changed

3 files changed

+30
-16
lines changed

exercises.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ The links should be generated outside the file_list folder, in separate folders
159159
3. To what groups do you belong (the name of the required Linux command is quite intuitive)? To what groups does the person who is running the course belong? If you can't work out how to do this, then look in the `man` pages.
160160

161161
### b.
162-
1. Write a single-line Bash command that takes the contents of the file letters.txt, sorts them alphabetically and then writes them to a new file named `sorted.txt`.
162+
1. Write a single-line Bash command that takes the contents of the file `letters.txt`, sorts them alphabetically and then writes them to a new file named `sorted.txt`.
163163

164164
### c.
165165
1. Write a Bash command to download the file: https://raw.githubusercontent.com/StevenWingett/Bioinformatics_Computer_Cluster_Course/refs/heads/main/README.md

presentation.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,11 @@ table {
585585

586586
* Keeps the nodes all in contact with one another etc.
587587

588-
* LMB cluster uses Slurm (updated recently)
588+
* LMB cluster uses **Slurm**
589589

590590
---
591591

592-
## Using Slurm (2)
592+
## Slurm (2)
593593

594594
* Slurm is open-source software for large and small Linux clusters
595595

@@ -705,7 +705,7 @@ Slurm scripts:
705705

706706
#!/bin/bash
707707
#SBATCH --job-name=test_job
708-
#SBATCH --cpus-per-task=c
708+
#SBATCH --cpus-per-task=1
709709
#SBATCH --mem=2G
710710
#SBATCH --mail-type=ALL
711711
#SBATCH --mail-user=$USER@mrc-lmb.cam.ac.uk
@@ -760,7 +760,7 @@ Run as:
760760

761761
---
762762

763-
## Where to put data (Cluster)
763+
## Where to put data - Cluster
764764

765765
* `~` (home directory) - config files and scripts
766766

@@ -770,11 +770,21 @@ Run as:
770770

771771
* `/istore` or `/isilon` - a place to store data
772772

773-
**Refer to Scientific Computing for further information**
773+
774+
775+
---
776+
777+
## Where to put data - Cluster (2)
778+
779+
* Your group may have its own dedicated storage area
780+
781+
* Check your quota in the dashboard
782+
783+
* **Refer to Scientific Computing for further information**
774784

775785
---
776786

777-
## Where to put data (Cell Biology Xeon)
787+
## Where to put data - Cell Biology Xeon
778788

779789
* `~` (home directory) - config files and scripts
780790

tutor_notes/answers.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ Version
7676

7777
1.
7878
`srun --pty bash`
79+
7980
`exit`
8081

8182
2.
8283
`srun -c 4 --mem=5G --pty bash`
84+
8385
`exit`
8486

8587
#### d
@@ -111,15 +113,17 @@ Version
111113

112114
#### *f
113115

116+
`python3 make_fasta_files.py`
117+
114118
Create script `array_job.slurm`, containing:
115119

116-
#!/bin/bash
117-
#SBATCH --job-name=arrayjob_calc_gc
118-
#SBATCH --ntasks=1
119-
#SBATCH --cpus-per-task=1
120-
#SBATCH --array=1-10
121-
122-
SAMPLE_ID=$((SLURM_ARRAY_TASK_ID))
123-
echo $SAMPLE_ID
124-
python3 calc_gc.py sample.$SAMPLE_ID.fa.gz
120+
#!/bin/bash
121+
#SBATCH --job-name=arrayjob_calc_gc
122+
#SBATCH --ntasks=1
123+
#SBATCH --cpus-per-task=1
124+
#SBATCH --array=1-10
125+
126+
SAMPLE_ID=$((SLURM_ARRAY_TASK_ID))
127+
echo $SAMPLE_ID
128+
python3 calc_gc.py sample.$SAMPLE_ID.fa.gz
125129

0 commit comments

Comments
 (0)