Skip to content

Instantly share code, notes, and snippets.

@mw55309
Created August 19, 2016 11:30
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 mw55309/c7b7c46875d326c63d98de162cce0fb9 to your computer and use it in GitHub Desktop.
Save mw55309/c7b7c46875d326c63d98de162cce0fb9 to your computer and use it in GitHub Desktop.
# Polyester (https://github.com/alyssafrazee/polyester) simulates RNA-Seq reads
# Output is FASTA and sorted by input transcript ID
# Some tools don't like this e.g. Salmon, and want a more random order
# Here is a one-liner for shuffling the reads from sample 1 in output directory test.out
cat test.out/sample_01.fasta | paste - - | shuf | awk '{print $1"\n"$2}' > test.out/sample_01.shuf.fasta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment