Last active
May 2, 2017 05:17
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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