Skip to content

Instantly share code, notes, and snippets.

@cyklee
Last active May 2, 2017 05:17
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 cyklee/3cfcf390eb0982469b38c90b1e262731 to your computer and use it in GitHub Desktop.
Save cyklee/3cfcf390eb0982469b38c90b1e262731 to your computer and use it in GitHub Desktop.
To extract a subset of reads from a muti-FASTA file using a list of header names
# https://www.biostars.org/p/49820/
# https://github.com/mdshw5/pyfaidx can be used as a drop-in replacement
xargs samtools faidx test.fa < names.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment