fasta格式大小写转换


对于序列是大写字母的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

你可能感兴趣的:(fasta格式大小写转换)