extracting fasta records from a multi-fasta file based on a list using awk

for i in $(cat gene_list)
do
awk -v RS=">" '($1==a){print ">"$0}' a=$i input.fasta >> out.fa
sed -i '/^$/d' out.fa
done
posted @ 2016-05-18 18:48  liuhui_pine  阅读(114)  评论(0编辑  收藏  举报