Open ctb opened 3 years ago
interested in co-teaching this one
we have a section on using screen
in the AWS lesson - https://training.nih-cfde.org/en/latest/Cloud-Platforms/Introduction_to_Amazon_Web_Services/introtoaws5_Screen.html
or maybe we want to teach tmux
instead of screen
?
will probably start where workshop #1 and #6 leave off.
maybe with salt from https://github.com/ngs-docs/2021-july-remote-computing/issues/4.
pamela and nick cannot attend.
idea for an exercise to demo set -e
- run bash script that loops through a command 3 times and has an error (i.e., wrong input file path) with (will fail/exit after 1st iteration) & without (will fail 3 times for each iteration) set -e
in script.
notes and lesson development - https://hackmd.io/VpMBdsq8T1WhvkEiU32OHQ
talk about the for loop material from workshop 1 notes (we saved it for later)
add some material from https://github.com/ngs-docs/2021-GGG298/tree/latest/Week8-project_organization_and_UNIX_shell#file-manipulation
if statements, explanation of $, [ ]; script parameters
possible assessment questions - feel free to edit!
lesson layout:
marisa
titus
marisa
slides for Thursday - @ctb feel free to edit! 2021-remote-computing-7.pptx
Pre-Survey: https://forms.gle/8DrR4RfwUDNiu5T48 Post-Survey: https://forms.gle/zhwW9zTP3uwxqLt56
reminder to fix subset example extension
for i in *.fq; do echo "head -400 $i > subset/$i"; newname=$(basename $i .fq)subset.fq; echo mv subset/$i subset/$newname; done
lessons always need xkcd :D
add - https://xkcd.com/1205/
7.4.2 : As a 'student' I found the variables section confusing and without context 7.5.1 : needs explicit instructions on where conda instructions are (could refer to specific lesson and section) --> add ANSWERS to QUESTIONS?
add note that you don't actually have to use indentation for the bash for loops! the indentations are for us, not the computer
to if statement section, add putting it in a script
cd ~/
nano if-for.sh
# copy in
for i in *
do
if [ -f $i ]; then
echo $i is a file
elif [ -d $i ]; then
echo $i is a directory
fi
done
# run
bash if-for.sh
to if.sh
echo running $0
echo a will be $1
echo b will be $2
a=$1
b=$2
from saranya:
My suggestion here would be to try and connect workshop 6 and
workshop 7 with the same examples. In particular, the commands from 4.8 amd 4.9 can be updated to work with files from MISeq folder only.
Thursday August 19 from 9 am - 11:30 PDT
Instructors: Titus, Marisa Moderator: Abhijna Helpers: Saranya Canchi
Zoom link:
Description:
no draft lesson
owner: ???
CTB: maybe switch this with Structuring your projects for current and future you?
potential topics:
set -x
,set -e
forward links: