(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
define run_fastqc | |
$$(addsuffix .ok,$(1)) : $(1) | |
mkdir -p $$(dir $$@) ∧ \ | |
unzip -p $$< $$(addsuffix .tmp_fastqc/fastqc_data.txt,$$(notdir $$<)) |\ | |
grep ">>" | grep -v ">>END_MODULE" | cut -c 3- |\ | |
awk -F ' ' 'BEGIN{N=0;} {if(($$$$1=="Basic Statistics" || $$$$1=="Per base sequence quality" || $$$$1=="Per base N content") &AND; $$$$2=="pass" ) N++;} END { if(N>2) {print "__PASS__"}}' |\ | |
grep __PASS__ &AND; echo "FASTQC ok for $$<" $$@ | |
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |