Skip to content

Instantly share code, notes, and snippets.

@danielecook
Created September 25, 2014 20:21
Show Gist options
  • Save danielecook/ef2220cc73be7a349583 to your computer and use it in GitHub Desktop.
Save danielecook/ef2220cc73be7a349583 to your computer and use it in GitHub Desktop.
Generate test FASTQs for developing a pipeline.
# Generate tiny FASTQs for quick testing.
function test_set() {
for r in `ls *$1*.fq.gz`; do
gunzip -kfc $r | head -n 50000 | gzip > ${r/$1/$2}
done;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment