Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@guillermo-carrasco
Last active October 13, 2015 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guillermo-carrasco/862250cf357f38bae43d to your computer and use it in GitHub Desktop.
Save guillermo-carrasco/862250cf357f38bae43d to your computer and use it in GitHub Desktop.
Small scrip to trim data for cancer/normal pipeline testing in AWS
#!/bin/bash
# Trim the data to the first 1.000.000 reads (4.000.000 lines)
zcat synthetic_challenge_set3_normal_NGv3_1.fq.gz | head -n 4000000 > synthetic_challenge_set3_normal_NGv3_1_trimmed.fq && gzip synthetic_challenge_set3_normal_NGv3_1_trimmed.fq
zcat synthetic_challenge_set3_normal_NGv3_2.fq.gz | head -n 4000000 > synthetic_challenge_set3_normal_NGv3_2_trimmed.fq && gzip synthetic_challenge_set3_normal_NGv3_2_trimmed.fq
zcat synthetic_challenge_set3_tumor_NGv3_1.fq.gz | head -n 4000000 > synthetic_challenge_set3_tumor_NGv3_1_trimmed.fq && gzip synthetic_challenge_set3_tumor_NGv3_1_trimmed.fq
zcat synthetic_challenge_set3_tumor_NGv3_2.fq.gz | head -n 4000000 > synthetic_challenge_set3_tumor_NGv3_2_trimmed.fq && gzip synthetic_challenge_set3_tumor_NGv3_2_trimmed.fq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment