fasta格式大小写转换
2021-03-04 本文已影响0人
啊吧啊吧鸭

对于序列是大写字母的fa文件若将序列转换为小写字母命令
sed '/^[A-Z]/s/[A-Z]/\l&/g' tese
sed '/>/!s/[A-Z]/\l&/g' tese
小写字母转换大写字母
sed '/^[a-z]/s/[a-z]/\u&/g' tese
sed '/>/!s/[a-z]/\u&/g' tese
对于序列是大写字母的fa文件若将序列转换为小写字母命令
sed '/^[A-Z]/s/[A-Z]/\l&/g' tese
sed '/>/!s/[A-Z]/\l&/g' tese
小写字母转换大写字母
sed '/^[a-z]/s/[a-z]/\u&/g' tese
sed '/>/!s/[a-z]/\u&/g' tese