txt情况
awk '/^>/{if (l!="") print l; print; l=0; next}{l+=length($0)}END{print l}' XXX.txt
fasta情况
awk '/^>/{if (l!="") print l; print; l=0; next}{l+=length($0)}END{print l}' XXX.fasta
txt情况
awk '/^>/{if (l!="") print l; print; l=0; next}{l+=length($0)}END{print l}' XXX.txt
fasta情况
awk '/^>/{if (l!="") print l; print; l=0; next}{l+=length($0)}END{print l}' XXX.fasta
本文标题:Linux获取fasta格式的序列长度
本文链接:https://www.haomeiwen.com/subject/wcowhrtx.html
网友评论