chr=$(seq 1 1 22)" X Y" for i in $chr ; do grep ">" input.fa | grep "|$i|" | awk 'BEGIN {FS=">"} {print $2}' > selection_$i samtools faidx input.fa `cat selection_$i` > output_$i.fa done
没有评论:
发表评论